1

I have implemented servicestack v3.9.71 selfhost on windows2008r2. I have certificate files. how to activate https on servicestack and how to refer to certificate files. Thanks for any reply.

tomasso
  • 11
  • 2

1 Answers1

1

Configuring SSL for ServiceStack Self Hosts is configured the same way for all HttpListener's, i.e. it's not specific to ServiceStack - and it needs to be configured on the OS where it's run.

This answer shows how to configure SSL on Windows whilst this answer should help showing how you can configure SSL on Linux/Mono.

You should be able to use https with ServiceStack HttpListener self-host by following the steps in the answer above, using "https://*:8443/" for the url and "CN=localhost" should bypass the SSL browser warning dialog.

It's not specifically clear in the answer but you can get the Thumbprint from the details tab of the certificate where you then need to remove spaces. You can then follow the walkthrough in the answer below to use MMC to import the certificate.

Community
  • 1
  • 1
mythz
  • 134,801
  • 25
  • 234
  • 373