[Mono-list] WCF App - Invalid Certificate error

augustwest ctxdeaneo at yahoo.com
Mon Dec 27 12:28:18 EST 2010


Hey Folks,

I have a simple Mono WCF app configured to listen on port 8050. Windows7, no
app.config file, no firewall, no UAC, no antivirus, etc.  When i fire up my
client test application, I get the following error -

InnerException: System.Net.WebException
Message="The underlying connection was closed: Could not establish trust
relationship for the SSL/TLS secure channel." Source="System"
StackTrace:
at System.Net.HttpWebRequest.GetResponse() at
System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan
timeout)
       InnerException:
System.Security.Authentication.AuthenticationException
            Message="The remote certificate is invalid according to the
validation procedure."
            Source="System"


I went through the following steps (exactly) to generate a self signed test
root and server cert using the mono cert store and related mono cert tools. 
I also use the mono httpcfg to assign the cert to the port.  Am I missing
something?

makecert -r -n "CN=My Own Test CA" -sv root.key root.cer

certmgr --add -c -m Trust root.cer

makecert -iv root.key -ic root.cer -eku 1.3.6.1.5.5.7.3.1 -n
"CN=mymachine01" -sv mymachine01.pvk mymachine01.cer

certmgr --add -c -m My mymachine01.cer

httpcfg -add -port 8050 -pvk mymachine01.pvk -cert mymachine01.cer


-- 
View this message in context: http://mono.1490590.n4.nabble.com/WCF-App-Invalid-Certificate-error-tp3165272p3165272.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list