Difference between revisions of "PKI ACME Responder"

From Dogtag
Jump to: navigation, search
m (See Also)
m (See Also)
 
Line 140: Line 140:
 
* [[PKI ACME Container]]
 
* [[PKI ACME Container]]
 
* [[PKI ACME OpenShift]]
 
* [[PKI ACME OpenShift]]
* [[PKI Server Webapp CLI]]
+
* [[PKI Server ACME CLI]]
 
* [[IPA ACME Responder]]
 
* [[IPA ACME Responder]]
 
* [[certbot]]  
 
* [[certbot]]  
 
* [https://medium.com/@saurabh6790/generate-wildcard-ssl-certificate-using-lets-encrypt-certbot-273e432794d7 Generate Wildcard SSL certificate using Let’s Encrypt/Certbot]
 
* [https://medium.com/@saurabh6790/generate-wildcard-ssl-certificate-using-lets-encrypt-certbot-273e432794d7 Generate Wildcard SSL certificate using Let’s Encrypt/Certbot]

Latest revision as of 23:26, 21 May 2020

Overview

This page describes the procedure to install ACME responder being developed for PKI 10.8.

The development branch is available at:

Installation

Certificate Enrollment

Note that certbot does not accept self-signed CA certificate, so the operations below are executed with plain HTTP URLs.

Certificate Enrollment with HTTP-01

To request a certificate with automatic http-01 validation:

$ certbot certonly --standalone \
    --server http://$HOSTNAME:8080/acme/directory \
    -d $HOSTNAME \
    --preferred-challenges http \
    --register-unsafely-without-email

To request a certificate with manual http-01 validation:

$ certbot certonly --manual \
    --server http://$HOSTNAME:8080/acme/directory \
    -d $HOSTNAME \
    --preferred-challenges http \
    --register-unsafely-without-email

Make sure the web server is set up properly:

$ curl http://$HOSTNAME/.well-known/acme-challenge/<token>

Certificate Enrollment with DNS-01

To request a certificate with manual dns-01 validation:

$ certbot certonly --manual \
    --server http://$HOSTNAME:8080/acme/directory \
    -d server.example.com \
    --preferred-challenges dns \
    --register-unsafely-without-email

To request a wildcard certificate with manual dns-01 validation:

$ certbot certonly --manual \
    --server http://$HOSTNAME:8080/acme/directory \
    -d *.example.com \
    --preferred-challenges dns \
    --register-unsafely-without-email

Make sure the TXT record is created properly:

$ dig _acme-challenge.server.example.com TXT

The certificate will be stored at /etc/letsencrypt/live/server.example.com/cert.pem.

To inspect the certificate:

$ openssl x509 -text -noout -in /etc/letsencrypt/live/server.example.com/cert.pem

Certificate Revocation

To revoke with ACME account:

$ certbot revoke \
    --server http://$HOSTNAME:8080/acme/directory \
    --cert-path /etc/letsencrypt/live/server.example.com/cert.pem

To revoke with private key:

$ certbot revoke \
    --server http://$HOSTNAME:8080/acme/directory \
    --cert-path /etc/letsencrypt/live/server.example.com/cert.pem \
    --key-path /etc/letsencrypt/live/server.example.com/privkey.pem

See also:

Account Management

Creating an Account

To create an ACME account:

$ certbot register \
    --server http://$HOSTNAME:8080/acme/directory \
    -m admin@example.com \
    --agree-tos

Updating Account

To update an ACME account:

$ certbot update_account --server http://$HOSTNAME:8080/acme/directory \
    -m admin@example.com

Deactivating an Account

To deactivate an ACME account:

$ certbot unregister --server http://$HOSTNAME:8080/acme/directory

See Also