[英]how to run a RESTful webservice over service stack on an https (ssl) channel
I looked at the documentation and examples in the service stack library and googled around but couldn't find a way to create an ssl (https) web service.我查看了服务堆栈库中的文档和示例,并四处搜索,但找不到创建 ssl (https) Web 服务的方法。 In particular in the example i run the console example (really cool) that extends the AppHostHttpListenerBase class.特别是在示例中,我运行了扩展 AppHostHttpListenerBase 类的控制台示例(非常酷)。 I would like to make it run with https.我想让它用 https 运行。
You must set up a Server Certificate for the Http Listener, here's a walk through example of how to do that:您必须为 Http 侦听器设置服务器证书,以下是如何执行此操作的示例:
https://docs.microsoft.com/en-us/archive/blogs/jpsanders/how-to-walkthrough-using-httplistener-or-http-server-unmanaged-code-c-as-an-ssl-simple-server https://docs.microsoft.com/en-us/archive/blogs/jpsanders/how-to-walkthrough-using-httplistener-or-http-server-unmanaged-code-c-as-an-ssl-simple-服务器
Whilst here is an article for setting up SSL with HttpListener on Mono: Does HttpListener work well on Mono?虽然这里有一篇关于在 Mono 上使用 HttpListener 设置 SSL 的文章: Does HttpListener 在 Mono 上运行良好?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.