【发布时间】:2012-01-06 20:22:26
【问题描述】:
我查看了 service stack 库中的文档和示例,并在 Google 上四处搜索,但找不到创建 ssl (https) Web 服务的方法。 特别是在示例中,我运行了扩展 AppHostHttpListenerBase 类的控制台示例(非常酷)。我想让它使用 https 运行。
【问题讨论】:
标签: c# .net web-services rest servicestack
我查看了 service stack 库中的文档和示例,并在 Google 上四处搜索,但找不到创建 ssl (https) Web 服务的方法。 特别是在示例中,我运行了扩展 AppHostHttpListenerBase 类的控制台示例(非常酷)。我想让它使用 https 运行。
【问题讨论】:
标签: c# .net web-services rest servicestack
您必须为 Http 侦听器设置服务器证书,以下是如何执行此操作的示例:
这里有一篇关于在 Mono 上使用 HttpListener 设置 SSL 的文章: Does HttpListener work well on Mono?
【讨论】: