This manual page is part of Xcode Tools version 3.2

To obtain these tools:

If you are running a version of Xcode Tools other than 3.2, view the documentation locally:

  • In Xcode

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



SSL_CTX_set_client_CA_list(3)                      OpenSSL                     SSL_CTX_set_client_CA_list(3)



NAME
       SSL_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

SYNOPSIS
        #include <openssl/ssl.h>

        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);

DESCRIPTION
       SSL_CTX_set_client_CA_list() sets the list of CAs sent to the client when requesting a client
       certificate for ctx.

       SSL_set_client_CA_list() sets the list of CAs sent to the client when requesting a client certificate
       for the chosen ssl, overriding the setting valid for ssl's SSL_CTX object.

       SSL_CTX_add_client_CA() adds the CA name extracted from cacert to the list of CAs sent to the client
       when requesting a client certificate for ctx.

       SSL_add_client_CA() adds the CA name extracted from cacert to the list of CAs sent to the client when
       requesting a client certificate for the chosen ssl, overriding the setting valid for ssl's SSL_CTX
       object.

NOTES
       When a TLS/SSL server requests a client certificate (see SL_CX_st_vrf_otos)), it sends a
       list of CAs, for which it will accept certificates, to the client.

       This list must explicitly be set using SSL_CTX_set_client_CA_list() for ctx and
       SSL_set_client_CA_list() for the specific ssl. The list specified overrides the previous setting. The
       CAs listed do not become trusted (list only contains the names, not the complete 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, the SSL_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 list was specified before using SSL_CTX_set_client_CA_list() or
       SSL_set_client_CA_list(), a new client CA list for ctx or ssl (as appropriate) is opened.

       These functions are only useful for TLS/SSL servers.

RETURN VALUES
       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.

       2.  A failure while manipulating the STACK_OF(X509_NAME) object occurred or the X509_NAME could not
           be extracted from cacert. Check the error stack to find out the reason.

EXAMPLES
       Scan all certificates in CAfile and list them as acceptable CAs:

         SSL_CTX_set_client_CA_list(ctx,SSL_load_client_CA_file(CAfile));

SEE ALSO
       ssl(3), SSL_get_client_CA_list(3), SSL_load_client_CA_file(3), SSL_CTX_load_verify_locations(3)

POD ERRORS
       Hey! The above document had some coding errors, which are explained below:

       Around line 73:
           You have '=item 0' instead of the expected '=item 2'



0.9.8                                            2009-04-03                    SSL_CTX_set_client_CA_list(3)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the OpenSSL project by sending email to [email protected].
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the OpenSSL project by sending email to [email protected].
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.