Tag: #tls
How do I hash a password with
openssl
? The
openssl passwd
command hashes passwords using the outdated crypt algorithm, with truncation to 8 characters - a poor choice for secure password hashing. 2017-03-12How do I fetch a server’s SSL certificate using
openssl
? Use the
openssl s_client
command to fetch a server’s SSL certificate chain, including the root certificate. 2017-03-11How do I generate random bytes with
openssl
? Generate random bytes with
openssl rand
, which uses a PRNG seeded with entropy from ~/.rnd
. 2017-03-10How do I encrypt text with
openssl
? Encrypt and decrypt text using the
openssl enc
command with a password and AES-256 cipher. The encrypted text is base64-encoded. 2017-03-09All content copyright James Fisher.