Tag: #cli
How do I create a message digest using
openssl
? Create message digests using the
openssl dgst
command, specifying the hash algorithm (e.g. -sha512
) and optionally signing with a shared password using -hmac
. 2017-03-13How 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.