TLS Create Key Certificate
From TBwiki
Although there are many ways to create TLS keys and certificates, we will show how to create self-signed key and certificate.
Create self-signed key and certificate
openssl req -new -newkey rsa:4096 -x509 -sha256 -days <Number of days> -nodes -out <name>.crt –keyout <name>.key
- <Number of days>: Certificate/Key valid duration
- <name>: Name of key or certificate (we recommend using the same name for both)