From 61cff065a60f4d4d72edf129e5d07ac3ebcf5a86 Mon Sep 17 00:00:00 2001 From: Maria Scott Date: Thu, 6 Oct 2022 17:42:12 +0200 Subject: Allow new ssl option certs_keys in ranch_ssl --- doc/src/manual/ranch_ssl.asciidoc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/src/manual/ranch_ssl.asciidoc') diff --git a/doc/src/manual/ranch_ssl.asciidoc b/doc/src/manual/ranch_ssl.asciidoc index 754d90b..d6b03de 100644 --- a/doc/src/manual/ranch_ssl.asciidoc +++ b/doc/src/manual/ranch_ssl.asciidoc @@ -45,6 +45,11 @@ ssl_opt() = {alpn_preferred_protocols, [binary()]} | {cacertfile, file:filename()} | {cacerts, [public_key:der_encoded()]} | {cert, public_key:der_encoded()} + | {certs_keys, [#{cert => public_key:der_encoded(), + key => ssl:key(), + certfile => file:filename(), + keyfile => file:filename(), + key_pem_password => iodata() | fun(() -> iodata())}]} | {certfile, file:filename()} | {ciphers, ssl:ciphers()} | {client_renegotiation, boolean()} @@ -123,6 +128,12 @@ cert:: DER encoded user certificate. +certs_keys:: + +A list of a certificate (or possible a certificate and its chain) +and the associated key of the certificate, that may be used to +authenticate the client or the server. + certfile:: Path to the PEM encoded user certificate file. May also -- cgit v1.2.3