README: Use ECDSA instead of RSA

pull/295/head
Andri Yngvason 2024-01-10 22:43:05 +00:00
parent 42494fbbe4
commit d819ca477c
1 changed files with 3 additions and 2 deletions

View File

@ -122,8 +122,9 @@ For TLS, you'll need a private X509 key and a certificate. A self-signed key
with a certificate can be generated like so:
```
cd ~/.config/wayvnc
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
-keyout tls_key.pem -out tls_cert.pem -subj /CN=localhost \
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -sha384 \
-days 3650 -nodes -keyout tls_key.pem -out tls_cert.pem \
-subj /CN=localhost \
-addext subjectAltName=DNS:localhost,DNS:localhost,IP:127.0.0.1
cd -
```