[Mono-osx] TypeInitializationException in OSX509Certificates

Geoff Norton gnorton at novell.com
Thu Mar 25 17:49:52 EDT 2010

What version of OSX are you on?


On 2010-03-25, at 5:43 PM, apoco wrote:

> 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.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx

More information about the Mono-osx mailing list