]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update the *use_certificate* docs
authorMatt Caswell <matt@openssl.org>
Thu, 26 Apr 2018 13:05:40 +0000 (14:05 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 26 Apr 2018 15:41:54 +0000 (16:41 +0100)
Note that calling the *use_certificate* functions will replace any existing
certificate of the same type. The same thing applies for private keys.

Fixes #2147

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6093)

(cherry picked from commit db747425b0caae12e73c680799b57bdfcc72dbb4)

doc/ssl/SSL_CTX_use_certificate.pod

index 80321b8580e3f8e5f88acc3f5802d09e3b620855..800423e7de74b4f1ad0d173ab3f9f75dd7c45871 100644 (file)
@@ -142,6 +142,13 @@ L<SSL_CTX_set_default_passwd_cb(3)|SSL_CTX_set_default_passwd_cb(3)>.
 of view, it however does not make sense as the data in the certificate
 is considered public anyway.)
 
+All of the functions to set a new certificate will replace any existing
+certificate of the same type that has already been set. Similarly all of the
+functions to set a new private key will replace any private key that has already
+been set. Applications should call L<SSL_CTX_check_private_key(3)> or
+L<SSL_check_private_key(3)> as appropriate after loading a new certificate and
+private key to confirm that the certificate and key match.
+
 =head1 RETURN VALUES
 
 On success, the functions return 1.