I wrote a C # console application that I deployed to Azure Webjob. The application works fine locally, but on Azure I get an error:
[09/16/2015 10:40:35 > 998fb8: SYS ERR ] Job failed due to exit code -1073740940
I think I tracked it down to accessing the certificate file. I added it to Resource.resx in the project properties and I get access to the certificate with the following (also a line in which it does not work)
X509Certificate2 _certificate = new X509Certificate2(echoService.Properties.Resources.public_privatekey, ConfigurationManager.AppSettings["certPsw"]);
Is this right, or is there a better way. I tried using the relative path in AppSettings, but could not with this either.
As an additional note, I added a password to the text text in AppSettings, but it will be better to deal with this when my concept is proved. Is there a discussion on how to store passwords like this, and should a certificate be created without a password?
source share