Chad Clark's Open Journal : 2007-09-06

Historical Entries   Recent Entries   About The Author   RSS  

September 06, 2007 :
1) OpenSSL commands sysadmins should know about.

Today I came across a list of openssl command lines.
http://prefetch.net/articles/realworldssl.html

Some examples:

  The following example utilizes the dgst option to compute an MD5 digest of
/etc/secure/data:
  $ openssl dgst -md5 /etc/secure/data

  MD5(/etc/secure/data)= f268fc3e92ef844117365a3368b8fe45


  The following example encrypts the file named passwd with the Blowfish
algorithm:
  $ openssl bf -e -in /etc/secure/passwd -out /etc/secure/passwd.enc.bf

  enter bf-cbc encryption password:
  Verifying - enter bf-cbc encryption password


  The following example shows how to generate an MD5 hash of the password
string "blah":
  $ echo blah | openssl passwd -stdin -1

  If your authentication system does not support MD5, passwords can be
created with crypt:
  $ echo blah | openssl passwd -stdin -crypt -salt GH



Historical Entries   Recent Entries   About The Author   RSS