servicestack在Windows2008 r2上通过https在没有IIS的情况下自我托管

时间:2017-03-18 14:12:48

标签: https servicestack

我在windows2008r2上实现了servicestack v3.9.71 selfhost。我有证书文件。如何在servicestack上激活https以及如何引用证书文件。谢谢你的回复。

1 个答案:

答案 0 :(得分:1)

为ServiceStack配置SSL自我主机的配置方式与所有HttpListener相同,即它不是特定于ServiceStack的 - 并且需要在运行它的操作系统上进行配置。

这个答案显示了如何configure SSL on Windows,而这个答案应该有助于展示你如何configure SSL on Linux/Mono

您应该能够使用https和following the steps in the answer abovefollow the walkthrough in the answer below自助主机,使用" https:// *:8443 /"为网址和" CN = localhost"应绕过SSL浏览器警告对话框。

答案中并未明确说明,但您可以从证书的详细信息标签获取指纹,然后您需要删除空格。然后,您可以How to delete a range of values from an array?使用MMC导入证书。