Actions

TLS Create Key Certificate

Revision as of 16:17, 5 September 2019 by Cbilodeau (talk | contribs) (fix typo)

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)