I have a Cloud Service with a Web Role that uses https with a corresponding SSL Certificate. (see image below). When I publish to Azure I have to manually change the thumbprint of the SSL certificate since we have one certificate for localhost and one for 'Cloud'. I could not find a way to configure this automatically like the other Web Role settings, where you have can set values based on 'Local' or 'Cloud' or whatever. Is there a way to do that?
1 Answers
1
votes
It's actually pretty simple! Just click on the dropdown next to Service Configuration
and select Cloud
from there :). Then whatever values you will specify will be applied to your cloud configuration only.
Other thing you could do is open ServiceConfiguration.Cloud.cscfg
file and specify the correct thumbprint under Certificate
node.
<Certificates>
<Certificate name="SSL" thumbprint="your-production-certificate-thumbprint" thumbprintAlgorithm="sha1" />
</Certificates>