📄 ssl_ctx_set_cert_store.pod
字号:
=pod=head1 NAMESSL_CTX_set_cert_store, SSL_CTX_get_cert_store - manipulate X509 certificate verification storage=head1 SYNOPSIS #include <openssl/ssl.h> void SSL_CTX_set_cert_store(SSL_CTX *ctx, X509_STORE *store); X509_STORE *SSL_CTX_get_cert_store(SSL_CTX *ctx);=head1 DESCRIPTIONSSL_CTX_set_cert_store() sets/replaces the certificate verification storageof B<ctx> to/with B<store>. If another X509_STORE object is currentlyset in B<ctx>, it will be X509_STORE_free()ed.SSL_CTX_get_cert_store() returns a pointer to the current certificateverification storage.=head1 NOTESIn order to verify the certificates presented by the peer, trusted CAcertificates must be accessed. These CA certificates are made availablevia lookup methods, handled inside the X509_STORE. From the X509_STOREthe X509_STORE_CTX used when verifying certificates is created.Typically the trusted certificate store is handled indirectly via usingL<SSL_CTX_load_verify_locations(3)|SSL_CTX_load_verify_locations(3)>.Using the SSL_CTX_set_cert_store() and SSL_CTX_get_cert_store() functionsit is possible to manipulate the X509_STORE object beyond theL<SSL_CTX_load_verify_locations(3)|SSL_CTX_load_verify_locations(3)>call.Currently no detailed documentation on how to use the X509_STOREobject is available. Not all members of the X509_STORE are used whenthe verification takes place. So will e.g. the verify_callback() beoverridden with the verify_callback() set via theL<SSL_CTX_set_verify(3)|SSL_CTX_set_verify(3)> family of functions.This document must therefore be updated when documentation about theX509_STORE object and its handling becomes available.=head1 RETURN VALUESSSL_CTX_set_cert_store() does not return diagnostic output.SSL_CTX_get_cert_store() returns the current setting.=head1 SEE ALSOL<ssl(3)|ssl(3)>,L<SSL_CTX_load_verify_locations(3)|SSL_CTX_load_verify_locations(3)>,L<SSL_CTX_set_verify(3)|SSL_CTX_set_verify(3)>=cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -