From 02afa553cc33400ead38ac85f8f7f2f3fe79f49d Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Fri, 28 May 2021 01:05:56 +0000
Subject: Server-side SNI, libtls version
Implementation for bearssl coming soon.
---
doc/s6-tlsd.html | 33 +++++++++++++++++++++++++++++----
1 file changed, 29 insertions(+), 4 deletions(-)
(limited to 'doc/s6-tlsd.html')
diff --git a/doc/s6-tlsd.html b/doc/s6-tlsd.html
index 6b0228f..c1c6a59 100644
--- a/doc/s6-tlsd.html
+++ b/doc/s6-tlsd.html
@@ -38,7 +38,7 @@ the options given when configuring s6-networking.
Interface
- s6-tlsd [ -S | -s ] [ -Y | -y ] [ -Z | -z ] [ -v verbosity ] [ -K kimeout ] [ -- ] prog...
+ s6-tlsd [ -S | -s ] [ -Y | -y ] [ -Z | -z ] [ -v verbosity ] [ -K kimeout ] [ -k snilevel ] [ -- ] prog...
@@ -78,7 +78,10 @@ So it should pay attention to the following variables:
- - KEYFILE and CERTFILE
+ - KEYFILE and CERTFILE. Also (or alternatively),
+if the -k option is given: a series of
+KEYFILE:x and CERTFILE:x variables,
+for every x in the set of server names
- (if the -y or -Y option has been given) CADIR or CAFILE
- TLS_UID and TLS_GID
@@ -88,10 +91,12 @@ So it should pay attention to the following variables:
By default, prog... is run with all these
variables unset: CADIR, CAFILE,
-KEYFILE, CERTFILE, TLS_UID and TLS_GID. They're passed to
+KEYFILE, CERTFILE, KEYFILE:x and CERTFILE:x for
+every x, TLS_UID and TLS_GID. They're passed to
the s6-tlsd-io child but
not to prog....
-The -Z option prevents that behaviour.
+The -Z option prevents that behaviour and keeps them
+accessible in the child.
@@ -107,6 +112,13 @@ used.
SSL_TLS_SNI_SERVERNAME contains the required SNI
server name, if any. It is removed from the environment if no SNI
has been sent by the client.
+ SSL_PEER_CERT_HASH contains the hash of the peer's
+End Entity certificate, prefixed by the name of the hash and a colon
+(typically SHA256:).
+ SSL_PEER_CERT_SUBJECT contains the decoded subjectDN
+of the peer's End Entity certificate, i.e. identifying information.
+What is traditionally called the "name" of the certificate is the
+CN field in that data.
More similar environment variables containing information
about the connection may be added in the future.
@@ -136,6 +148,19 @@ is not to require a client certificate at all.
to send data for kimeout milliseconds during the handshake,
close the connection. The default is 0, which means infinite timeout
(never kill the connection).
+ -k snilevel : support alternative
+certificate chains for SNI. If snilevel is nonzero, private
+key file names are read from every environment variable of the form
+KEYFILE:x, where x is a server name that
+the client may require, and a corresponding certificate chain for the name
+x should exist in the file named after the contents of the
+CERTFILE:x environment variable. If snilevel
+is 2 or more, only those files are read, and the generic
+KEYFILE and CERTFILE variables are ignored.
+If snilevel is 0, or if the option is not given, which is the
+default, KEYFILE and CERTFILE are the only private
+key / certificate chain pair that are loaded, no other environment
+variable is read for keypairs.
Notes
--
cgit v1.3.1