Ce contenu n'est pas disponible dans la langue sélectionnée.
12.3. Requesting a CA-signed Certificate Through SCEP
The Simple Certificate Enrollment Protocol (SCEP) automates and simplifies the process of certificate management with the CA. It lets a client request and retrieve a certificate over HTTP directly from the CA's SCEP service. This process is secured by a one-time PIN that is usually valid only for a limited time.
The following example adds a SCEP CA configuration to
certmonger
, requests a new certificate, and adds it to the local NSS database.
- Add the CA configuration to
certmonger
:getcert add-scep-ca -c CA_Name -u SCEP_URL
[root@server ~]# getcert add-scep-ca -c CA_Name -u SCEP_URL
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -c
: Mandatory nickname for the CA configuration. The same value can later be passed to othergetcert
commands.-u
: URL to the server's SCEP interface.- Mandatory parameter when using an HTTPS URL:
-R CA_Filename
: Location of the PEM-formatted copy of the SCEP server's CA certificate, used for the HTTPS encryption.
- Verify that the CA configuration has been successfully added:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The CA configuration was successfully added, when the CA certificate thumbprints were retrieved over SCEP and shown in the command's output. When accessing the server over unencrypted HTTP, manually compare the thumbprints with the ones displayed at the SCEP server to prevent a Man-in-the-middle attack. - Request a certificate from the CA:
getcert request -I Task_Name -c CA_Name -d /etc/pki/nssdb -n Certificate_Name -N cn="Subject Name" -L one-time_PIN
[root@server ~]# getcert request -I Task_Name -c CA_Name -d /etc/pki/nssdb -n Certificate_Name -N cn="Subject Name" -L one-time_PIN
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -I
: Name of the task. The same value can later be passed to thegetcert list
command.-c
: CA configuration to submit the request to.-d
: Directory with the NSS database to store the certificate and key.-n
: Nickname of the certificate, used in the NSS database.-N
: Subject name in the CSR.-L
: Time-limited one-time PIN issued by the CA.
- Right after submitting the request, you can verify that a certificate was issued and correctly stored in the local database:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The status MONITORING signifies a successful retrieval of the issued certificate. Thegetcert-list(1)
man page lists other possible states and their meanings.