Skip to content

Certificate Enrollment with SSCEP

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

Overview

This page describes the certificate enrollment process using SSCEP that is installed locally.

Installing SSCEP

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

Getting CA Certificate

To get the CA certificate:

$ 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:

$ openssl x509 -text -noout -in ca.crt

Generating Certificate Request

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

$ 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:

$ openssl req -text -noout -in local.csr

Enrolling Certificate

To enroll a certificate:

$ 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:

$ openssl x509 -text -noout -in local.crt