Simple Certificate Enrollment Protocol(SCEP)
Simple Certificate Enrollment Protocol(SCEP) is a protocol standard used for certificate management. SCEP is predominantly used for Certificate-based authentication, whereby access to services such as Wi-Fi, VPN and securing e-mail through encryption is carried out using certificates.
The major advantages of certificate-based authentication are:
- Zero-user intervention as users are authenticated via certificates.
- Secure network communication as the data is encrypted and authenticated using certificates.
However, to manually distribute certificates is a cumbersome task for IT administrators in large-scale organizations. SCEP helps network administrators to easily install certificates in devices. SCEP provides a simplified and scalable method for handling certificates in large organizations. The difference between Certificate and SCEP is that SCEP policy is used for distributing client certificates to devices while Certificate policy distributes the CA certificates to devices.
The device directly contacts the SCEP server to generate the certificate, therefore ensure the SCEP server is reachable from the device. It is not necessary for the SCEP server to be reachable to MDM
Pre-requisites
- Click on Start Menu, select Run, type mmc and click OK.
- Click File and select Add/Remove Snap-in....Select Certificate Templates, click Add and then click OK.
- Right click Certificate Template and select Manage.
- Click on User and select Duplicate Template.
- Specify a Template display name and save it by clicking OK.
- Click on Extensions,select Application Policies. Click Edit and select Client Authentication, to add it to Application Policies.
- Click on Cryptography and specify the Minimum key size. The recommended key size is 2048, as it enhances the security. This key size is to be specified while configuring SCEP in MDM.
- Click on Security and select the Group(s), to which the policy is to be applied. Ensure Enroll is an allowed permission for the selected domain(s).
- Click on Subject Name and select Supply in the request, for subject names to be specified in the certificate request.
![scep_1](/mobile-device-management-msp/help/images/scep_1.jpg)
![scep_2](/mobile-device-management-msp/help/images/scep_2.jpg)
![scep_3](/mobile-device-management-msp/help/images/scep_3.jpg)
![scep_6](/mobile-device-management-msp/help/images/scep_6.jpg)
![scep_7](/mobile-device-management-msp/help/images/scep_7.jpg)
![scep_8](/mobile-device-management-msp/help/images/scep_8.jpg)
![scep_5](/mobile-device-management-msp/help/images/scep_5.jpg)
- Add Certificate Authority as a snap-in in the Microsoft Management Console(MMC).
- Expand Certification Authority and right-click on Certificate Templates. Click New and select Certificate Template to Issue.
- Select the Certificate Template created before and click OK.
- Click on Start Menu, select Run, type regedit and click OK.
- Expand HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Cryptography -> MSCEP.
- Right-click on Encryption Template and click Modify.
- Specify the name of the created Certificate Template for Value date. Repeat the same for GeneralPurposeTemplate and SignatureTemplate. Restart the server machine once for the changes to take place
![scep_12](/mobile-device-management-msp/help/images/scep_12.jpg)
![scep_13](/mobile-device-management-msp/help/images/scep_13.jpg)
![scep_14](/mobile-device-management-msp/help/images/scep_14.jpg)
![scep_15](/mobile-device-management-msp/help/images/scep_15.jpg)
![scep_16](/mobile-device-management-msp/help/images/scep_16.jpg)
![scep_17](/mobile-device-management-msp/help/images/scep_17.jpg)
![scep_18](/mobile-device-management-msp/help/images/scep_18.jpg)
If you're using Challenge password(recommended), then registry values must be modified to prevent expiry of Challenge password.
- Open regedit and expand HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Cryptography -> MSCEP -> UseSinglePassword.
- Right-click UseSinglePassword and change the value of data as 1.
- After configuration is complete, restart the NDES Server.
![scep_19](/mobile-device-management-msp/help/images/scep_19.jpg)
Configuring SCEP in MDM
- The value for Subject should be in LDAP DN format as explained here.
- You can verify Server details such as enrollment challenge password from http://<your-server>/CertSrv/mscep_admin and http://<Your-Server>/crtsrv/mscep/mscep.dll
PROFILE SETTINGS | DESCRIPTION |
---|---|
SCEP Configuration Name | The user-defined configuration name, which is used to refer this configuration in other configurations such as Wi-Fi, VPN etc., |
SCEP SETTINGS | |
Server URL | The URL to be specified in the device to obtain certificate. Provide HTTP Server URL, if the SCEP server is within the organization network and not exposed to external networks. The certificate is requested through this URL. For NDES, the server URL format: http://<your-server>/CertSrv/mscep/mscep.dll |
Certificate Authority Name | Specify the name of the Certificate Authority issuing certificates. |
Subject | Specify the details(%username%, %email%, %domainname%,%devicename%) to map the corresponding details in the device. |
Subject Alternative Name Type | Specify the alternate details(RFC 822 Name, DNS Name, Uniform Resource Identifier). |
Subject Alternative Name Type Value (Can be configured only if Subject Alternative Name Type is configured) | Specify the value for alternative name type. |
NT Principal Name | Specify the NT Principal Name used in the organization. |
Maximum Number of Failed Attempts | Number of attempts to obtain the certificate from the CA. |
Time interval between attempts | Time to wait before subsequent attempts to obtain certificate |
Challenge Type | A pre-shared secret key provided by the CA, which adds additional layer of security |
Enrollment Challenge Password | Provide the challenge password to be used. Challenge Password can be identified as explained here. |
Key Size | Specify whether the key is 1024 or 2048 bits |
Use as Digital Signature | Enabling ensures the certificate can be used as Digital Signature |
Use for Key Encipherment | Enabling ensures the certificate can be used as Key Encipherment |