Skip to content

Instantly share code, notes, and snippets.

@vcsjones
Last active November 14, 2016 22:26
Show Gist options
  • Save vcsjones/0f3bedcf35b615ed497a8fdead2884cd to your computer and use it in GitHub Desktop.
Save vcsjones/0f3bedcf35b615ed497a8fdead2884cd to your computer and use it in GitHub Desktop.
/*
1. In Fiddler, use "Ctrl+R" to open up the rules file.
2. Ctrl+F for "OnBoot" and uncomment it if it is (it is by default)
3. Replace the body of it with the one below and add the "ValidateCallback" function below OnBoot.
*/
static function OnBoot() {
FiddlerApplication.add_OnValidateServerCertificate(ValidateCallback);
}
static function ValidateCallback(sender, e : ValidateServerCertificateEventArgs) {
FiddlerApplication.Log.LogString("Auto accepting certificate for " + e.Session.host);
e.ValidityState = CertificateValidity.ForceValid;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment