Hi,

I am having problem with server certificate verification the 
SSL_get_verify_result() returns
Error code 20.

I add a (xx.cert) file to the window certificate store as follow.


1)  The file supported encoding types are X509_ASN_ENCODING and 
PKCS_7_ASN_ENCODING

The file is converted from base64 to DER format and then added to the

CertAddEncodedCertificateToStore() window certificate store.

On OpenSSL startup, the file is read from window certifcate store and saved 
into the X509 certificate store.



1)      File is read from window certificate store with 
CertGetCertificateChain() function.

2)      The buffer is converted from DER to X509 format via d2i_X509() function.

3)      The certificate is then added to the X509 certificate store via 
X509_STORE_add_cert function.

When I call the SSL_get_verify_result() function the error code 20 is returned. 
The SSL_get_peer_certificate()
Function returns valid pointer to the server certificate.

If someone has working sample code on adding cert file to windows and then 
coping the files to the X509 certificate store. Pls, provide the link. Any 
other info is appreciated as well.

Thanks,
HS



This e-mail message and all attachments transmitted with it may contain legally 
privileged and confidential information intended solely for the use of the 
addressee. If you are not the intended recipient, you are hereby notified that 
any reading, dissemination, distribution, copying, or other use of this message 
or its attachments is strictly prohibited.

Reply via email to