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

  • Home
  • SEARCH
  • 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 8373481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:41:08+00:00 2026-06-09T14:41:08+00:00

From the open ssl document presented for the function SSL_get_verify_result here: http://www.openssl.org/docs/ssl/SSL_get_verify_result.html It states

  • 0

From the open ssl document presented for the function “SSL_get_verify_result” here:
http://www.openssl.org/docs/ssl/SSL_get_verify_result.html
It states that the errors are given here:
http://www.openssl.org/docs/apps/verify.html

So which of these errors will be invoked if there is an SSL host Mismatch error?
i.e hostname in certificate and hostname from request is different?

And also which of those errors can actually be safe to ignore?

  • 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-09T14:41:10+00:00Added an answer on June 9, 2026 at 2:41 pm

    SSL_get_verify_result doesnot do a hostname mismatch search. We have to do that manually taking into consideration multiple CN’s and subject alternative names(SAN’s) that come in the certificate.

    The functions that can be used for handling multiple CN’s are :

    int lastpos = -1;
    lastpos=X509_NAME_get_index_by_NID(X509_get_subject_name(cert), NID_commonName, lastpos);
    X509_NAME_get_entry(X509_get_subject_name(cert), lastpos);

    calling X509_NAME_get_index_by_NID again using the new lastpos will give us the next CN until it returns -1 which says there are no more CN’s available.

    this function gives a X509_NAME_ENTRY *, which can be converted to char * using ASN1_STRING_to_UTF8.

    Be sure to consider the wildcards that come in the SAN’s and CN’s

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /home/happy/public_html/source/imap/fet_mail_from_email_add.php on line 7 can't connect:
I am calling this from ie8: function verify_ssl() { window.open (https://seal.godaddy.com/verifySeal?sealID=129275340046e2e09512711f05bc73f617fac022950185486622550, ssl-window,status=0,toolbar=0,menubar=0,resizable=0,width=540,height=435); } It
i got a code from here to download gmail inbox: http://davidwalsh.name/gmail-php-imap use these 2
I have a segfault coming from OpenSSL (specifically SSL_read ) that I'd like to
How to generate the SHA-512 hash with OpenSSL from command line without using a
What's ActivePython actually about? From what I've read it's just standard Python with OpenSSL
When I read source from open source projects I often find a comment line
What all possible support is there from open source world for building web based
Is there any way to copy all lines from open file to clipboard in
If a MySQL database connection is already open from a script (say PHP ),

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.