mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-30 01:33:39 +08:00
TLS 1.3 server auth only
This commit is contained in:
15
demos/tls12.sh
Executable file
15
demos/tls12.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
|
||||
# server-authentication only
|
||||
../build/bin/tls12_server -cert cert.pem -key key.pem -pass 123456 1>/dev/null 2>/dev/null &
|
||||
sleep 3
|
||||
../build/bin/tls12_client -host 127.0.0.1 -cacert cacert.pem
|
||||
|
||||
|
||||
# mutual authentication, i.e. client certificate requested
|
||||
../build/bin/tls12_server -cert cert.pem -key key.pem -pass 123456 -cacert cacert.pem 1>/dev/null 2>/dev/null &
|
||||
sleep 3
|
||||
../build/bin/tls12_client -host 127.0.0.1 -cacert cacert.pem -cert cert.pem -key key.pem -pass 123456
|
||||
|
||||
|
||||
Reference in New Issue
Block a user