SSL_CTX_USE_CERTIFICATE(3ssl) OpenSSL SSL_CTX_USE_CERTIFICATE(3ssl) SSL_CTX_use_certificate, SSL_CTX_use_certificate_ASN1, SSL_CTX_use_certificate_file, SSL_use_certificate, SSL_use_certificate_ASN1, SSL_use_certificate_file, SSL_CTX_use_certificate_chain_file, SSL_use_certificate_chain_file, SSL_CTX_use_PrivateKey, SSL_CTX_use_PrivateKey_ASN1, SSL_CTX_use_PrivateKey_file, SSL_CTX_use_RSAPrivateKey, SSL_CTX_use_RSAPrivateKey_ASN1, SSL_CTX_use_RSAPrivateKey_file, SSL_use_PrivateKey_file, SSL_use_PrivateKey_ASN1, SSL_use_PrivateKey, SSL_use_RSAPrivateKey, SSL_use_RSAPrivateKey_ASN1, SSL_use_RSAPrivateKey_file, SSL_CTX_check_private_key, SSL_check_private_key, SSL_CTX_use_cert_and_key, SSL_use_cert_and_key - #include int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x); int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d); int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type); int SSL_use_certificate(SSL *ssl, X509 *x); int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len); int SSL_use_certificate_file(SSL *ssl, const char *file, int type); int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file); int SSL_use_certificate_chain_file(SSL *ssl, const char *file); int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey); int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx, const unsigned char *d, long len); int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type); int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa); int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len); int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type); int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey); int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d, long len); int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type); int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa); int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d, long len); int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type); int SSL_CTX_check_private_key(const SSL_CTX *ctx); int SSL_check_private_key(const SSL *ssl); int SSL_CTX_use_cert_and_key(SSL_CTX *ctx, X509 *x, EVP_PKEY *pkey, STACK_OF(X509) *chain, int override); int SSL_use_cert_and_key(SSL *ssl, X509 *x, EVP_PKEY *pkey, STACK_OF(X509) *chain, int override); SSL_CTX SSL . SSL_CTX_* SSL_CTX ctx. SSL ssl ctx SSL_new(3) ctx SSL . SSL_* SSL . SSL_clear(3) SSL . SSL_CTX_use_certificate() x ctx SSL_use_certificate() x ssl. SSL_CTX_add_extra_chain_cert(3). x. SSL_CTX_use_certificate_ASN1() ASN1 d ( len) ctx SSL_use_certificate_ASN1() ASN1 ssl. SSL_CTX_use_certificate_file() file ctx. type SSL_FILETYPE_PEM SSL_FILETYPE_ASN1. SSL_use_certificate_file() file ssl. NOTES SSL_CTX_use_certificate_chain_file(). SSL_CTX_use_certificate_chain_file() file ctx. PEM ( ) CA () CA. SSL_use_certificate_chain_file() ssl. SSL_CTX_use_PrivateKey() pkey ctx. ctx NULL. SSL_CTX_use_RSAPrivateKey() rsa RSA ctx. SSL_use_PrivateKey() pkey ssl SSL_use_RSAPrivateKey() rsa RSA ssl. . [/ ] SSL_use_certificate() SSL_CTX_use_certificate() SSL_CTX_use_PrivateKey() SSL_use_PrivateKey(). pkey/rsa. SSL_CTX_use_cert_and_key() SSL_use_cert_and_key() X.509 x key chain ssl ctx . pkey X.509 x. override 0 x pkey chain . override . pkey (NULL) x . ( ENGINE) OpenSSL. ( ) . SSL_CTX_use_PrivateKey() . SSL_CTX_use_PrivateKey_ASN1() pk d ( len) ctx. SSL_CTX_use_RSAPrivateKey_ASN1() RSA d ( len) ctx. SSL_use_PrivateKey_ASN1() SSL_use_RSAPrivateKey_ASN1() ssl. SSL_CTX_use_PrivateKey_file() file ctx. type SSL_FILETYPE_PEM SSL_FILETYPE_ASN1. SSL_CTX_use_RSAPrivateKey_file() RSA file ctx. SSL_use_PrivateKey_file() file ssl SSL_use_RSAPrivateKey_file() RSA ssl. ctx (NULL). SSL_CTX_check_private_key() ctx. / (RSA/DSA) . RSA / RSA. SSL_check_private_key() ssl. / ssl ctx. OpenSSL / . SSL_CTX_set_cipher_list(3). SSL_FILETYPE_ASN1 ( DER ) SSL_CTX_use_certificate_chain_file() PEM. SSL_FILETYPE_PEM . SSL_CTX_use_certificate_chain_file() . SSL_CTX_add1_chain_cert(3). : OpenSSL 1.0.2 OpenSSL 1.0.2 . SSL_CTX_use_certificate_chain_file() SSL_CTX_use_certificate_file() CA CA CA . TLS CA CA SSL_CTX_load_verify_locations(3). . SSL_CTX_set_default_passwd_cb(3). ( .) . . SSL_CTX_check_private_key(3) SSL_check_private_key(3) . 1. . ssl(7), SSL_new(3), SSL_clear(3), SSL_CTX_load_verify_locations(3), SSL_CTX_set_default_passwd_cb(3), SSL_CTX_set_cipher_list(3), SSL_CTX_set_client_CA_list(3), SSL_CTX_set_client_cert_cb(3), SSL_CTX_add_extra_chain_cert(3) 2000-2024 OpenSSL. . Apache 2.0 ( ""). . LICENSE . 3 . . : . 3.6.2 7 2026 SSL_CTX_USE_CERTIFICATE(3ssl)