← Back In the print window choose “Save as PDF” as the printer.

OpenSSL cheatsheet

The toolkit behind HTTPS: keys, certificates and hashing

UnixDroid

How it works

  1. Make a key — Generate a private and public key pair.
  2. Prove identity — A certificate authority signs your certificate.
  3. Agree a secret — TLS sets up a session key between browser and server.
  4. Encrypt — Everything after that travels protected.

First steps

openssl version
Check the version
openssl dgst -sha256 file.txt
Fingerprint a file
openssl rand -base64 24
Make a strong random value
openssl s_client -connect example.com:443
View a website certificate chain
openssl enc -aes-256-cbc -pbkdf2 -in notes.txt -out notes.enc
Encrypt your own file with a password
Keep private keys secret (chmod 600) and never post them online. Practise only on your own computer, your own network or a lab that gives you permission. Using security tools on systems that are not yours can be a crime (in India under the IT Act).