Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 655
gigi Avatar asked Nov 26 '11 10:11

gigi


1 Answers

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

https://learn.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?

like image 107
mythz Avatar answered Nov 04 '22 08:11

mythz