1SSL_CTX_SET1_VERIFY_CERT_STORE(3)   OpenSSL  SSL_CTX_SET1_VERIFY_CERT_STORE(3)
2
3
4

NAME

6       SSL_CTX_set0_verify_cert_store, SSL_CTX_set1_verify_cert_store,
7       SSL_CTX_set0_chain_cert_store, SSL_CTX_set1_chain_cert_store,
8       SSL_set0_verify_cert_store, SSL_set1_verify_cert_store,
9       SSL_set0_chain_cert_store, SSL_set1_chain_cert_store - set certificate
10       verification or chain store
11

SYNOPSIS

13        #include <openssl/ssl.h>
14
15        int SSL_CTX_set0_verify_cert_store(SSL_CTX *ctx, X509_STORE *st);
16        int SSL_CTX_set1_verify_cert_store(SSL_CTX *ctx, X509_STORE *st);
17        int SSL_CTX_set0_chain_cert_store(SSL_CTX *ctx, X509_STORE *st);
18        int SSL_CTX_set1_chain_cert_store(SSL_CTX *ctx, X509_STORE *st);
19
20        int SSL_set0_verify_cert_store(SSL *ctx, X509_STORE *st);
21        int SSL_set1_verify_cert_store(SSL *ctx, X509_STORE *st);
22        int SSL_set0_chain_cert_store(SSL *ctx, X509_STORE *st);
23        int SSL_set1_chain_cert_store(SSL *ctx, X509_STORE *st);
24

DESCRIPTION

26       SSL_CTX_set0_verify_cert_store() and SSL_CTX_set1_verify_cert_store()
27       set the certificate store used for certificate verification to st.
28
29       SSL_CTX_set0_chain_cert_store() and SSL_CTX_set1_chain_cert_store() set
30       the certificate store used for certificate chain building to st.
31
32       SSL_set0_verify_cert_store(), SSL_set1_verify_cert_store(),
33       SSL_set0_chain_cert_store() and SSL_set1_chain_cert_store() are similar
34       except they apply to SSL structure ssl.
35
36       All these functions are implemented as macros. Those containing a 1
37       increment the reference count of the supplied store so it must be freed
38       at some point after the operation. Those containing a 0 do not
39       increment reference counts and the supplied store MUST NOT be freed
40       after the operation.
41

NOTES

43       The stores pointers associated with an SSL_CTX structure are copied to
44       any SSL structures when SSL_new() is called. As a result SSL structures
45       will not be affected if the parent SSL_CTX store pointer is set to a
46       new value.
47
48       The verification store is used to verify the certificate chain sent by
49       the peer: that is an SSL/TLS client will use the verification store to
50       verify the server's certificate chain and a SSL/TLS server will use it
51       to verify any client certificate chain.
52
53       The chain store is used to build the certificate chain.
54
55       If the mode SSL_MODE_NO_AUTO_CHAIN is set or a certificate chain is
56       configured already (for example using the functions such as
57       SSL_CTX_add1_chain_cert(3) or SSL_CTX_add_extra_chain_cert(3)) then
58       automatic chain building is disabled.
59
60       If the mode SSL_MODE_NO_AUTO_CHAIN is set then automatic chain building
61       is disabled.
62
63       If the chain or the verification store is not set then the store
64       associated with the parent SSL_CTX is used instead to retain
65       compatibility with previous versions of OpenSSL.
66

RETURN VALUES

68       All these functions return 1 for success and 0 for failure.
69

SEE ALSO

71       SSL_CTX_add_extra_chain_cert(3) SSL_CTX_set0_chain(3)
72       SSL_CTX_set1_chain(3) SSL_CTX_add0_chain_cert(3)
73       SSL_CTX_add1_chain_cert(3) SSL_set0_chain(3) SSL_set1_chain(3)
74       SSL_add0_chain_cert(3) SSL_add1_chain_cert(3)
75       SSL_CTX_build_cert_chain(3) SSL_build_cert_chain(3)
76

HISTORY

78       These functions were added in OpenSSL 1.0.2.
79
81       Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved.
82
83       Licensed under the OpenSSL license (the "License").  You may not use
84       this file except in compliance with the License.  You can obtain a copy
85       in the file LICENSE in the source distribution or at
86       <https://www.openssl.org/source/license.html>.
87
88
89
901.1.1d                            2019-10-03 SSL_CTX_SET1_VERIFY_CERT_STORE(3)
Impressum