Skip to content

Instantly share code, notes, and snippets.

View scysys's full-sized avatar
💩
I may be slow to respond.

Sven scysys

💩
I may be slow to respond.
  • Germany
  • 22:01 (UTC +02:00)
View GitHub Profile
@scysys
scysys / letsencrypt-hostname.sh
Last active August 24, 2017 13:54 — forked from xgin/letsencrypt-hostname.sh
Secure Plesk installation with hostname certificate by Let's Encrypt
#!/bin/bash -e
### Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved.
### Secure plesk clean installation with hostname certificate by Let's Encrypt
export PYTHONWARNINGS="ignore:Non-standard path"
LE_HOME=${LE_HOME:-"/usr/local/psa/var/modules/letsencrypt"}
HOSTNAME=$(hostname)
# Use staging server for testing
# --server https://acme-staging.api.letsencrypt.org/directory