Skip to content

Instantly share code, notes, and snippets.

@ansemjo
Created May 7, 2020 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ansemjo/0b6a751ca42eb9afcf2a73acbf743035 to your computer and use it in GitHub Desktop.
Save ansemjo/0b6a751ca42eb9afcf2a73acbf743035 to your computer and use it in GitHub Desktop.
concatenate letsencrypt certificates on a plesk host for the psa installer
[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'
[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