Can OpenSSL on Windows use the system certificate store?

前端 未结 4 869
深忆病人
深忆病人 2020-12-02 09:17

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_

4条回答
  •  萌比男神i
    2020-12-02 09:52

    No. Not out of the box.

    No it is not possible out of the box. It would require additional programming. With OpenSSL you have two (out of the box) options:

    1. Use OpenSSL's own cert store (it is a hierarchy of directories created by perl script provided with OpenSSL)
    2. Use only a certificate chain file created by you (it is a text file with all PEM-encoded certificates in a chain of trust). Creating such a file is easy (just appending it)

提交回复
热议问题