TLS Create Key Certificate

From TBwiki
Revision as of 15:17, 5 September 2019 by Cbilodeau (Talk | contribs)
Jump to: navigation, search

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)
Personal tools