README: Use ECDSA instead of RSA
parent
42494fbbe4
commit
d819ca477c
|
@ -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 -
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue