1.

How Can We Create A Tls Certificate?

Answer»

Use command;

# openssl req -new -x509 -nodes -out /etc/pki/tls/certs/example.pem -keyout /etc/pki/tls/certs/examplekey.pem -DAYS 365

  • openssl: crytographic toolkit for SSL & TLS n/w PROTOCOLS
  • req: activates the parts of openssl that deals with certificate requests
  • -new: generate new request
  • -x509: certificate display and signing utility
  • -nodes: STORES private key without protecting it with a passphrase
  • -out *.pem: stores certificate request in a FILE *.pem
  • -keyout *key.pem: stores private key in a file *key.pem
  • days: certificate activation days

Use command;

# openssl req -new -x509 -nodes -out /etc/pki/tls/certs/example.pem -keyout /etc/pki/tls/certs/examplekey.pem -days 365



Discussion

No Comment Found