Skip to content

User Guide

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

Using SSCEP

Installation

$ dnf copr enable @pki/sscep
$ dnf install sscep

Getting CA Certificate

$ sscep getca \
    -u http://pki.example.com:8080/ca/cgi-bin/pkiclient.exe \
    -c ca.crt
$ openssl x509 -text -noout -in ca.crt

Enrollment

$ mkrequest -ip $CLIENT_IP Secret.123
$ openssl req -text -noout -in local.csr
$ 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
$ openssl x509 -text -noout -in local.crt

Using SSCEP Container

Installation

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

Getting CA Certificate

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

Enrollment

$ podman exec client mkrequest -ip $CLIENT_IP Secret.123
$ podman exec client openssl req -text -noout -in local.csr
$ 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
$ podman exec client openssl x509 -text -noout -in local.crt
Clone this wiki locally