TLS Create Key Certificate
From TBwiki
(Difference between revisions)
Revision as of 15:16, 5 September 2019
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)