Reputation: 10153
I have setup my my cloud using the following http://azure.microsoft.com/en-us/documentation/articles/cloud-services-configure-ssl-certificate/
and the web role using the following http://msdn.microsoft.com/en-us/library/ms731074%28v=vs.110%29.aspx
My problem that when I use emulator I get an error That the there is a name mismatch between a certificate and the website in this case(127.0.0.1) What can be done to solve it.
Upvotes: 0
Views: 531
Reputation: 136196
So there are two approaches you could take:
hosts
file located in C:\Windows\System32\drivers\etc
like this:127.0.0.1 dev.cloudportam.com
Next, we added hosts header in our dev cloud project's csdef
file.
<Sites>
<Site name="Web">
<Bindings>
<Binding name="Endpoint1" endpointName="Endpoint1" hostHeader="dev.cloudportam.com" />
<Binding name="Endpoint2" endpointName="SSL" />
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="http" port="8080" />
<InputEndpoint name="SSL" protocol="https" port="8082" certificate="SSL" />
</Endpoints>
Now when we launch the application, it opens up https://localhost:8082/
and we just change the address to https://dev.cloudportam.com:8082
and everything works well.
Upvotes: 1