Skip to content

Instantly share code, notes, and snippets.

@teadur
Created October 5, 2015 21:38
Show Gist options
  • Save teadur/d250483ccf45a96612d9 to your computer and use it in GitHub Desktop.
Save teadur/d250483ccf45a96612d9 to your computer and use it in GitHub Desktop.
sk.crl.nginx.sh
#!/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