Ian Collier dixit:

>$ openssl version -d
>OPENSSLDIR: "/usr/share/ssl"

Ah, nice one, didn't know that.

>The c_rehash command which comes with some distributions of OpenSSL is
>basically a fancy script for finding out the hash of each certificate
>in a particular directory and creating the appropriate symlink.

What about

for f in *.pem; do h=$(openssl x509 -in $f -noout -hash); let i=0; \
while [[ -e $h.$i ]]; do let ++i; done; openssl x509 -in $f -out $h.$i; done

Should work (that's ksh[1], might work on GNU bash, but didn't check it).

//mirabile

[1] http://wiki.mirbsd.de/MirbsdKsh for the portable version
-- 
> [...] Echtzeit hat weniger mit "Speed"[...] zu tun, sondern damit, da� der
> richtige Proze� voraussagbar rechtzeitig sein Zeitscheibchen bekommt.
Wir haben uns[...] geeinigt, dass das verwendete Echtzeit-Betriebssystem[...]
weil selbst einfachste Operationen *echt* *Zeit* brauchen.      (aus d.a.s.r)


_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to