Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error establishing an HTTPS connection #12

Closed
WJ-GitHub opened this issue Dec 2, 2015 · 1 comment
Closed

Error establishing an HTTPS connection #12

WJ-GitHub opened this issue Dec 2, 2015 · 1 comment

Comments

@WJ-GitHub
Copy link

Trying to generate an HTTPS server.

Create Certificate on Windows: makecert -r -pe -n "CN=myserver" -e 12/02/2023 -ss my -sr localmachine -sky signature -r mycert.cer

Code:
var x509 = new System.Security.Cryptography.X509Certificates.X509Certificate2("mycert.cer");
HttpListener = new SocketHttpListener.Net.HttpListener(x509);
HttpListener.Prefixes.Add("https://+:8080/");

No problem on Windows !

However, trying same under Linux starting the server.
Opening the page via webbrowser gives the usual warnings that the certificate is not trustful...
Setting an exception for the webpage in the browser (i.e. Firefox) should load the page furher, but nothing happens. The browser ist loading and loading and loading...

Trying Mono´s HttpListener on https://*:8080/ use the included certificate by httpcfg.lead to no problems.

Can anyone confirm or solve the problem ?

@LukePulverenti
Copy link
Member

I have seen recently that mono has imported more Microsoft source code and there are some changes to https. So I need to sync up with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants