[Mono-dev] SSL Certificate Binding

monoUser cancomert at gmail.com
Thu Feb 9 13:30:47 UTC 2012


Hello,

I want to bind a SSL certificate to a port.
I followed the steps below but even httpcfg tool says it is binded I can not
see any certificate on the web browser.

I basically follwed the tutorial
http://joshua.perina.com/geo/post/using-ssl-https-with-mono-httplistener

I created a certificate 
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key
-out certificate.crt

then in windows I created a pvk file
pvk -in privateKey.key -topvk -nocrypt -out certificate.pvk

then I bind the certificate to port by using 
httpcfg -add -port 9920 -pvk certificate.pvk -cert certificate.crt

cert> httpcfg -list
Port: 9920 Thumbprint: B2878839D8E8E2F383BCC4532E0EC596EE4C59FB

I execcuted all the commands as a regular system user but when i try to
connect to the service I dont get any SSL warning

My HttpListener prefix looks like that

                m_HttpListener.Prefixes.Add(
                    string.Format("http://+:9920/")
                    );

Any Ideas??

--
View this message in context: http://mono.1490590.n4.nabble.com/SSL-Certificate-Binding-tp4372830p4372830.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list