Skip to content

Instantly share code, notes, and snippets.

@masa795
Created July 7, 2013 11:06
Show Gist options
  • Save masa795/5943131 to your computer and use it in GitHub Desktop.
Save masa795/5943131 to your computer and use it in GitHub Desktop.
CertificatePolicy を更新する
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