Skip to content

Commit a22a63e

Browse files
dgaleyKeyfactor
andauthored
Dev 2.2 (#47)
* add duplicate support * Update generated docs * treat needs_approval the same as pending on enrollments and don't return failure code * Update generated docs --------- Co-authored-by: Keyfactor <keyfactor@keyfactor.github.io>
1 parent d534241 commit a22a63e

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1 align="center" style="border-bottom: none">
2-
DigiCert CertCentral Gateway AnyCA Gateway REST Plugin
2+
DigiCert CertCentral AnyCA Gateway REST Plugin
33
</h1>
44

55
<p align="center">
@@ -41,10 +41,10 @@ The Digicert CertCentral AnyCA REST plugin extends the capabilities of Digicert'
4141

4242
## Compatibility
4343

44-
The DigiCert CertCentral Gateway AnyCA Gateway REST plugin is compatible with the Keyfactor AnyCA Gateway REST 24.2.0 and later.
44+
The DigiCert CertCentral AnyCA Gateway REST plugin is compatible with the Keyfactor AnyCA Gateway REST 24.2.0 and later.
4545

4646
## Support
47-
The DigiCert CertCentral Gateway AnyCA Gateway REST plugin is supported by Keyfactor for Keyfactor customers. If you have a support issue, please open a support ticket with your Keyfactor representative. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com.
47+
The DigiCert CertCentral AnyCA Gateway REST plugin is supported by Keyfactor for Keyfactor customers. If you have a support issue, please open a support ticket with your Keyfactor representative. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com.
4848

4949
> To report a problem or suggest a new feature, use the **[Issues](../../issues)** tab. If you want to contribute actual bug fixes or proposed enhancements, use the **[Pull requests](../../pulls)** tab.
5050
@@ -56,7 +56,7 @@ An API Key within your Digicert account that has the necessary permissions to en
5656

5757
1. Install the AnyCA Gateway REST per the [official Keyfactor documentation](https://software.keyfactor.com/Guides/AnyCAGatewayREST/Content/AnyCAGatewayREST/InstallIntroduction.htm).
5858

59-
2. On the server hosting the AnyCA Gateway REST, download and unzip the latest [DigiCert CertCentral Gateway AnyCA Gateway REST plugin](https://github.com/Keyfactor/digicert-certcentral-caplugin/releases/latest) from GitHub.
59+
2. On the server hosting the AnyCA Gateway REST, download and unzip the latest [DigiCert CertCentral AnyCA Gateway REST plugin](https://github.com/Keyfactor/digicert-certcentral-caplugin/releases/latest) from GitHub.
6060

6161
3. Copy the unzipped directory (usually called `net6.0` or `net8.0`) to the Extensions directory:
6262

@@ -67,11 +67,11 @@ An API Key within your Digicert account that has the necessary permissions to en
6767
Program Files\Keyfactor\AnyCA Gateway\AnyGatewayREST\net8.0\Extensions
6868
```
6969

70-
> The directory containing the DigiCert CertCentral Gateway AnyCA Gateway REST plugin DLLs (`net6.0` or `net8.0`) can be named anything, as long as it is unique within the `Extensions` directory.
70+
> The directory containing the DigiCert CertCentral AnyCA Gateway REST plugin DLLs (`net6.0` or `net8.0`) can be named anything, as long as it is unique within the `Extensions` directory.
7171

7272
4. Restart the AnyCA Gateway REST service.
7373

74-
5. Navigate to the AnyCA Gateway REST portal and verify that the Gateway recognizes the DigiCert CertCentral Gateway plugin by hovering over the ⓘ symbol to the right of the Gateway on the top left of the portal.
74+
5. Navigate to the AnyCA Gateway REST portal and verify that the Gateway recognizes the DigiCert CertCentral plugin by hovering over the ⓘ symbol to the right of the Gateway on the top left of the portal.
7575

7676
## Configuration
7777

digicert-certcentral-caplugin/CertCentralCAPlugin.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,12 +1178,12 @@ private async Task<EnrollmentResult> ExtractEnrollmentResult(CertCentralClient c
11781178
else // We should really only get here if there is a misconfiguration (e.g. set up for approval in DigiCert)
11791179
{
11801180
_logger.LogWarning($"Order {orderResponse.OrderId} did not return a CertificateId. Manual intervention may be required");
1181-
if (orderResponse.Requests.Any(x => x.Status == CertCentralConstants.Status.PENDING))
1181+
if (orderResponse.Requests.Any(x => x.Status == CertCentralConstants.Status.PENDING || x.Status == CertCentralConstants.Status.NEEDS_APPROVAL))
11821182
{
11831183
_logger.LogTrace($"Attempting to approve order '{orderResponse.OrderId}'.");
11841184

11851185
// Attempt to update the request status.
1186-
int requestId = int.Parse(orderResponse.Requests.FirstOrDefault(x => x.Status == CertCentralConstants.Status.PENDING).Id);
1186+
int requestId = int.Parse(orderResponse.Requests.FirstOrDefault(x => x.Status == CertCentralConstants.Status.PENDING || x.Status == CertCentralConstants.Status.NEEDS_APPROVAL).Id);
11871187
UpdateRequestStatusRequest updateStatusRequest = new UpdateRequestStatusRequest(requestId, CertCentralConstants.Status.APPROVED);
11881188
UpdateRequestStatusResponse updateStatusResponse = client.UpdateRequestStatus(updateStatusRequest);
11891189

@@ -1200,7 +1200,7 @@ private async Task<EnrollmentResult> ExtractEnrollmentResult(CertCentralClient c
12001200
}
12011201
else
12021202
{
1203-
status = (int)EndEntityStatus.FAILED;
1203+
status = (int)EndEntityStatus.EXTERNALVALIDATION;
12041204
statusMessage = $"Approval of order '{orderResponse.OrderId}' failed. Check the gateway logs for more details.";
12051205
}
12061206
}

0 commit comments

Comments
 (0)