azureazure-web-roles

After adding HTTPS endpoint I get this warning: 'Microsoft.WindowsAzure.Plugins.PasswordEncryption' was not found in the certificate store


I added an HTTPS endpoint to my WebRole, and now I'm getting the following warning when I attempt to run the Azure Emulator, which causes the compute emulator to stop and the debugger to bail:

Warning: The SSL certificate 'Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption' for endpoint 'HttpsIn' of role 'MyProj.Web' was not found in the local machine's certificate store.

This certificate has nothing to do with the HTTPS endpoint. It also doesn't (and shouldn't) be on the local machine's certificate store -- it does exist on CurrentUser certificate store (I've checked). I've attempted to get rid of the reference to this certificate altogether in my ServiceConfiguration just to see what happens, but it keeps automatically being re-added.

Any help would be appreciated.

Edit:

Just to be clear, I am not attempting to use the Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption certificate as my SSL cert. I have successfully set up a separate self-signed certificate in the Local Machine store for the HTTPS endpoint:

ServiceDefinition.csdef

    <Bindings>
      <Binding name="Endpoint1" endpointName="Endpoint1" />
      <Binding name="HttpsIn" endpointName="HttpsIn" />
    </Bindings>
    ...
    <Endpoints>
      <InputEndpoint name="Endpoint1" protocol="http" port="80" />
      <InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="AzureSSL" />
    </Endpoints>
    ...
    <Certificates>
      <Certificate name="AzureSSL" storeLocation="LocalMachine" storeName="My"/>
    </Certificates>

ServiceConfiguration.Local.cscfg

<Certificates>
  <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="xxxxxxxxxx" thumbprintAlgorithm="sha1" />
  <Certificate name="AzureSSL" thumbprint="xxxxxxxxxx" thumbprintAlgorithm="sha1" />
</Certificates>

Solution

  • The WebRole is adding the RemoteAccess certificate settings and looking for the certificate in LocalMachine because SDK 1.8 adds <Import moduleName="RemoteAccess" /> to csdef file. To resolve this issue:

    Or, you could just add the RDP cert to LocalMachine store.