Export the SSL certificate(s) of a server to a
.pem
file:1TARGET_HOST="fqdn_of_target_host" 2TARGET_PORT="443" 3openssl s_client -showcerts -connect $TARGET_HOST:$TARGET_PORT </dev/null 2>/dev/null|openssl x509 -outform PEM > $TARGET_HOST.pem
Read MoreA quick tip to easily generate random password from a bash command line.
Add the following lines to your
bashrc
file:1alias genalphanumpasswd='tr -cd '\''[:alnum:]'\'' < /dev/urandom | fold -w30 | head -n1' 2alias genpasswd='tr -cd '\''[:graph:]'\'' < …
Read More