Skip to content

Instantly share code, notes, and snippets.

@adrianorsouza
Last active June 8, 2022 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianorsouza/0900ade5135dbb33463f016006385cda to your computer and use it in GitHub Desktop.
Save adrianorsouza/0900ade5135dbb33463f016006385cda to your computer and use it in GitHub Desktop.
Generate new CSR (Certificate Signed Request) to get a new certificate issued from a CA.

Issue CSR

$ openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr

CHECK CERTIFICATE COMMAND

$ openssl x509 -noout -modulus -in domain.crt | openssl md5
$ openssl rsa -noout -modulus -in domain.key | openssl md5
$ openssl req -noout -modulus -in domain.csr | openssl md5

CHECK CERTIFICATE DETAILS

$ openssl x509 -in cerfile.crt -noout -text
$ openssl x509 -noout -in domain.dev.crt -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment