This article describes a configuration example of the SCEP protocol in Protocol Gateway, using the provided enrollment templates file.
Simple Certificate Enrollment Protocol (SCEP) is a protocol that allows devices to easily enroll for a certificate by using a URL and a shared secret to communicate with a PKI.
Protocol Gateway only supports the enrollment protocols in RA mode, that is, a device RA key pair is used to protect the protocol messages. For use with devices that don't support RA mode, see more information in Use CMP or SCEP protocol in CA mode.
Configure SCEP protocol
Set SCEP properties
To set the properties for the SCEP protocols:
- Open \Nexus\cm-gateway\conf\SCEP.properties for editing.
- Modify the following properties:
- Enable the SCEP protocol by setting
start
totrue
. Set
default.tokenprocedure
toSCEP Registration and Enroll Procedure
.Set
default.ra.keyfile
to the Protocol Gateway RA token file anddefault.ra.password
to the related PIN. For more information on how to configure verifications of certificate requests in .properties files, see Certificate request verifications in Protocol Gateway.
- Enable the SCEP protocol by setting
- If needed, scramble sensitive parameters in the configuration file. See Scramble sensitive data in configuration files in Protocol Gateway.
- Save the file.
start = true default.tokenprocedure = SCEP Registration and Enroll Procedure default.ra.keyfile = protocol-gateway-ra.p12 default.ra.password = <Protocol Gateway RA PIN>
Test SCEP protocol with Nexus test client
Generate SCEP request
To verify the installation using the Nexus SCEP Client:
- Generate a SCEP request:
In the command prompt, start an interactive session, by typing the command:
Example: Generate SCEP requestjava –jar testtools.jar SCEPClient interactive
Run these commands:
getcacert
- to get the CA cert from the servergenkeypair
- to generate a key pair for the clientcreate
- to create a certificate signing request (CSR)send
- to send the CSR to Protocol Gateway
The send command will fail, since there is no registered device with that FQDN. Verify in the log file in \Nexus\CM\server\logs\cf:
Example: log file... Request failed: No registration found for fqdn: [1596799669017.example.com] ...