/[smeserver]/rpms/dehydrated/sme10/dehydrated_revoke
ViewVC logotype

Annotation of /rpms/dehydrated/sme10/dehydrated_revoke

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Fri Feb 10 22:11:06 2017 UTC (7 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Fri Feb 10 2017 Jean-Philipe Pialasse <tests@pialasse.com> - 0.4.0-1.sme
- update architecture of sources and release/version number
- according to Charlie Brady recomendations
- see [SME 9901]
* Mon Feb 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> - 0.4.0.20170205.git1163864.sme
- update dehydrated to 0.4 [SME: 10080]
- see https://github.com/lukas2511/dehydrated/releases/tag/v0.4.0
- upstream release Version 0.4.0 commit 116386486b3749e4c5e1b4da35904f30f8b2749b

1 unnilennium 1.1 #!/bin/sh
2    
3     . /etc/dehydrated/config
4    
5     for DOM in $(find $BASEDIR/certs/ -mindepth 1 -maxdepth 1 -type d); do
6     CUR_ID=$(readlink $DOM/cert.pem | perl -pe 's/cert-(\d+)\.pem/$1/')
7     for ID in $(find $DOM/ -type f -name cert\*.csr -exec basename "{}" \; | perl -pe 's/cert-(\d+)\.csr/$1/'); do
8     if [[ "$ID" != "$CUR_ID" ]]; then
9     # Is the cert signed ?
10     if /usr/bin/openssl x509 -in $DOM/cert-"$ID".pem -noout > /dev/null 2>&1; then
11     /usr/bin/dehydrated -r $DOM/cert-"$ID".pem
12     else
13     # Cert not signed, probably a failed challenge
14     rm -f $DOM/cert-"$ID".{pem,csr}
15     fi
16     fi
17     done
18     done

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed