static function ValidateCert(sender, ea: ValidateServerCertificateEventArgs)
{
MessageBox.Show(" Got " + ea.ServerCertificate.Subject + " for " + ea.Session.hostname);
ea.ValidityState = CertificateValidity.ForceValid;
}
FiddlerApplication.add_OnValidateServerCertificate(ValidateCert);
FiddlerApplication.add_OnValidateServerCertificate(ValidateCert);
FiddlerApplication.remove_OnValidateServerCertificate(ValidateCert);
fiddler.network.https> HTTPS handshake to www.whitehouse.gov failed. System.Security.Authentication.AuthenticationException The remote certificate is invalid according to the validation procedure.
Session #19082: The remote server (kuix.de) presented a certificate that did not validate, due to RemoteCertificateChainErrors.
0 - A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
1 - The revocation function was unable to check revocation for the certificate.
2 - The revocation function was unable to check revocation because the revocation server was offline.
SUBJECT: CN=kuix.de, O=Test Org with CA true, L=Test Loc, S=Test State, C=DE
ISSUER: CN=Kai's Test CA 2048 sha1, O=Test Org, L=Test Loc, S=Test State, C=DE
EXPIRES: 9/7/2064 7:36:20 AM
02:31:07:1492 Session #19085: The remote server (kuix.de) presented a certificate that did not validate, due to RemoteCertificateChainErrors.
## SUBJECT: CN=kuix.de, O=Test Org with CA true, L=Test Loc, S=Test State, C=DE
## ISSUER: CN=Kai's Test CA 2048 sha1, O=Test Org, L=Test Loc, S=Test State, C=DE
## EXPIRES: 9/7/2064 7:36:20 AM
## STATUS: undefined
## STATUS: undefined
[base64 certificate]
## SUBJECT: CN=Kai's Test CA 2048 sha1, O=Test Org, L=Test Loc, S=Test State, C=DE
## ISSUER: CN=Kai's Test CA 2048 sha1, O=Test Org, L=Test Loc, S=Test State, C=DE
## EXPIRES: 1/7/2073 6:30:48 AM
## STATUS: undefined
[base64 certificate]