openssl.md (571B)
1 # openssl 2 3 ## check https connection 4 ``` 5 openssl s_client -connect domain.com:443 6 ``` 7 8 ## encrypt file 9 ``` 10 openssl enc -aes-256-cbc -salt -in examplefile -out examplefile.enc 11 ``` 12 13 ## decrypt file 14 ``` 15 openssl enc -aes-256-cbc -d -in examplefile.enc -out examplefile 16 ``` 17 18 ## compare {cert,key,csr} 19 ``` 20 openssl x509 -noout -modulus -in example.crt | openssl md5 21 openssl rsa -noout -modulus -in example.key | openssl md5 22 openssl req -noout -modulus -in example.csr | openssl md5 23 ``` 24 25 ## encryption 26 https://linuxconfig.org/using-openssl-to-encrypt-messages-and-files-on-linux