Quick'n'dirty client certificate support for s_client

Usage:
$ export keyopts="-cert path/to/cert.pem -CAfile path/to/cert.pem"
$ ./testssl.sh [usual options]

cert.pem may be single file containing pem-encoded:
- certificate key (not encrypted)
- client certificate
- any number of intermediate certificates
This commit is contained in:
Marcin Szychowski 2019-11-19 19:47:53 +01:00
parent 1e268eca01
commit 9913c1137d

View File

@ -2027,7 +2027,7 @@ s_client_options() {
[[ "$1" =~ secp192r1 ]] && options="${options//secp192r1/prime192v1}"
[[ "$1" =~ secp256r1 ]] && options="${options//secp256r1/prime256v1}"
fi
tm_out "$options"
tm_out "$options $keyopts"
}
###### check code starts here ######