Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad
netqmail
qmail-tls.cron
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qmail-tls.cron of Package netqmail
#!/bin/sh # (C) 2011,2013 Peter Conrad <conrad@quisquis.de> # This program is licensed under the terms of the # GNU General Public License Version 2. A copy of these terms should be # enclosed as "gpl-2.0.txt" in the package containing this file. cd "@QMAIL_CONFDIR@/control" if [ -r servercert.pem ]; then if ! openssl x509 -in servercert.pem -noout -checkend $((30*86400)) >/dev/null; then until="`openssl x509 -in servercert.pem -noout -enddate`" ( echo "Date: `date -R`" echo "Subject: qmail-tls server certificate expiring on ${until#*=}" echo "" openssl x509 -in servercert.pem -noout -text ) | "@QMAIL_EXECDIR@/qmail-inject" postmaster fi fi if [ -r clientcert.pem ] && ! diff clientcert.pem servercert.pem >/dev/null; then if ! openssl x509 -in clientcert.pem -noout -checkend $((30*86400)) >/dev/null; then until="`openssl x509 -in clientcert.pem -noout -enddate`" ( echo "Date: `date -R`" echo "Subject: qmail-tls client certificate expiring on ${until#*=}" echo "" openssl x509 -in clientcert.pem -noout -text ) | "@QMAIL_EXECDIR@/qmail-inject" postmaster fi fi "@QMAIL_EXECDIR@/update_tmprsadh" >/dev/null exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor