2017-08-31 15:03:22 +01:00
|
|
|
#!/bin/sh
|
|
|
|
PATH=/boringssl/build/tool:$PATH
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# RSA
|
|
|
|
bssl server \
|
|
|
|
-key rsa.pem \
|
|
|
|
-min-version tls1.2 -max-version tls1.3 \
|
2017-11-14 15:43:14 +00:00
|
|
|
-tls13-draft22-variant \
|
2017-08-31 15:03:22 +01:00
|
|
|
-accept 1443 -loop -www 2>&1 &
|
|
|
|
|
|
|
|
# ECDSA
|
|
|
|
bssl server \
|
|
|
|
-key ecdsa.pem \
|
|
|
|
-min-version tls1.2 -max-version tls1.3 \
|
2017-11-14 15:43:14 +00:00
|
|
|
-tls13-draft22-variant \
|
2017-08-31 15:03:22 +01:00
|
|
|
-accept 2443 -loop -www 2>&1 &
|
|
|
|
|
2018-02-14 07:27:33 +00:00
|
|
|
# Require client authentication (with ECDSA)
|
|
|
|
bssl server \
|
|
|
|
-key ecdsa.pem \
|
|
|
|
-min-version tls1.2 -max-version tls1.3 \
|
|
|
|
-tls13-draft22-variant \
|
|
|
|
-accept 6443 -loop -www \
|
|
|
|
-require-any-client-cert -debug 2>&1 &
|
|
|
|
|
2017-08-31 15:03:22 +01:00
|
|
|
wait
|