Skip to content
Snippets Groups Projects
Commit f91219d2 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

Tests

parent f5facebf
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@ Siehe dazu: [Anleitung Serverzertifikate mit TCS](https://intranet.ptb.de/filead
## Relevate Dateien
* `get-cert-first`: Erstmaliges Beschaffen der Zertifikatsdateien. Die Angaben zu `--eab-kid` und `--eab-hmac-key` müssen angepasst werden.
* `vl-cert.timer`: Timer, der einmal wöchentlich `vl-cert.service` startet.
* `vl-cert.service`: Neue Zertifikatsdateien herunterladen und dorthin, wo sie gebraucht werden, kopieren.
* `vl-cert.timer`: Timer, der einmal wöchentlich am Montag `vl-cert.service` startet.
* `vl-cert.service`: Falls vorhanden, neue Zertifikatsdateien herunterladen und dorthin, wo sie gebraucht werden, kopieren. Die `cp`-Anweisungen müssen hinsichtlich des Zieles und der Benennung der Dateien angepasst werden.
## Installation
......@@ -20,9 +20,42 @@ systemctl link $PWD/vl-cert.service
systemctl link $PWD/vl-cert.timer
systemctl start vl-cert.timer
systemctl enable vl-cert.timer
# Test:
```
## Test:
Allgemein:
```
systemctl list-timers
```
Ergebnisse seit einem bestimmten Zeitpunkt:
```
journalctl --since 2021-10-15 --unit vl-cert.service
```
In den meisten Fällen ist eine Ausgabe ähnlich der folgenden zu erwarten, die besagt, dass kein Erneuern des Zertifikates notwendig war:
```
Oct 17 10:00:00 a75436 systemd[1]: Starting Get a new certificate via ACME-Account...
Oct 17 10:00:02 a75436 bash[1838396]: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Oct 17 10:00:02 a75436 bash[1838396]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Oct 17 10:00:02 a75436 bash[1838396]: Processing /etc/letsencrypt/renewal/a75436.berlin.ptb.de.conf
Oct 17 10:00:02 a75436 bash[1838396]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Oct 17 10:00:02 a75436 bash[1838396]: Cert not yet due for renewal
Oct 17 10:00:02 a75436 bash[1838396]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Oct 17 10:00:02 a75436 bash[1838396]: The following certs are not due for renewal yet:
Oct 17 10:00:02 a75436 bash[1838396]: /etc/letsencrypt/live/a75436.berlin.ptb.de/fullchain.pem expires on 2023-10-13 (skipped)
Oct 17 10:00:02 a75436 bash[1838396]: No renewals were attempted.
Oct 17 10:00:02 a75436 bash[1838396]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Oct 17 10:00:02 a75436 systemd[1]: vl-cert.service: Succeeded.
Oct 17 10:00:02 a75436 systemd[1]: Finished Get a new certificate via ACME-Account.
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment