Difference between revisions of "PKI ACME Responder"

From Dogtag
Jump to: navigation, search
m (Deploying ACME Web Application)
m (Requesting a Certificate)
Line 36: Line 36:
 
= Requesting a Certificate =
 
= Requesting a Certificate =
  
To request a certificate with automatic http-01 validation:
+
== HTTP-01 Challenge ==
 +
 
 +
To request a certificate with automatic http-01 challenge:
  
 
<pre>
 
<pre>
Line 62: Line 64:
 
</pre>
 
</pre>
  
To request a certificate with manual dns-01 validation:
+
== DNS-01 Challenge ==
 +
 
 +
To request a certificate with manual dns-01 challenge:
  
 
<pre>
 
<pre>

Revision as of 01:49, 16 August 2019

Current Issues

  • The certbot generates CSR with empty subject, but the caServerCert profile requires a subject that starts with CN=.
  • PKI CA requires authentication with admin's client cert.
  • Bug in CertificatePoliciesExtDefault.

Installing PKI CA

See Installing CA.

Creating ACME Subsystem

To create ACME subsystem:

$ pki-server acme-create

It will store the configuration files in /etc/pki/pki-tomcat/acme folder. Make sure the ACME subsystem is configured to point to PKI CA.

Deploying ACME Web Application

To deploy ACME web application:

$ pki-server acme-deploy

It will create a deployment descriptor at /etc/pki/pki-tomcat/Catalina/localhost/acme.xml.

To verify, open the ACME service in a browser, for example:

Requesting a Certificate

HTTP-01 Challenge

To request a certificate with automatic http-01 challenge:

$ certbot certonly --standalone \
    -d server.example.com \
    --server https://acme.demo.dogtagpki.org/acme/directory \
    --preferred-challenges http \
    --register-unsafely-without-email

To request a certificate with manual http-01 validation:

$ certbot certonly --manual \
    -d server.example.com \
    --server https://acme.demo.dogtagpki.org/acme/directory \
    --preferred-challenges http \
    --register-unsafely-without-email

Make sure the web server is set up properly:

$ curl http://server.example.com/.well-known/acme-challenge/<token>

DNS-01 Challenge

To request a certificate with manual dns-01 challenge:

$ certbot certonly --manual \
    -d server.example.com \
    --server https://acme.demo.dogtagpki.org/acme/directory \
    --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

Undeploying ACME Web Application

To undeploy ACME web application:

$ pki-server acme-undeploy

Removing ACME Subsystem

To remove ACME subsystem:

$ pki-server acme-remove

See Also