Page tree
Skip to end of metadata
Go to start of metadata

How to create a certificate

Create KEY

Create private key
openssl genrsa -out certificate.key 4096
Check private key
openssl rsa -in certificate.key -check
Remove a passphrase from a private key
openssl rsa -in certificate.key -out certificate2.key

Create CSR

Create CSR
openssl req -new -sha256 -key certificate.key -out certificate.csr
Check CSR
openssl req -in mycsr.csr -noout -text

Create self signed certificate

 openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout certificate.key -out certificate.crt

How to check a certificate

openssl x509 -text -noout -in certificate.crt
  • No labels