Document toolboxDocument toolbox

WinEP - Revocation over MS-CSRA

Introduction

This article explains how to configure CM and the Active Directory for end user certificate revocation over Microsoft Certificate Services Remote Administration Protocol (MS-CSRA) [MS-CSRA]: Certificate Services Remote Administration Protocol.

It also explains how to perform the revocation using the CertUtil (certutil) Microsoft Windows application.

Configuration

  • Standard WinEP configuration:

    • Ensure WinEP is installed and configured according to [1].

  • CAs published to Active Directory:

    • The CAs (for which revocation shall be enabled) must be placed in the CN=AIA container in Active Directory (CN= AIA, CN=Public Key Services, CN=Services, CN=Configuration, DC=<domain>, DC=<local>).

    • Distribution Rules can be configured in CM to achieve this. See Create distribution rule in Certificate Manager

  • WinEP CM officer (SSL certificate (see [1]) for the WinEP service):

    • The CM officer must have role: cert.revoke

    • It is possible to restrict which CAs (end user) certificates the WinEP service is allowed to revoke by configuring the domains of the CA object and the CM officer in CM Administrators Workbench (AWB).

  • WinEP user:

    • The user account that is running the WinEP service (see [1]) must have Read all properties permission on the CA object in the CN=AIA container in Active Directory (CN= AIA, CN=Public Key Services, CN=Services, CN=Configuration, DC=<domain>, DC=<local>).

    • To configure this:

      1. Open ADSI Edit tool (adsiedit.msc)

      2. Open the Configuration context

      3. Navigate to CN=AIA, CN=Public Key Services, CN=Services, CN=Configuration, DC=<domain>, DC=<local>

      4. Right click on the CA object, select Properties, go to Security tab and click Advanced

      5. Add the WinEP user and click Edit to edit its permissions

      6. In Properties, enable Read all properties permission

      7. Click OK and apply the changes

  • Requester's Windows User:

    • The user performing the revocation must have write permissions on the certificateRevocationList attribute of the CA object (for which certificates are revoked) in the AIA container in Active Directory.

    • To configure this:

      1. Open ADSI Edit tool (adsiedit.msc)

      2. Open the Configuration context

      3. Navigate to CN=AIA, CN=Public Key Services, CN=Services, CN=Configuration, DC=<domain>, DC=<local>

      4. Right click on the CA object, select Properties, go to Security tab and click Advanced

      5. Add the requester's user or group and click Edit to edit its permissions

      6. In Properties, enable Write certificateRevocationList permission to allow the user/group perform certificate revocation

      7. Click OK and apply the changes

  • Certadm.dll:

    • This DLL must be available on the machine where CertUtil is run to send revocation requests. It provides the ICertAdmin interface for administrative tasks like revoking certificates.

    • This library is included by default in Windows Server instances. If not, you need to add it manually.

Revocation procedure:

Revocation of a certificate can be performed by using the certutil.exe tool from Microsoft by running the following command:
certutil -config "<domain>\<ca_name>" -revoke <cert_serial_number> <revocation_reason_code> where:

  • <domain>\<ca_name>: The issuer CA name and the Windows domain

  • <cert_serial_number>: The certificate's serial number

  • <revocation_reason_code>: The revocation reason code

For example: certutil -config "DC.example.com\Issuer CA" -revoke 918273 1

The following revocation reason codes are supported by WinEP:

  • Unspecified (0)

  • Key Compromise (1)

  • Afiliation Changes (3)

  • Superseeded (4)

  • Cessation of Operation (5)

 

[1]: Certificate Manager WinEP documentation found in the CM installation distribution.

 

 

Copyright 2024 Technology Nexus Secured Business Solutions AB. All rights reserved.
Contact Nexus | https://www.nexusgroup.com | Disclaimer | Terms & Conditions