openssl_commands.md 523 B


title: Openssl Command Cheatsheet categories: [cheatsheets]

tags: [crypto]

Openssl cheatsheet

View Certificate File (x509):

openssl x509 -pubkey -noout -in <file>

View Public Key File:

openssl rsa -noout -text -pubin < key.pub

View Private Key File:

openssl rsa -noout -text -in key.pub

Generate Private Key:

openssl genrsa -out server.key 4096

Decrypt File using RSA Private Key

openssl rsautl -decrypt -inkey pkey.pem -in flag.enc -out out.dec