c++ - Certificate error open ssl C -
I am using openssl in C to confirm the certificate. Can I leave the signed certificate error in any way? I am getting this error for all those sites who have invalid / cancellation / mismatched URL certificates and I am unable to locate any other errors.
and I use the function SSL_CTX_load_verify_locations (ctx, 0, CA_LIST))
to load the CAIILIS. What exactly does it do?
An Authenticated certificate comes in the certificate chain, when the root or self-signed certificate is present In the certificate list sent by Peer, however, it has not been loaded in your Trust Store.
SSL_CTX_load_verify_locations (ctx, 0, CA_LIST))
will try to load CA in the path mentioned in CA_LIST.
Function prototype int SSL_CTX_load_verify_locations (SSL_CTX * ctx, const char * CAfile, const char * CApath); The OpenSSL Help Page says:
"If the caption is not faucet, then it indicates the directory containing the CA certificate in the PAM format. Each file contains a CA If there is more than one CA certificate with the same name hash value, then the extension should be different (such as 9d66eef0.0, 9d66eef0.1 etc.). Ex is done in order of search Te nsian number, regardless of the other attributes of the certificate. Use the c_rehash feature to create the required link. The CApath certificate is only seen when necessary, eg when the certificate chain is created or the fact A peer certificate is verified in ".
You can get more information from the OpenSSL page.
Comments
Post a Comment