This repository has been archived by the owner on May 3, 2024. It is now read-only.
forked from cert-manager/webhook-example
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation about Issuer, prod and staging
Add details about showing the key details
- Loading branch information
Showing
1 changed file
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,29 +102,29 @@ This webhook has been tested with [cert-manager] v0.13.1 and Kubernetes v0.17.x | |
6. Create a staging issuer (email addresses with the suffix `example.com` are forbidden): | ||
|
||
cat << EOF | sed "s/[email protected]/$email/" | kubectl apply -f - | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Issuer | ||
metadata: | ||
name: letsencrypt-staging | ||
namespace: default | ||
spec: | ||
acme: | ||
# The ACME server URL | ||
server: https://acme-staging-v02.api.letsencrypt.org/directory | ||
# Email address used for ACME registration | ||
email: [email protected] | ||
# Name of a secret used to store the ACME account private key | ||
privateKeySecretRef: | ||
name: letsencrypt-staging | ||
solvers: | ||
- dns01: | ||
webhook: | ||
groupName: acme.bwolf.me | ||
solverName: gandi | ||
config: | ||
apiKeySecretRef: | ||
key: api-token | ||
name: gandi-credentials | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Issuer | ||
metadata: | ||
name: letsencrypt-staging | ||
namespace: default | ||
spec: | ||
acme: | ||
# The ACME server URL | ||
server: https://acme-staging-v02.api.letsencrypt.org/directory | ||
# Email address used for ACME registration | ||
email: [email protected] | ||
# Name of a secret used to store the ACME account private key | ||
privateKeySecretRef: | ||
name: letsencrypt-staging | ||
solvers: | ||
- dns01: | ||
webhook: | ||
groupName: acme.bwolf.me | ||
solverName: gandi | ||
config: | ||
apiKeySecretRef: | ||
key: api-token | ||
name: gandi-credentials | ||
EOF | ||
|
||
Check status of the Issuer: | ||
|
@@ -152,6 +152,10 @@ This webhook has been tested with [cert-manager] v0.13.1 and Kubernetes v0.17.x | |
|
||
kubectl describe certificate $DOMAIN | ||
|
||
Display the details like the common name and subject alternative names: | ||
|
||
kubectl get secret $DOMAIN-tls -o yaml | ||
|
||
8. Issue a wildcard Certificate for your `$DOMAIN`: | ||
|
||
cat << EOF | sed "s/example-com/$DOMAIN/" | kubectl apply -f - | ||
|
@@ -171,6 +175,10 @@ This webhook has been tested with [cert-manager] v0.13.1 and Kubernetes v0.17.x | |
|
||
kubectl describe certificate $DOMAIN | ||
|
||
Display the details like the common name and subject alternative names: | ||
|
||
kubectl get secret wildcard-$DOMAIN-tls -o yaml | ||
|
||
99. Uninstall this webhook: | ||
|
||
helm uninstall cert-manager-webhook-gandi --namespace cert-manager | ||
|