Created
July 7, 2013 11:06
-
-
Save masa795/5943131 to your computer and use it in GitHub Desktop.
CertificatePolicy を更新する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy | |
{ | |
public TrustAllCertificatePolicy() { } | |
public bool CheckValidationResult(System.Net.ServicePoint sp, | |
System.Security.Cryptography.X509Certificates.X509Certificate cert, | |
System.Net.WebRequest req, | |
int problem) | |
{ | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment