简体   繁体   中英

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. In particular in the example i run the console example (really cool) that extends the AppHostHttpListenerBase class. I would like to make it run with https.

You must set up a Server Certificate for the Http Listener, here's a walk through example of how to do that:

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

Whilst here is an article for setting up SSL with HttpListener on Mono: Does HttpListener work well on Mono?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM