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 8313639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:33:23+00:00 2026-06-08T20:33:23+00:00

Some working C++ code that I’m porting from Linux to Windows is failing on

  • 0

Some working C++ code that I’m porting from Linux to Windows is failing on windows because SSL_get_verify_result() is returning X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY.

The code was using SSL_CTX_set_default_verify_paths() on Linux to tell SSL to just look in the standard default locations for the certificate store.

Is it possible to get OpenSSL to use the system certificate store?

  • 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-08T20:33:26+00:00Added an answer on June 8, 2026 at 8:33 pm

    I have done it earlier.
    Hope this helps, if this is exactly what you are looking for.

    1. Load your certificate (in PCCERT_CONTEXT structure) from Windows Cert store using Crypto APIs.
    2. Get encrypted content of it in binary format as it is. [PCCERT_CONTEXT->pbCertEncoded].
    3. Parse this binary buffer into X509 certificate Object using OpenSSL’s d2i_X509() method.
    4. Get handle to OpenSSL’s trust store using SSL_CTX_get_cert_store() method.
    5. Load above parsed X509 certificate into this trust store using X509_STORE_add_cert() method.
    6. You are done!
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working some code that inserts csv rows into an SQLite database using Python.
I'm working on some code that reads from a socket, and it goes wrong
I am working on some code that I inherited from a programmer who is
I am working on some code that previously was using a cfquery, and is
I have some working code that I have been using on a test O365
I have some working Javascript code that generates an RDF/XML document using variables picked
I have some code that I'm using to get data from a network socket.
I'm working with some code that I've found online and I don't quite understand
I'm working on some code that takes a hexadecimal string input and produces the
I'm working on some code that loads an xml file at run time. At

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.