Monthly Archives: January 2014

openssl openssl s_client -connect -showcerts : show SSL certficate echo -n | openssl s_client -connect -showcerts | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ | openssl x509 -noout -subject -dates  : display dates for the certificate Advertisements

Posted in ssl | Tagged | Leave a comment

sudo with redirect to file

In order to “cat /dev/null > syslog” with sudo, sudo bash -c ‘cat /dev/null>syslog’

Posted in Uncategorized | Tagged | Leave a comment


Posted in linux | Tagged , | Leave a comment

ssh tricks

ssh allocate a pseudo tty: ssh -t <ssh_alias>  htop ssh with sudo password:  ssh -t ssh_alias ” echo secret | sudo -S dmidecode” ssh-keygen -lf /etc/ssh/ssh_host_rsa_key : print the SSH server fingerprint pssh (parallel-ssh) is good for non interactive … Continue reading

Posted in ssh | Tagged | Leave a comment

pdf to html and html to pdf

pdf2htmlEX –fallback 1 pdf/test.pdf html to pdf:

Posted in Uncategorized | Tagged , | Leave a comment