I'm developing a android app that hosts a web server using the HttpListener
class.
But i need to host it using a SSL
certificate, I have read somewhere that you need to place the certificate in a special directory on the android device.
But i have lost the link that specified exactly where.
So does any one know how to get HTTPS
to work on Xamarin
Android with the HttpListener
class?
Edit:
I have tired to store a .cer
and .pvk
file under Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), ".mono", "httplistener")
as suggested in HttpListener with HTTPS on MonoTouch but when i try to access the url i get no answer, if i change to http i at least get a answer.
I found the following source code on github, https://github.com/mono/mono/blob/3f779475e3fc982e312212d5dbbd86515eddfc0c/mcs/class/System/System.Net/HttpListener.Mono.cs#L73
But it just eats any exception that occures so there is no way to figure out if anything goes wrong!