Https Site Collection and High Trusted Apps
Having trouble with a https site collection and high trusted apps, specially with Callback validation?
Try this piece of code in your App:
public static void TrustAllCertificates(bool enable)
{
//Trust all
certificates
if(enable)
{
if(enable)
{
ServicePointManager.ServerCertificateValidationCallback
=
((sender, certificate, chain, sslPolicyErrors) => enable);
}
}
}
It's not an elegant solution, but at the moment, it's the only one I know.
Good luck,
HD
No comments:
Post a Comment