diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-10-10 14:29:06 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-10-10 14:29:06 -0600 |
commit | 3165f59b344fb4d56d161541f294754d56bcb372 (patch) | |
tree | f6f8f49d226880f5d2019692d2b17b5244c26b45 /libressl/doit.sh | |
parent | 753aba6fcc56c596be953b298b4b4219605d3d07 (diff) | |
download | alpine-3165f59b344fb4d56d161541f294754d56bcb372.tar.xz |
* New version 2.24
Diffstat (limited to 'libressl/doit.sh')
-rwxr-xr-x[-rw-r--r--] | libressl/doit.sh | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/libressl/doit.sh b/libressl/doit.sh index 2a186a4e..eee96db4 100644..100755 --- a/libressl/doit.sh +++ b/libressl/doit.sh @@ -1,22 +1,21 @@ -#!/bin/sh
-ME=`whoami`
-HERE=`pwd`
-LOF="$HERE/ListOfCerts.txt"
-rm -f $LOF
-if test ! -d certs ; then
- mkdir certs
-fi
-
-SSLDIR=`openssl version -d | awk '{ printf $2 }' | sed 's/"//g'`
-CERTDIR="$SSLDIR/certs"
-cd $CERTDIR
-ls -1 *pem > $LOF
-
-while read LINE ; do
- echo $LINE
- HASH=`openssl x509 -subject_hash -in $CERTDIR/$LINE -noout`
- cp $CERTDIR/$LINE $HERE/certs/$HASH.0; chmod 600 $HERE/certs/$HASH.0
- cp $CERTDIR/$LINE $HERE/certs ; chmod 600 $HERE/certs/$LINE
-done < $LOF
-rm -f $LOF
-
+#!/bin/sh +ME=`whoami` +HERE=`pwd` +LOF="$HERE/ListOfCerts.txt" +rm -f $LOF +if test ! -d certs ; then + mkdir certs +fi + +SSLDIR=`openssl version -d | awk '{ printf $2 }' | sed 's/"//g'` +CERTDIR="$SSLDIR/certs" +cd $CERTDIR +ls -1 *pem > $LOF + +while read LINE ; do + echo $LINE + HASH=`openssl x509 -subject_hash -in $CERTDIR/$LINE -noout` + cp $CERTDIR/$LINE $HERE/certs/$HASH.0; chmod 600 $HERE/certs/$HASH.0 + cp $CERTDIR/$LINE $HERE/certs ; chmod 600 $HERE/certs/$LINE +done < $LOF +rm -f $LOF |