Search code examples
c#web-servicesazurex509certificate2

Loading certificate files from file


For an Azure web-service I need to load a .pfx file. This I can do from file (installed next to the service). To get everything working I need to install a .cer and a .crl into the trusted certificate store. My question is: can this be avoided? Is there a way to load and use these two files from file?


Solution

  • I did not wish to answer my own question, but the answer appears to be that it is not possible, and you have to install the files.

    I have not found a way to use my files, other than to install them into the local certificate store. For this a command line tool has been written that installs them when the worker role starts.

    If somebody can prove me wrong, I'll happily reopen this question.