Auto ignore certificate errors and DON'T proceed

3 posts, 1 answers
  1. Steven
    Steven avatar
    2 posts
    Member since:
    Aug 2008

    Posted 09 Jan 2018 Link to this post

    Every time Fiddler encounters a certificate error it prompts me on whether to ignore the error and proceed or not.

    I know I can go into Tools --> Options --> HTTPS --> and check Ignore Server Certificate errors (unsafe) - but that is the opposite of what I want to do.


    I want to NOT proceed for all certificate errors without being prompted. Is there a way to accomplish this?

    For various reasons in our environment I encounter a lot of certificate errors and I never want to proceed on them and clicking "No" through dozens of ignore certificate error? is tiresome.

  2. Answer
    Simeon avatar
    238 posts

    Posted 15 Jan 2018 Link to this post


    You could use the FiddlerScript to attach to the FiddlerApplication.OnValidateServerCertificate event.

    For example, in the Main method of your FiddlerScript you could add the following code:
    FiddlerApplication.OnValidateServerCertificate += (sender, ea) =>
        if(ea.CertificatePolicyErrors != SslPolicyErrors.None)
            ea.ValidityState = CertificateValidity.ForceInvalid;

    This is just an example how to set the ValidityState. Of course, you could use your own business rules for this.

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Steven
    Steven avatar
    2 posts
    Member since:
    Aug 2008

    Posted 02 Feb 2018 Link to this post

    worked like a charm. thanks.
Back to Top