matchng psk in example between client and expected

This commit is contained in:
Daniel Barlow 2024-09-25 21:40:01 +01:00
parent 1a3e7918b2
commit afd3088cee
1 changed files with 3 additions and 3 deletions

View File

@ -31,14 +31,14 @@ luaossl module
```
# pick a PSK
echo 'urban cookie collective' > psk
echo 'loves labours lost' > psk
chmod 0700 psk
# create CA key and cert
# create CA key and cert used for signing
openssl genrsa -out ca.key 4096
CN=CA openssl req -config openssl.cnf -x509 -new -nodes -key ca.key -sha256 -days 3650 -out ca.crt
# create client CSR
# create example client CSR for testing (check openssl.cnf against "psk" file)
CN=rotuer openssl req -config openssl.cnf -newkey rsa:2048 -nodes -keyout client.key -out client.csr
# start the server