BTS

Message2491

Author abe
Recipients abe
Date 2009-09-21.01:40:39
Content
I suggest to add the following aliases/functions to grml's zshrc:

for i in sha512 sha256 sha1 md5; do
  ssl-cert-$i() { openssl x509 -noout -fingerprint -$i -in $1 }
done

ssl-cert-fingerprints() {
  for i in sha512 sha256 sha1 md5; do ssl-cert-$i $1; done
}

ssl-cert-info() {
   openssl x509 -noout -text -in $1 
   ssl-cert-fingerprints $1
}

I never can remember all the options openssl wants for displaying this very
basic information about certificates, so I guess these functions are useful for
others, too.

P.S.: I don't know why, but creating function inside a for loop doesn't seem to
work in bash (3.2). In zsh it just works[tm]. :-)
History
Date User Action Args
2009-09-21 01:40:43abesetrecipients: + abe
2009-09-21 01:40:42abesetmessageid: <1253497242.51.0.139774300925.issue741@bts.grml.org>
2009-09-21 01:40:42abelinkissue741 messages
2009-09-21 01:40:39abecreate