Add labs
This commit is contained in:
28
03-security/lab06/lab.txt
Normal file
28
03-security/lab06/lab.txt
Normal file
@ -0,0 +1,28 @@
|
||||
= TLS PSK mit OpenSSL
|
||||
|
||||
Erzeugen Sie mit OpenSSL einen hexadecimalen PSK Key
|
||||
|
||||
$ openssl rand -hex 16
|
||||
|
||||
|
||||
Starten Sie mit OpenSSL einen TLS PSK Server.
|
||||
|
||||
$ openssl s_server -nocert -psk 7301036d7236029badbd -psk_hint Server-ID -accept 4433 -tls1_2
|
||||
|
||||
|
||||
Verbinden Sie sich mit OpenSSL als Client.
|
||||
|
||||
$ openssl s_client -psk 7301036d7236029badbd -psk_identity Client_123 -connect localhost:4433 -tls1_2
|
||||
|
||||
|
||||
|
||||
Analog mit TLS 1.3.
|
||||
|
||||
Server:
|
||||
|
||||
$ openssl s_server -nocert -psk 7301036d7236029badbd -psk_identity Client_123 -accept 4433 -tls1_3
|
||||
|
||||
|
||||
Client:
|
||||
|
||||
$ openssl s_client -psk 7301036d7236029badbd -psk_identity Client_123 -connect localhost:4433 -tls1_3
|
||||
Reference in New Issue
Block a user