This commit is contained in:
Thomas Kruse
2026-02-03 22:29:46 +01:00
commit 8fdf5827e4
156 changed files with 23069 additions and 0 deletions

28
03-security/lab06/lab.txt Normal file
View 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