diff --git a/README b/README index 6a2e766..13453c6 100644 --- a/README +++ b/README @@ -7,4 +7,5 @@ Configuration files: Scripts: +- cacrllink.sh - Script to link CA certificates and CRLs to hashed names - createca.sh - Script for creating a CA diff --git a/cacrllink.sh b/cacrllink.sh new file mode 100644 index 0000000..2816edb --- /dev/null +++ b/cacrllink.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# +# script for creating links to certificates and CRLs in the current directory + +for cert in *.crt.pem +do + ln -s "${cert}" `openssl x509 -in "${cert}" -noout -hash`.0 +done + +for crl in *.crl.pem +do + ln -s "${crl}" `openssl crl -in "${crl}" -noout -hash`.r0 +done