1SSL_CTX_ADD_EXTRA_CHAIN_CERT(3) OpenSSL SSL_CTX_ADD_EXTRA_CHAIN_CERT(3)
2
3
4
6 SSL_CTX_add_extra_chain_cert, SSL_CTX_clear_extra_chain_certs - add or
7 clear extra chain certificates
8
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
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
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
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
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
51 ssl(7), 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
59 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
60
61 Licensed under the OpenSSL license (the "License"). You may not use
62 this file except in compliance with the License. You can obtain a copy
63 in the file LICENSE in the source distribution or at
64 <https://www.openssl.org/source/license.html>.
65
66
67
681.1.1g 2020-04-23 SSL_CTX_ADD_EXTRA_CHAIN_CERT(3)