Created
May 7, 2020 09:37
-
-
Save ansemjo/0b6a751ca42eb9afcf2a73acbf743035 to your computer and use it in GitHub Desktop.
concatenate letsencrypt certificates on a plesk host for the psa installer
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
[Unit] | |
Description=Update Plesk Installer TLS Certificate with %i's LetsEncrypt chain | |
[Service] | |
Type=oneshot | |
User=root | |
PrivateTmp=true | |
PrivateDevices=true | |
ProtectSystem=full | |
ProtectHome=true | |
NoNewPrivileges=true | |
ExecStart=/bin/bash -c 'cat /opt/psa/var/modules/letsencrypt/etc/live/%i/{privkey,fullchain}.pem > /opt/psa/admin/conf/httpsd.pem' |
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
[Unit] | |
Description=Update Plesk Installer TLS certificate | |
[Timer] | |
OnCalendar=weekly | |
Persistent=true | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment