Azure-Samples / service-fabric-dotnet-quickstart

Service Fabric quickstart .net application sample
MIT License
131 stars 200 forks source link

Cannot get Https Working #13

Open MarkDixonTech opened 6 years ago

MarkDixonTech commented 6 years ago

I have followed this tutorial to the letter several times but cannot get Https to work when deployed to Service Fabric.

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-tutorial-dotnet-app-enable-https-endpoint

Everything works in local service Fabric, the application deploys and looks healthy but when browsing responds immediately with ERR_CONNECTION_CLOSED

When I try in Powershell Invoke-WebRequest I get

The underlying connection was closed: An unexpected error occurred on a send

rajib2github commented 6 years ago

I also faced the same issue. Only through http it is accessible. https not working in azure.

arpgoyal commented 6 years ago

I am facing the same problem with Https step. Please help

ghost commented 5 years ago

Is there any update on HTTPS endpoint fix? I am getting the same error.

abhishekkhanna-business commented 2 years ago

I was getting the same error after service fabric cluster creation. Following the "Give NETWORK SERVICE access to the certificate's private key" step resolved the issue.

You can remote desktop into your service fabric node, run "certlm.msc" from Start Menu, right click on a service fabric certificate and choose "All Tasks -> Manage Private Keys..." option. In the dialog that opens, under Security tab, in Group or user names group-box, select NETWORK SERVICE if present or add it using the "Add..." button if absent and grant it "Full control" as shown in the attachment. We may not have to do these steps for all certificates, however, I did it for all - cluster, reverse proxy and client certificates.

GrantAccessToNetworkService