Did you try -passin, -passout options of openssl command? See the man page here http://linux.die.net/man/1/openssl Specially the "Pass phrase arguments" section. -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine Innovation distinguishes between follower and leader