traefik/integration/fixtures/acme
Romain a002ccfce3
ACME Default Certificate
Co-authored-by: Ludovic Fernandez <ldez@users.noreply.github.com>
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
2022-09-13 20:34:08 +02:00
..
ssl ACME TLS ALPN 2018-07-03 12:44:04 +02:00
acme_base.toml doc: use the same entry point name everywhere 2020-01-23 16:36:07 +01:00
acme_domains.toml doc: use the same entry point name everywhere 2020-01-23 16:36:07 +01:00
acme_multiple_resolvers.toml doc: use the same entry point name everywhere 2020-01-23 16:36:07 +01:00
acme_store_domains.toml ACME Default Certificate 2022-09-13 20:34:08 +02:00
acme_tcp.toml doc: use the same entry point name everywhere 2020-01-23 16:36:07 +01:00
acme_tls.toml doc: use the same entry point name everywhere 2020-01-23 16:36:07 +01:00
acme_tls_dynamic.toml doc: use the same entry point name everywhere 2020-01-23 16:36:07 +01:00
acme_tls_multiple_entrypoints.toml doc: use the same entry point name everywhere 2020-01-23 16:36:07 +01:00
certificates.toml feat: use parser to load dynamic config from file. 2020-06-17 16:48:04 +02:00
README.md Fix whitespaces 2017-09-07 12:02:03 +02: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"