ansible-playbook -C -D -i <inventory> [-u <ssh-user>] [-t tag1,tag2] [--list-hosts] [-l host1,host2] play.yml
-C check_mode
-D show file diffs
ps -u $USER -wo rss=,comm= --sort -rss | while read -r rss comm ; do echo $((rss/1024))"MB" $comm; done
ps -e -www -o pid,ppid,start_time,pmem,rsz,cmd | grep "<command>" | sort -n -k3 | awk '{print $5"KB RAM |",$6,$7,$8,$9,$10,$11; SUM+=$5} END {print "Total RAM: "SUM" KB"}'
Split into certs and unencrypted keys:
openssl pkcs12 -in cert.p12 -nocerts -out cert.p12.enc_keys
openssl pkcs12 -in cert.p12 -clcerts -nokeys -out cert.p12.certs
openssl rsa -in cert.p12.enc_keys -out cert.p12.keys
Check expiry date:
# openssl x509 -enddate -noout -in key.pem