Skip to content

DigiCert CertCentral gateway plugin for the AnyCA Gateway framework

Notifications You must be signed in to change notification settings

Keyfactor/digicert-certcentral-caplugin

Repository files navigation

DigiCert CertCentral AnyCA REST Gateway Plugin

DigiCert CertCentral plugin for the AnyCA REST Gateway framework

Integration status: Production - Ready for use in production environments.

About the Keyfactor

Support for DigiCert CertCentral AnyCA REST Gateway Plugin

DigiCert CertCentral AnyCA REST Gateway Plugin is supported by Keyfactor for Keyfactor customers. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com

To report a problem or suggest a new feature, use the Issues tab. If you want to contribute actual bug fixes or proposed enhancements, use the Pull requests tab.




Introduction

This AnyCA REST Gateway plug-in enables issuance, revocation, and synchronization of certificates from DigiCert's CertCentral offering.

Prerequisites

Prerequisite: Certificate Chain

In order to request certificates from the Keyfactor AnyGateway, the Keyfactor Command server must trust the certificate chain of trust. To ensure trust is established, download your Root and/or Subordinate CA certificates from DigiCert and import them into the appropriate local certificate stores on the Keyfactor AnyGateway and Command servers. More information can be found in the AnyCA Gateway REST Install Guide

Installation

  1. Download latest successful build from GitHub Releases

  2. Extract the .zip file, and from it, copy DigicertCAPlugin.dll and DigicertCAPlugin.deps.json to the 'C:\Program Files\Keyfactor\AnyCA Gateway\AnyGatewayREST\net6.0\Extensions' directory

  3. Within the 'C:\Program Files\Keyfactor\AnyCA Gateway\AnyGatewayREST\net6.0\Extensions\Connectors' folder, update the manifest.json file to contain the following:

{  
    "extensions": {  
        "Keyfactor.AnyGateway.Extensions.IAnyCAPlugin": {  
            "CertCentralCAPlugin": {  
                "assemblypath": "../DigicertCAPlugin.dll",  
                "TypeFullName": "Keyfactor.Extensions.CAPlugin.DigiCert.CertCentralCAPlugin"  
            }  
        }  
    }  
}

NOTE: If the Connectors folder and/or the manifest.json file do not exist, they must be manually created

  1. Restart the AnyCA Gateway service

  2. Navigate to the AnyCA Gateway REST portal and verify that the Gateway recognizes the DigiCert plugin by hovering over the ⓘ symbol to the right of the Gateway on the top left of the portal. CAPlugin Type should now be listed as CertCentralCA.

Configuration

  1. Follow the official Keyfactor AnyCA Gateway REST documentation to define a new Certificate Authority, using the following information to configure the CA Connection section:
SETTING REQUIRED? DESCRIPTION
Enabled Yes Enables the DigiCert gateway functionality. Should almost always be set to 'true'
APIKey Yes The API key the Gateway should use to communicate with the DigiCert API. Can be generated from the DigiCert portal.
Region No The geographic region associated with your DigiCert account. Valid values are US and EU. Default if not provided is US.
DivisionId No If your CertCentral account has multiple divisions AND uses any custom per-division product settings, provide a division ID for the gateway to use for product type lookups.
RevokeCertificateOnly No If set to 'true', revoke operations will only revoke the individual certificate in question rather than the entire DigiCert order. Default if not provided is 'false'.
SyncCAFilter No If you list one or more DigiCert issuing CA IDs here (comma-separated if more than one), the sync process will only return certs issued by one of those CAs. Leave this option empty to sync all certs from all CAs.
FilterExpiredOrders No If set to 'true', syncing will not return certs that are expired more than a specified number of days. The number of days is specified by the SyncExpirationDays config option. Default value is 'false'.
SyncExpirationDays No Only used if FilterExpiredOrders is 'true', otherwise ignored. Sets the number of days a cert has to be expired for the sync process to no longer sync it. For example, a value of 30 means sync will continue to return certs that have expired within the past 30 days, but not ones older than that. Default value is 0, meaning sync would not return any certs expired before the current day.
  1. After saving the CA configuration, Follow the official AnyCA Gateway REST documentation to define one or more Certificate Profiles.
  2. Edit your newly configured CA, and you should now be able to modify the Templates tab. You need at least one template for each product type you wish to be able to enroll for. It is recommended to include the product type in the template name to make them easier to identify. Use the following information to configure the parameters for each template:
SETTING REQUIRED? DESCRIPTION
LifetimeDays No The number of days of validity to use when requesting certs. Default if not provided is 365. NOTE FOR RENEWALS: If the value of LifetimeDays is evenly divisible by 365, the expiration day and month of the new cert will be set to the same values as the old cert if possible, to avoid renewal date drift.
CACertId No The ID of the issuing CA to be used by DigiCert. If not specified, the default for your account will be used.
Organization-Name No If specified, this value will override any organization name provided in the subject of the cert request on enrollment. Useful for requests (such as ACME) that contain no subject.
RenewalWindowDays No The number of days from expiration that the gateway should do a reissue rather than a renewal. Default if not provided is 90, meaning any renewal request for certs that expire in more than 90 days will be treated as a reissue request.

About

DigiCert CertCentral gateway plugin for the AnyCA Gateway framework

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages