Skip to content

Certificate Enrollment with SSCEP Container

Endi S. Dewata edited this page Jan 20, 2023 · 2 revisions

Overview

This page describes the certificate enrollment process using SSCEP that runs in a container.

Starting SSCEP Container

$ podman run \
    --name client \
    --hostname client.example.com \
    --network example \
    --network-alias client.example.com \
    -it \
    --detach \
    quay.io/dogtagpki/sscep

Getting CA Certificate

To get the CA certificate:

$ podman exec client sscep getca \
    -u http://pki.example.com:8080/ca/cgi-bin/pkiclient.exe \
    -c ca.crt

It will store the CA certificate in ca.crt. To inspect the CA certificate:

$ podman exec client openssl x509 -text -noout -in ca.crt

Generating Certificate Request

To generate a certificate request, enter the client’s IP address and password:

$ podman exec client mkrequest -ip <IP address> <password>

It will store the key in local.key and the certificate request in local.csr. To inspect the certificate request:

$ podman exec client openssl req -text -noout -in local.csr

Enrolling Certificate

To enroll a certificate:

$ podman exec client sscep enroll \
    -u http://pki.example.com:8080/ca/cgi-bin/pkiclient.exe \
    -c ca.crt \
    -k local.key \
    -r local.csr \
    -l local.crt \
    -E 3des \
    -S sha256

It will store the certificate in local.crt. To inspect the certificate:

$ podman exec client openssl x509 -text -noout -in local.crt