summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2019-04-09 22:01:50 +0000
committerschwarze <>2019-04-09 22:01:50 +0000
commit725560f8660d40321b5c2f8964b9eb5081895c1e (patch)
tree9c8bc8ea7e786eaa7b74c133024baec4ba4f1dfd /src/lib
parent300484bb54cad650ccea32001690a1c5d562dea6 (diff)
downloadopenbsd-725560f8660d40321b5c2f8964b9eb5081895c1e.tar.gz
openbsd-725560f8660d40321b5c2f8964b9eb5081895c1e.tar.bz2
openbsd-725560f8660d40321b5c2f8964b9eb5081895c1e.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 'src/lib')
-rw-r--r--src/lib/libssl/man/SSL_CTX_use_certificate.323
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
334an RSA key) and/or key parameters (e.g. EC params of an EC key) of a 335an RSA key) and/or key parameters (e.g. EC params of an EC key) of a
335key pair. 336key pair.
336.Sh NOTES 337.Sh NOTES
337The internal certificate store of OpenSSL can hold two private key/certificate 338The internal certificate store of OpenSSL can hold several private
338pairs at a time: 339key/certificate pairs at a time.
339one key/certificate of type RSA and one key/certificate of type DSA. 340The certificate used depends on the cipher selected.
340The certificate used depends on the cipher select, see also 341See also
341.Xr SSL_CTX_set_cipher_list 3 . 342.Xr SSL_CTX_set_cipher_list 3 .
342.Pp 343.Pp
343When reading certificates and private keys from file, files of type 344When 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
355adds the first certificate found in the file to the certificate store. 356adds the first certificate found in the file to the certificate store.
356The other certificates are added to the store of chain certificates using 357The 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 .
358There exists only one extra chain store, so that the same chain is appended 359It is recommended to use the
359to both types of certificates, RSA and DSA!
360If it is not intended to use both type of certificate at the same time,
361it is recommended to use the
362.Fn SSL_CTX_use_certificate_chain_file 360.Fn SSL_CTX_use_certificate_chain_file
363instead of the 361instead 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 ,