traefik/integration/fixtures/acme
2018-03-05 20:54:04 +01:00
..
ssl feature: Add provided certificates check before to generate ACME certificate when OnHostRule is activated 2017-06-26 18:32:55 +02:00
acme_http01.toml Add Let's Encrypt HTTP Challenge 2018-01-15 16:04:05 +01:00
acme_http01_web.toml Create ACME Provider 2018-03-05 20:54:04 +01:00
acme_provided.toml Create ACME Provider 2018-03-05 20:54:04 +01:00
acme_provided_dynamic.toml Create ACME Provider 2018-03-05 20:54:04 +01:00
certificates.toml Rename TLSConfigurations to TLS. 2018-01-23 16:30:07 +01:00
README.md Fix whitespaces 2017-09-07 12:02:03 +02:00
wrong_acme.toml Traefik still start when Let's encrypt is down 2018-02-05 18:20:04 +01:00

How to generate the self-signed wildcard certificate

#!/usr/bin/env bash

# Specify where we will install
# the wildcard certificate
SSL_DIR="./ssl"

# Set the wildcarded domain
# we want to use
DOMAIN="*.acme.wtf"

# A blank passphrase
PASSPHRASE=""

# Set our CSR variables
SUBJ="
C=FR
ST=MP
O=
localityName=Toulouse
commonName=$DOMAIN
organizationalUnitName=Traefik
emailAddress=
"

# Create our SSL directory
# in case it doesn't exist
sudo mkdir -p "$SSL_DIR"

# Generate our Private Key, CSR and Certificate
sudo openssl genrsa -out "$SSL_DIR/wildcard.key" 2048
sudo openssl req -new -subj "$(echo -n "$SUBJ" | tr "\n" "/")" -key "$SSL_DIR/wildcard.key" -out "$SSL_DIR/wildcard.csr" -passin pass:$PASSPHRASE
sudo openssl x509 -req -days 3650 -in "$SSL_DIR/wildcard.csr" -signkey "$SSL_DIR/wildcard.key" -out "$SSL_DIR/wildcard.crt"
sudo rm -f "$SSL_DIR/wildcard.csr"