SSL_CTX_add_extra_chain_cert(3) OpenSSL SSL_CTX_add_extra_chain_cert(3) NNAAMMEE SSL_CTX_add_extra_chain_cert, SSL_CTX_clear_extra_chain_certs - add or clear extra chain certificates SSYYNNOOPPSSIISS #include long SSL_CTX_add_extra_chain_cert(SSL_CTX *ctx, X509 *x509); long SSL_CTX_clear_extra_chain_certs(SSL_CTX *ctx); DDEESSCCRRIIPPTTIIOONN _S_S_L___C_T_X___a_d_d___e_x_t_r_a___c_h_a_i_n___c_e_r_t_(_) adds the certificate xx550099 to the extra chain certificates associated with ccttxx. Several certificates can be added one after another. _S_S_L___C_T_X___c_l_e_a_r___e_x_t_r_a___c_h_a_i_n___c_e_r_t_s_(_) clears all extra chain certificates associated with ccttxx. These functions are implemented as macros. NNOOTTEESS When sending a certificate chain, extra chain certificates are sent in order following the end entity certificate. If no chain is specified, the library will try to complete the chain from the available CA certificates in the trusted CA storage, see _S_S_L___C_T_X___l_o_a_d___v_e_r_i_f_y___l_o_c_a_t_i_o_n_s(3). The xx550099 certificate provided to _S_S_L___C_T_X___a_d_d___e_x_t_r_a___c_h_a_i_n___c_e_r_t_(_) will be freed by the library when the SSSSLL__CCTTXX is destroyed. An application sshhoouulldd nnoott free the xx550099 object. RREESSTTRRIICCTTIIOONNSS Only one set of extra chain certificates can be specified per SSL_CTX structure. Different chains for different certificates (for example if both RSA and DSA certificates are specified by the same server) or dif- ferent SSL structures with the same parent SSL_CTX cannot be specified using this function. For more flexibility functions such as _S_S_L___a_d_d_1___c_h_a_i_n___c_e_r_t_(_) should be used instead. RREETTUURRNN VVAALLUUEESS _S_S_L___C_T_X___a_d_d___e_x_t_r_a___c_h_a_i_n___c_e_r_t_(_) and _S_S_L___C_T_X___c_l_e_a_r___e_x_t_r_a___c_h_a_i_n___c_e_r_t_s_(_) return 1 on success and 0 for failure. Check out the error stack to find out the reason for failure. SSEEEE AALLSSOO _s_s_l(3), _S_S_L___C_T_X___u_s_e___c_e_r_t_i_f_i_c_a_t_e(3), _S_S_L___C_T_X___s_e_t___c_l_i_e_n_t___c_e_r_t___c_b(3), _S_S_L___C_T_X___l_o_a_d___v_e_r_i_f_y___l_o_c_a_t_i_o_n_s(3) _S_S_L___C_T_X___s_e_t_0___c_h_a_i_n(3) _S_S_L___C_T_X___s_e_t_1___c_h_a_i_n(3) _S_S_L___C_T_X___a_d_d_0___c_h_a_i_n___c_e_r_t(3) _S_S_L___C_T_X___a_d_d_1___c_h_a_i_n___c_e_r_t(3) _S_S_L___s_e_t_0___c_h_a_i_n(3) _S_S_L___s_e_t_1___c_h_a_i_n(3) _S_S_L___a_d_d_0___c_h_a_i_n___c_e_r_t(3) _S_S_L___a_d_d_1___c_h_a_i_n___c_e_r_t(3) _S_S_L___C_T_X___b_u_i_l_d___c_e_r_t___c_h_a_i_n(3) _S_S_L___b_u_i_l_d___c_e_r_t___c_h_a_i_n(3) 1.0.2u 2019-12-20 SSL_CTX_add_extra_chain_cert(3)