openssl/doc/man1
Todd Short 9d75dce3e1 Add TLSv1.3 post-handshake authentication (PHA)
Add SSL_verify_client_post_handshake() for servers to initiate PHA

Add SSL_force_post_handshake_auth() for clients that don't have certificates
initially configured, but use a certificate callback.

Update SSL_CTX_set_verify()/SSL_set_verify() mode:

* Add SSL_VERIFY_POST_HANDSHAKE to postpone client authentication until after
the initial handshake.

* Update SSL_VERIFY_CLIENT_ONCE now only sends out one CertRequest regardless
of when the certificate authentication takes place; either initial handshake,
re-negotiation, or post-handshake authentication.

Add 'RequestPostHandshake' and 'RequirePostHandshake' SSL_CONF options that
add the SSL_VERIFY_POST_HANDSHAKE to the 'Request' and 'Require' options

Add support to s_client:
* Enabled automatically when cert is configured
* Can be forced enabled via -force_pha

Add support to s_server:
* Use 'c' to invoke PHA in s_server
* Remove some dead code

Update documentation

Update unit tests:
* Illegal use of PHA extension
* TLSv1.3 certificate tests

DTLS and TLS behave ever-so-slightly differently. So, when DTLS1.3 is
implemented, it's PHA support state machine may need to be different.
Add a TODO and a #error

Update handshake context to deal with PHA.

The handshake context for TLSv1.3 post-handshake auth is up through the
ClientFinish message, plus the CertificateRequest message. Subsequent
Certificate, CertificateVerify, and Finish messages are based on this
handshake context (not the Certificate message per se, but it's included
after the hash). KeyUpdate, NewSessionTicket, and prior Certificate
Request messages are not included in post-handshake authentication.

After the ClientFinished message is processed, save off the digest state
for future post-handshake authentication. When post-handshake auth occurs,
copy over the saved handshake context into the "main" handshake digest.
This effectively discards the any KeyUpdate or NewSessionTicket messages
and any prior post-handshake authentication.

This, of course, assumes that the ID-22 did not mean to include any
previous post-handshake authentication into the new handshake transcript.
This is implied by section 4.4.1 that lists messages only up to the
first ClientFinished.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4964)
2018-02-01 17:07:56 +00:00
..
asn1parse.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
CA.pl.pod Documentation updates 2017-03-30 14:16:41 +02:00
ca.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
ciphers.pod Add link for more SECLEVEL info 2017-12-05 10:53:45 -05:00
cms.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
crl.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
crl2pkcs7.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
dgst.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
dhparam.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
dsa.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
dsaparam.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
ec.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
ecparam.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
enc.pod enc(1): document that AEAD is not and will not be supported 2018-01-19 10:24:01 -06:00
engine.pod Update copyright years on all files merged since Jan 1st 2018 2018-01-09 05:49:01 +01:00
errstr.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
gendsa.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
genpkey.pod Support multi-prime RSA (RFC 8017) 2017-11-21 14:38:42 +08:00
genrsa.pod rsa: Do not allow less than 512 bit RSA keys 2017-12-11 12:53:07 +01:00
list.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
nseq.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
ocsp.pod Make editorial changes suggested by Rich Salz and add the -rsigopt option to the man page for the ocsp command. 2018-01-24 18:30:31 +00:00
openssl.pod doc/man1/openssl.pod: Add missing commands and links 2017-10-06 10:44:35 +02:00
passwd.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
pkcs7.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
pkcs8.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
pkcs12.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
pkey.pod Support public key and param check in EVP interface 2017-11-20 07:20:30 +01:00
pkeyparam.pod Support public key and param check in EVP interface 2017-11-20 07:20:30 +01:00
pkeyutl.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
prime.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
rand.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
rehash.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
req.pod Add 'openssl req' option to specify extension values on command line 2017-12-28 16:07:58 +01:00
rsa.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
rsautl.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
s_client.pod Add TLSv1.3 post-handshake authentication (PHA) 2018-02-01 17:07:56 +00:00
s_server.pod Use ChaCha only if prioritized by clnt 2017-11-30 07:13:08 +10:00
s_time.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
sess_id.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
smime.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
speed.pod apps/speed.c: add -seconds and -bytes options 2017-12-04 14:54:40 +01:00
spkac.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
srp.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
storeutl.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
ts.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
tsget.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
verify.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
version.pod Additional name for all commands 2017-10-18 15:33:56 -04:00
x509.pod Update copyright years on all files merged since Jan 1st 2018 2018-01-09 05:49:01 +01:00