OpenSSL

%toc

Encrypt a File

openssl aes-256-cbc -a -salt -in daten.txt -out secrets.enc

Decrypt the File

openssl aes-256-cbc -d -a -in secrets.enc -out output.txt

Password Generator

openssl rand -base64 18

Check Certificate

openssl s_client -connect example.com:443

   # with SNI
   openssl s_client -servername example.com -connect example.com:443

   # check files
   openssl req -text -noout -verify -in CSR.csr
   openssl rsa -in privateKey.key -check
   openssl x509 -in certificate.crt -text -noout