TLS Create Key Certificate

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(creation)
 
m (fix typo)
Line 1: Line 1:
 
Although there are many ways to create TLS keys and certificates, we will show how to create self-signed key and certificate.
 
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 ==
 
== Create self-signed key and certificate ==

Revision as of 15:17, 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)
Personal tools