1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-14 10:52:49 +02:00

[Helper] Fix expiry-dates.sh

This commit is contained in:
andryyy 2020-06-01 21:42:31 +02:00
parent 443cc89498
commit a54e3ccedf
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

9
expiry-dates.sh Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
POSTFIX=$(echo | openssl s_client -connect mail.79v.de:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -enddate | cut -d "=" -f 2)
DOVECOT=$(echo | openssl s_client -connect mail.79v.de:143 -starttls imap 2>/dev/null | openssl x509 -inform pem -noout -enddate | cut -d "=" -f 2)
NGINX=$(echo | openssl s_client -connect mail.79v.de:443 2>/dev/null | openssl x509 -inform pem -noout -enddate | cut -d "=" -f 2)
echo TLS expiry dates:
echo Postfix: ${POSTFIX}
echo Dovecot: ${DOVECOT}
echo Nginx: ${NGINX}