Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:13:20+00:00 2026-06-15T22:13:20+00:00

Say there is an application that needs to communicate with multiple servers, some of

  • 0

Say there is an application that needs to communicate with multiple servers, some of the servers are in development mode and are using a self-signed certificate. Other servers are using an authentic certificate.

Is it possible to combine a technique like this which validates thumbprints of self-signed certs with the normal validation mechanism?

Using a self-signed certificate with .NET’s HttpWebRequest/Response

Saying it another way, I would like to chain a custom validation with the normal one when the custom one fails. Does the default implementation occur when the following variable is non-null and the custom validator returns false?

ServicePointManager.ServerCertificateValidationCallback

Edit: Actually, looking at the signature of the validation callback it looks as if the callback is occurring after the regular validation? Can anyone verify that is the case?

 bool ValidateServerCertficate(
        object sender,
        X509Certificate cert,
        X509Chain chain,
        SslPolicyErrors sslPolicyErrors); // are errors from the regular validation?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:13:21+00:00Added an answer on June 15, 2026 at 10:13 pm

    I don’t think you can call the default validator, but you don’t have to. Implement the custom callback and look at the SslPolicyErrors enum. If it equals SslPolicyErrors.None, then it’s a good certificate that would’ve validated anyway. Otherwise, do you custom validation.

    internal static bool ValidateCerts(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors sslPolicyErrors)
    {
        if (sslPolicyErrors == SslPolicyErrors.None)
        {
            // Good certificate.
            return true;
        }
        //Do custom validation here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say there is a mobile application that needs to make a sync request/query
I'm building an application that needs to open self-signed HTTPS SSL URLs in java.
Say there are multiple requests in a integration test, some of them are local
Let's say I have a class that needs to do some initialization work in
I'm new to Flex. Let's say we have a web application that needs to
Say there is a dict variable that grows very large during runtime - up
I have an application that needs to constantly (every 50ms), call to an MVC
I'm developing an application that needs to store lots of records in an organized
I am creating a web application for my company that needs to deal with
I have a flex application that needs the ability to generate and execute JavaScript.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.