I want to use WebSocket SSL (wss: //)

Where do I get the keys for the server and client? They are needed for the local network, they do not need to be certified through a third-party organization, I trust my key. How to generate them?

  • @helpforprogrammer, If you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Vitalina

1 answer 1

https://www.openssl.org/docs/HOWTO/keys.txt

openssl genrsa -des3 -out privkey.pem 2048