Check Projektemacher Static SSL Certificate #38
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
name: Check Projektemacher Static SSL Certificate | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check Certificate | |
run: | | |
if true | openssl s_client -connect static.projektemacher.org:443 2>/dev/null | openssl x509 -noout -checkend 0; then | |
echo "Certificate is not expired" | |
exit 0 | |
else | |
echo "Certificate is expired" | |
exit 1 | |
fi |