Use a one-time passcode for enrollment
Use a one-time passcode (OTP) to authenticate a client's initial certificate enrollment through a SCEP, EST, or CMP profile configured for OTP authentication.
Each OTP is unique, valid only for the period configured in the profile, and can be used only once. After the client receives a certificate, supported subsequent operations use the existing certificate for authentication instead of another OTP.
Before you begin
Make sure you have:
An active SCEP, EST, or CMP profile configured to use One-Time Passcode (OTP) authentication.
The permissions and credentials required to generate an OTP for the profile.
A secure method to provide the OTP to the client.
Generate a one-time passcode
To generate a one-time passcode:
Get the OTP generation URL for your profile.
The URL has the following structure:
https://<your-ca-domain>/certificate-authority/api/v1/issuance/profile/<ProfileID>/dynamic-code
Send an authenticated request to the OTP generation URL.
Copy the OTP and the information returned with it.
The response includes:
Value
Description
otpThe one-time passcode used to authenticate the initial enrollment request.
idThe unique identifier for the OTP. For CMP, this identifier is included in the generated enrollment URL.
valid_fromThe time from which the OTP can be used.
valid_toThe time after which the OTP can no longer be used.
urlFor CMP profiles, the enrollment URL generated for this OTP.
For SCEP and EST, the response contains the OTP information. For CMP, it also contains a unique enrollment URL that includes the OTP ID.
Use the passcode
Provide the OTP and other required enrollment information to the client through a secure out-of-band method.
How the client uses the OTP depends on the protocol:
Protocol | How the OTP is used |
|---|---|
SCEP | Include the OTP as the challenge password in the certificate signing request (CSR). |
EST | Use the OTP as the password for authenticating the initial enrollment request. |
CMP | Use the OTP as the shared secret and use the unique CMP enrollment URL returned when the OTP was generated. |
Complete the enrollment before the OTP expires. After a successful enrollment, the OTP cannot be reused. Generate a new OTP for another initial enrollment or if the previous OTP expires before it is used.