How to start a RESTful web service on top of the service stack on the https (ssl) channel

I looked at the documentation and examples in the service stack library and searched for it, but could not find a way to create the ssl web service (https). In particular, in the example, I run a console example (really cool) that extends the AppHostHttpListenerBase class. I would like to run it using https.

+6
source share
1 answer

You must install the server certificate for the Http listener, here is an example of how to do this:

http://blogs.msdn.com/b/jpsanders/archive/2009/09/29/walkthrough-using-httplistener-as-an-ssl-simple-server.aspx

While here is an article on how to configure SSL using HttpListener in Mono: Does HttpListener work well in Mono?

+11
source

Source: https://habr.com/ru/post/902435/


All Articles