Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

HTTPS Support for HttpListener

K.SeyboldK.Seybold DEMember ✭✭

How can I configure the SSL certificate if I want to build an https server based on HttpListener.
The only information I found is here
but it doesn't work.

Any ideas?


  • Sadly the link is broken, any chance you got it working and could share how you did it?

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai

    My understanding is that you do not have to do anything special on the code end , except to make sure that your HttpListener object has the "https://..." prefix in the Prefixes property. E.g. do something like:


    Which will set your HttpListener instance to listen for Https requests on port 443 (which is the standard https port).

    Beyond that, if you are using trusted certificates, then that should be all you have to do. If you want to use self-signed certificates, that is another can of worms... but I did find this SO post that may help with that as well:

Sign In or Register to comment.