1SSL_CTX_add_extra_chain_cert(3)     OpenSSL    SSL_CTX_add_extra_chain_cert(3)
2
3
4

NAME

6       SSL_CTX_add_extra_chain_cert, SSL_CTX_clear_extra_chain_certs - add or
7       clear extra chain certificates
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        long SSL_CTX_add_extra_chain_cert(SSL_CTX *ctx, X509 *x509);
13        long SSL_CTX_clear_extra_chain_certs(SSL_CTX *ctx);
14

DESCRIPTION

16       SSL_CTX_add_extra_chain_cert() adds the certificate x509 to the extra
17       chain certificates associated with ctx. Several certificates can be
18       added one after another.
19
20       SSL_CTX_clear_extra_chain_certs() clears all extra chain certificates
21       associated with ctx.
22
23       These functions are implemented as macros.
24

NOTES

26       When sending a certificate chain, extra chain certificates are sent in
27       order following the end entity certificate.
28
29       If no chain is specified, the library will try to complete the chain
30       from the available CA certificates in the trusted CA storage, see
31       SSL_CTX_load_verify_locations(3).
32
33       The x509 certificate provided to SSL_CTX_add_extra_chain_cert() will be
34       freed by the library when the SSL_CTX is destroyed. An application
35       should not free the x509 object.
36

RESTRICTIONS

38       Only one set of extra chain certificates can be specified per SSL_CTX
39       structure. Different chains for different certificates (for example if
40       both RSA and DSA certificates are specified by the same server) or
41       different SSL structures with the same parent SSL_CTX cannot be
42       specified using this function. For more flexibility functions such as
43       SSL_add1_chain_cert() should be used instead.
44

RETURN VALUES

46       SSL_CTX_add_extra_chain_cert() and SSL_CTX_clear_extra_chain_certs()
47       return 1 on success and 0 for failure. Check out the error stack to
48       find out the reason for failure.
49

SEE ALSO

51       ssl(3), SSL_CTX_use_certificate(3), SSL_CTX_set_client_cert_cb(3),
52       SSL_CTX_load_verify_locations(3) SSL_CTX_set0_chain(3)
53       SSL_CTX_set1_chain(3) SSL_CTX_add0_chain_cert(3)
54       SSL_CTX_add1_chain_cert(3) SSL_set0_chain(3) SSL_set1_chain(3)
55       SSL_add0_chain_cert(3) SSL_add1_chain_cert(3)
56       SSL_CTX_build_cert_chain(3) SSL_build_cert_chain(3)
57
58
59
601.0.2k                            2017-01-26   SSL_CTX_add_extra_chain_cert(3)
Impressum