computed hash-and-url for new certificates
This commit is contained in:
1 parent
f1092e20f4
commit
1271983ab9
10 files changed
+13
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
#! /bin/bash
|
||||
#
|
||||
# generates the SHA-1 hash required by the RFC 4306
|
||||
# HASH_AND_URL certificate fetching scheme
|
||||
#
|
||||
|
||||
for cert in $@
|
||||
do
|
||||
openssl x509 -in $cert -outform der -out cert.der
|
||||
hash=`sha1sum cert.der | awk '{ print $1 }'`
|
||||
cp cert.der "$hash"
|
||||
done
|
||||
rm cert.der
|
||||
Reference in new issue
Block a user