Add labs
This commit is contained in:
13
03-security/lab03/lab.txt
Normal file
13
03-security/lab03/lab.txt
Normal file
@ -0,0 +1,13 @@
|
||||
= Self signed Zertifikat
|
||||
|
||||
Verwendung von OpenSSL um ein neues Zertifikat zu erstellen
|
||||
|
||||
$ openssl req -new -x509 -newkey rsa:2048 -days 365 \
|
||||
-addext 'subjectAltName=DNS:mqtt.example.com,IP:127.0.0.1' \
|
||||
-subj "/CN=example.com" \
|
||||
-nodes -keyout ca.key -out ca.crt
|
||||
|
||||
|
||||
Validieren Sie das Zertifikat mit OpenSSL
|
||||
|
||||
$ openssl verify -CAfile ca.crt ca.crt
|
||||
Reference in New Issue
Block a user