[issue741] zsh aliases for displaying ssl certificate information/fingerprints
Axel Beckert
bts at bts.grml.org
Mon Sep 21 03:40:42 CEST 2009
New submission from Axel Beckert <abe at deuxchevaux.org>:
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]. :-)
----------
messages: 2491
nosy: abe
priority: wish
status: unread
title: zsh aliases for displaying ssl certificate information/fingerprints
topic: grml-etc-core, zsh
_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue741>
_____________________________________
More information about the Bugs-changes
mailing list