OpenSSL SSL_CTX_set_client_CA_list(3openssl)
NNNNAAAAMMMMEEEESSL_CTX_set_client_CA_list, SSL_set_client_CA_list,
SSL_CTX_add_client_CA, SSL_add_client_CA - set list of CAs
sent to the client when requesting a client certificate SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS#include
void SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *list);
void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *list);
int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *cacert);
int SSL_add_client_CA(SSL *ssl, X509 *cacert);
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSL_CTX_set_client_CA_list() sets the lllliiiisssstttt of CAs sent to
the client when requesting a client certificate for ccccttttxxxx.SSL_set_client_CA_list() sets the lllliiiisssstttt of CAs sent to the
client when requesting a client certificate for the chosenssssssssllll, overriding the setting valid for ssssssssllll's SSL_CTX object.
SSL_CTX_add_client_CA() adds the CA name extracted from
ccccaaaacccceeeerrrrtttt to the list of CAs sent to the client when requesting a client certificate for ccccttttxxxx.SSL_add_client_CA() adds the CA name extracted from ccccaaaacccceeeerrrrtttt
to the list of CAs sent to the client when requesting a client certificate for the chosen ssssssssllll, overriding thesetting valid for ssssssssllll's SSL_CTX object.
NNNNOOOOTTTTEEEESSSSWhen a TLS/SSL server requests a client certificate (see
SSSSSSSSLLLL_CCCCTTTTXXXX_sssseeeetttt_vvvveeeerrrriiiiffffyyyy_ooooppppttttiiiioooonnnnssss(((())))), it sends a list of CAs, for
which it will accept certificates, to the client. This list must explicitly be set usingSSL_CTX_set_client_CA_list() for ccccttttxxxx and
SSL_set_client_CA_list() for the specific ssssssssllll. The list
specified overrides the previous setting. The CAs listed do not become trusted (lllliiiisssstttt only contains the names, not thecomplete certificates); use SSL_CTX_load_verify_locations(3)
to additionally load them for verification. If the list of acceptable CAs is compiled in a file, theSSL_load_client_CA_file(3) function can be used to help
importing the necessary data.SSL_CTX_add_client_CA() and SSL_add_client_CA() can be used
to add additional items the list of client CAs. If no listwas specified before using SSL_CTX_set_client_CA_list() or
SSL_set_client_CA_list(), a new client CA list for ccccttttxxxx or
12/Apr/2001 Last change: 0.9.8o 1
OpenSSL SSL_CTX_set_client_CA_list(3openssl)
ssssssssllll (as appropriate) is opened.These functions are only useful for TLS/SSL servers. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
SSL_CTX_set_client_CA_list() and SSL_set_client_CA_list() do
not return diagnostic information.SSL_CTX_add_client_CA() and SSL_add_client_CA() have the
following return values: 1 The operation succeeded.0 A failure while manipulating the STACK_OF(X509_NAME)
object occurred or the X509_NAME could not be extracted
from ccccaaaacccceeeerrrrtttt. Check the error stack to find out the reason. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS Scan all certificates in CCCCAAAAffffiiiilllleeee and list them as acceptable CAs:SSL_CTX_set_client_CA_list(ctx,SSL_load_client_CA_file(CAfile));
SSSSEEEEEEEE AAAALLLLSSSSOOOOssl(3), SSL_get_client_CA_list(3),
SSL_load_client_CA_file(3), SSL_CTX_load_verify_locations(3)
12/Apr/2001 Last change: 0.9.8o 2