[Mono-osx] TypeInitializationException in OSX509Certificates

apoco jpage at fender.com
Thu Mar 25 17:43:43 EDT 2010


When trying to do a HttpWebRequest to an HTTP URL under Mac, we get the
following exception:

System.Net.WebException: Error getting response stream (Write: The
authentication or decryption has failed.): SendFailure --->
System.IO.IOException: The authentication or decryption has failed. --->
System.TypeInitializationException: An exception was thrown by the type
initializer for Mono.Security.X509.OSX509Certificates --->
System.EntryPointNotFoundException: SecPolicyCreateSSL
at (wrapper managed-to-native)
Mono.Security.X509.OSX509Certificates:SecPolicyCreateSSL (int,intptr)
at Mono.Security.X509.OSX509Certificates..cctor () [0x00000] in <filename
unknown>:0

It looks from my unenlightened perspective that Mono is trying to load some
library that either doesn't exist or doesn't load correctly.  What kind of
setup do we need to do to properly handle HTTPS in Mono's HttpWebRequest?

-- 
View this message in context: http://n4.nabble.com/TypeInitializationException-in-OSX509Certificates-tp1691355p1691355.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list