Skip to content

Commit edd2153

Browse files
authored
Merge a1a39f9 into 6b53e88
2 parents 6b53e88 + a1a39f9 commit edd2153

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This integration allows for the Synchronization, Enrollment, and Revocation of c
44

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

7+
78
## About the Keyfactor AnyGateway CA Connector
89

910
This repository contains an AnyGateway CA Connector, which is a plugin to the Keyfactor AnyGateway. AnyGateway CA Connectors allow Keyfactor Command to be used for inventory, issuance, and revocation of certificates from a third-party certificate authority.
@@ -12,6 +13,18 @@ This repository contains an AnyGateway CA Connector, which is a plugin to the Ke
1213

1314

1415

16+
---
17+
18+
19+
20+
21+
22+
23+
24+
25+
---
26+
27+
1528
# Introduction
1629
This AnyGateway plug-in enables issuance, revocation, and synchronization of certificates from Entrust's Managed SSL/TLS offering.
1730

src/EntrustRestCAProxy/EntrustCAConnector.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,15 @@ public override int Revoke(string caRequestID, string hexSerialNumber, uint revo
534534
Dictionary<string, object> connectionInfo = ConfigProvider.CAConnectionData;
535535
EntrustClient client = CreateEntrustClient(connectionInfo);
536536
string reason = Conversions.RevokeReasonToString(revocationReason);
537-
string comment = "Revoked by Entrust Gateway";
537+
string comment = $"Revoked by Entrust Gateway for the following reason: {reason}";
538538
CAConnectorCertificate cert = GetSingleRecord(caRequestID);
539+
540+
if (!string.Equals(reason, "keyCompromise"))
541+
{
542+
// Entrust no longer accepts any reason codes other than keyCompromise and unspecified.
543+
reason = "unspecified";
544+
}
545+
539546
if (!(cert.Status == (int)RequestDisposition.ISSUED))
540547
{
541548
string errorMessage = String.Format("Request {0} was not found in Entrust database or is not in a valid state to perform a revocation", caRequestID);

0 commit comments

Comments
 (0)