Skip to content

Instantly share code, notes, and snippets.

@simonhaenisch
Last active August 28, 2018 05:29
Show Gist options
  • Save simonhaenisch/02365cd7ba90f521ef0e0f56998fe90e to your computer and use it in GitHub Desktop.
Save simonhaenisch/02365cd7ba90f521ef0e0f56998fe90e to your computer and use it in GitHub Desktop.
Cloudcannon: Create Wildcard Certificate with Certbot
  1. Run Certbot:
sudo certbot certonly --manual --server https://acme-v02.api.letsencrypt.org/directory
  1. Enter Domains, e. g. domain.tld,*.domain.tld.
  2. Add _acme-challenge DNS record.
  3. Upload .well-known/acme-challenge file to website:
---
layout: null
permalink: /.well-known/acme-challenge/XXXXXXXXXXXXXXX/index.html
---

XXXXXXXXXXXXXXX.XXXXXXXXXXXXXXX-XXXXXXXXXXXXXXX
  1. Check that DNS record and website file exist:
host -t TXT _acme-challenge.domain.tld
curl -L domain.tld/.well-known/acme-challenge/XXXXXXXXXXXXXXX
  1. Copy-paste the certificate, private key and chain into the Cloudcannon interface:
sudo cat /etc/letsencrypt/live/domain.tld/cert.pem
sudo openssl rsa -inform pem -in /etc/letsencrypt/live/domain.tld/privkey.pem -outform pem
sudo cat /etc/letsencrypt/live/domain.tld/chain.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment