diff options
| author | schwarze <> | 2019-04-09 22:01:50 +0000 |
|---|---|---|
| committer | schwarze <> | 2019-04-09 22:01:50 +0000 |
| commit | 1e058bee4dd8093d5d6bebd88f82654927d1582c (patch) | |
| tree | 9c8bc8ea7e786eaa7b74c133024baec4ba4f1dfd | |
| parent | 58b03032ff8a03f5c8a1f05dc50a303855755822 (diff) | |
| download | openbsd-1e058bee4dd8093d5d6bebd88f82654927d1582c.tar.gz openbsd-1e058bee4dd8093d5d6bebd88f82654927d1582c.tar.bz2 openbsd-1e058bee4dd8093d5d6bebd88f82654927d1582c.zip | |
Recommend SSL_CTX_add1_chain_cert(3) rather than
SSL_CTX_add_extra_chain_cert(3).
From Dr. Stephen Henson <steve at openssl dot org>
via OpenSSL commit a4339ea3 Jan 3 22:38:03 2014 +0000
which is still under a free license.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/man/SSL_CTX_use_certificate.3 | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/lib/libssl/man/SSL_CTX_use_certificate.3 b/src/lib/libssl/man/SSL_CTX_use_certificate.3 index 900a42da7d..9959330283 100644 --- a/src/lib/libssl/man/SSL_CTX_use_certificate.3 +++ b/src/lib/libssl/man/SSL_CTX_use_certificate.3 | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | .\" $OpenBSD: SSL_CTX_use_certificate.3,v 1.10 2019/04/05 18:29:43 schwarze Exp $ | 1 | .\" $OpenBSD: SSL_CTX_use_certificate.3,v 1.11 2019/04/09 22:01:50 schwarze Exp $ |
| 2 | .\" OpenSSL e248596b Apr 8 22:49:57 2005 +0000 | 2 | .\" full merge up to: OpenSSL 3aaa1bd0 Mar 28 16:35:25 2017 +1000 |
| 3 | .\" selective merge up to: OpenSSL d1f7a1e6 Apr 26 14:05:40 2018 +0100 | ||
| 3 | .\" | 4 | .\" |
| 4 | .\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. | 5 | .\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. |
| 5 | .\" Copyright (c) 2000, 2001, 2002, 2003, 2005 The OpenSSL Project. | 6 | .\" Copyright (c) 2000, 2001, 2002, 2003, 2005 The OpenSSL Project. |
| @@ -49,7 +50,7 @@ | |||
| 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 51 | .\" | 52 | .\" |
| 52 | .Dd $Mdocdate: April 5 2019 $ | 53 | .Dd $Mdocdate: April 9 2019 $ |
| 53 | .Dt SSL_CTX_USE_CERTIFICATE 3 | 54 | .Dt SSL_CTX_USE_CERTIFICATE 3 |
| 54 | .Os | 55 | .Os |
| 55 | .Sh NAME | 56 | .Sh NAME |
| @@ -334,10 +335,10 @@ They merely compare the public materials (e.g. exponent and modulus of | |||
| 334 | an RSA key) and/or key parameters (e.g. EC params of an EC key) of a | 335 | an RSA key) and/or key parameters (e.g. EC params of an EC key) of a |
| 335 | key pair. | 336 | key pair. |
| 336 | .Sh NOTES | 337 | .Sh NOTES |
| 337 | The internal certificate store of OpenSSL can hold two private key/certificate | 338 | The internal certificate store of OpenSSL can hold several private |
| 338 | pairs at a time: | 339 | key/certificate pairs at a time. |
| 339 | one key/certificate of type RSA and one key/certificate of type DSA. | 340 | The certificate used depends on the cipher selected. |
| 340 | The certificate used depends on the cipher select, see also | 341 | See also |
| 341 | .Xr SSL_CTX_set_cipher_list 3 . | 342 | .Xr SSL_CTX_set_cipher_list 3 . |
| 342 | .Pp | 343 | .Pp |
| 343 | When reading certificates and private keys from file, files of type | 344 | When reading certificates and private keys from file, files of type |
| @@ -354,11 +355,8 @@ can contain more than one item. | |||
| 354 | .Fn SSL_CTX_use_certificate_chain_file | 355 | .Fn SSL_CTX_use_certificate_chain_file |
| 355 | adds the first certificate found in the file to the certificate store. | 356 | adds the first certificate found in the file to the certificate store. |
| 356 | The other certificates are added to the store of chain certificates using | 357 | The other certificates are added to the store of chain certificates using |
| 357 | .Xr SSL_CTX_add_extra_chain_cert 3 . | 358 | .Xr SSL_CTX_add1_chain_cert 3 . |
| 358 | There exists only one extra chain store, so that the same chain is appended | 359 | It is recommended to use the |
| 359 | to both types of certificates, RSA and DSA! | ||
| 360 | If it is not intended to use both type of certificate at the same time, | ||
| 361 | it is recommended to use the | ||
| 362 | .Fn SSL_CTX_use_certificate_chain_file | 360 | .Fn SSL_CTX_use_certificate_chain_file |
| 363 | instead of the | 361 | instead of the |
| 364 | .Fn SSL_CTX_use_certificate_file | 362 | .Fn SSL_CTX_use_certificate_file |
| @@ -388,6 +386,7 @@ Otherwise check out the error stack to find out the reason. | |||
| 388 | .Xr SSL_CTX_add_extra_chain_cert 3 , | 386 | .Xr SSL_CTX_add_extra_chain_cert 3 , |
| 389 | .Xr SSL_CTX_load_verify_locations 3 , | 387 | .Xr SSL_CTX_load_verify_locations 3 , |
| 390 | .Xr SSL_CTX_set_cipher_list 3 , | 388 | .Xr SSL_CTX_set_cipher_list 3 , |
| 389 | .Xr SSL_CTX_set_client_CA_list 3 , | ||
| 391 | .Xr SSL_CTX_set_client_cert_cb 3 , | 390 | .Xr SSL_CTX_set_client_cert_cb 3 , |
| 392 | .Xr SSL_CTX_set_default_passwd_cb 3 , | 391 | .Xr SSL_CTX_set_default_passwd_cb 3 , |
| 393 | .Xr SSL_new 3 , | 392 | .Xr SSL_new 3 , |
