Created
October 5, 2015 21:38
-
-
Save teadur/d250483ccf45a96612d9 to your computer and use it in GitHub Desktop.
sk.crl.nginx.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# update crls for nginx | |
WGET="wget --quiet" | |
pushd /etc/nginx/sk/crl | |
$WGET https://sk.ee/crls/juur/crl.crl | |
$WGET https://sk.ee/crls/eeccrca/eeccrca.crl | |
$WGET https://sk.ee/crls/esteid/esteid2007.crl | |
$WGET https://sk.ee/repository/crls/esteid2011.crl | |
openssl crl -in esteid2007.crl -out esteid2007.crl -inform DER | |
openssl crl -in crl.crl -out crl.crl -inform DER | |
openssl crl -in eeccrca.crl -out eeccrca.crl -inform DER | |
openssl crl -in esteid2011.crl -out esteid2011.crl -inform DER | |
cat crl.crl eeccrca.crl esteid2007.crl esteid2011.crl > crl.sk.all | |
rm *.crl | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment