SSL_CTX_SET1_VERIFY_CERT_STORE - Online Linux Manual PageSection : 3
Updated : 2021-03-26
Source : 1.1.1k
Note : OpenSSL

NAMESSL_CTX_set0_verify_cert_store, SSL_CTX_set1_verify_cert_store, SSL_CTX_set0_chain_cert_store, SSL_CTX_set1_chain_cert_store, SSL_set0_verify_cert_store, SSL_set1_verify_cert_store, SSL_set0_chain_cert_store, SSL_set1_chain_cert_store − set certificate verification or chain store

SYNOPSIS​ #include <openssl/ssl.h> ​ ​ int SSL_CTX_set0_verify_cert_store(SSL_CTX *ctx, X509_STORE *st); ​ int SSL_CTX_set1_verify_cert_store(SSL_CTX *ctx, X509_STORE *st); ​ int SSL_CTX_set0_chain_cert_store(SSL_CTX *ctx, X509_STORE *st); ​ int SSL_CTX_set1_chain_cert_store(SSL_CTX *ctx, X509_STORE *st); ​ ​ int SSL_set0_verify_cert_store(SSL *ctx, X509_STORE *st); ​ int SSL_set1_verify_cert_store(SSL *ctx, X509_STORE *st); ​ int SSL_set0_chain_cert_store(SSL *ctx, X509_STORE *st); ​ int SSL_set1_chain_cert_store(SSL *ctx, X509_STORE *st);

DESCRIPTIONSSL_CTX_set0_verify_cert_store() and SSL_CTX_set1_verify_cert_store() set the certificate store used for certificate verification to st. SSL_CTX_set0_chain_cert_store() and SSL_CTX_set1_chain_cert_store() set the certificate store used for certificate chain building to st. SSL_set0_verify_cert_store(), SSL_set1_verify_cert_store(), ​SSL_set0_chain_cert_store() and SSL_set1_chain_cert_store() are similar except they apply to SSL structure ssl. All these functions are implemented as macros. Those containing a 1 increment the reference count of the supplied store so it must be freed at some point after the operation. Those containing a 0 do not increment reference counts and the supplied store MUST NOT be freed after the operation.

NOTESThe stores pointers associated with an SSL_CTX structure are copied to any SSL structures when SSL_new() is called. As a result SSL structures will not be affected if the parent SSL_CTX store pointer is set to a new value. The verification store is used to verify the certificate chain sent by the peer: that is an SSL/TLS client will use the verification store to verify the server's certificate chain and a SSL/TLS server will use it to verify any client certificate chain. The chain store is used to build the certificate chain. If the mode SSL_MODE_NO_AUTO_CHAIN is set or a certificate chain is configured already (for example using the functions such as ​SSL_CTX_add1_chain_cert(3) or ​SSL_CTX_add_extra_chain_cert(3)) then automatic chain building is disabled. If the mode SSL_MODE_NO_AUTO_CHAIN is set then automatic chain building is disabled. If the chain or the verification store is not set then the store associated with the parent SSL_CTX is used instead to retain compatibility with previous versions of OpenSSL.

RETURN VALUESAll these functions return 1 for success and 0 for failure.

SEE ALSOSSL_CTX_add_extra_chain_cert(3)SSL_CTX_set0_chain(3)SSL_CTX_set1_chain(3)SSL_CTX_add0_chain_cert(3)SSL_CTX_add1_chain_cert(3)SSL_set0_chain(3)SSL_set1_chain(3)SSL_add0_chain_cert(3)SSL_add1_chain_cert(3)SSL_CTX_build_cert_chain(3)SSL_build_cert_chain(3)

HISTORYThese functions were added in OpenSSL 1.0.2.

COPYRIGHTCopyright 2013−2016 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (the License). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
0
Johanes Gumabo
Data Size   :   11,937 byte
man-SSL_CTX_set0_verify_cert_store.3sslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 170,229
Visitor ID   :     :  
Visitor IP   :   3.145.51.35   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|S___SL_CTX_set0_chain_cert_store.3ssl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|S___SL_CTX_set0_chain_cert_store.3ssl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|S___SL_CTX_set0_chain_cert_store.3ssl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|S___SL_CTX_set0_chain_cert_store.3ssl|43|'br══─}─══ |'br══─}─══ )