Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.1.2
- Fix Renewal bug referencing the wrong REST Resource V1

v1.1.1
- Fix Revoke Serial Number Mismatch KF 10.1 and 22.1.0 GW combination
- Only Syncing and GetSingleRecord on End Entity Cert to prevent errors.
Expand Down
13 changes: 9 additions & 4 deletions CscGlobalCaProxy/Client/CscGlobalClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,30 @@ public async Task<RegistrationResponse> SubmitRegistrationAsync(
public async Task<RenewalResponse> SubmitRenewalAsync(
RenewalRequest renewalRequest)
{
using (var resp = await RestClient.PostAsync("/tls/renewal", new StringContent(
using (var resp = await RestClient.PostAsync("/dbs/api/v2/tls/renewal", new StringContent(
JsonConvert.SerializeObject(renewalRequest), Encoding.ASCII, "application/json")))
{
Logger.Trace(JsonConvert.SerializeObject(renewalRequest));

var settings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
if (resp.StatusCode == HttpStatusCode.BadRequest) //Csc Sends Errors back in 400 Json Response
{
var rawErrorResponse = await resp.Content.ReadAsStringAsync();
Logger.Trace("Logging Error Response Raw");
Logger.Trace(rawErrorResponse);
var errorResponse =
JsonConvert.DeserializeObject<RegistrationError>(await resp.Content.ReadAsStringAsync(),
JsonConvert.DeserializeObject<RegistrationError>(rawErrorResponse,
settings);
var response = new RenewalResponse();
response.RegistrationError = errorResponse;
response.Result = null;
return response;
}

var rawRenewResponse = await resp.Content.ReadAsStringAsync();
Logger.Trace("Logging Success Response Raw");
Logger.Trace(rawRenewResponse);
var renewalResponse =
JsonConvert.DeserializeObject<RenewalResponse>(await resp.Content.ReadAsStringAsync());
JsonConvert.DeserializeObject<RenewalResponse>(rawRenewResponse);
return renewalResponse;
}
}
Expand Down
4 changes: 2 additions & 2 deletions CscGlobalCaProxy/RequestManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public EnrollmentResult GetRenewResponse(RenewalResponse renewResponse)
return new EnrollmentResult
{
Status = 30, //failure
CARequestID = renewResponse.Result.Status.Uuid,
CARequestID = renewResponse?.Result?.Status?.Uuid,
StatusMessage = renewResponse.RegistrationError.Description
};

return new EnrollmentResult
{
Status = 13, //success

CARequestID = renewResponse?.Result?.Status?.Uuid,
StatusMessage = $"Renewal Successfully Completed For {renewResponse.Result.CommonName}"
};
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This gateway extension was compiled against version of the AnyCA Gateway DCOM F
***
# Getting Started
## Standard Gateway Installation
To begin, you must have the CA Gateway Service 21.3.2 installed and operational before attempting to configure the CSC Global plugin. This integration was tested with Keyfactor 8.7.0.0.
To begin, you must have the CA Gateway Service 22.1.0 installed and operational before attempting to configure the CSC Global plugin. This integration was tested with Keyfactor 10.4.0.0.
To install the gateway follow these instructions.

1) Gateway Server - run the installation .msi - Get from Keyfactor
Expand Down
2 changes: 1 addition & 1 deletion readme_source.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
***
# Getting Started
## Standard Gateway Installation
To begin, you must have the CA Gateway Service 21.3.2 installed and operational before attempting to configure the CSC Global plugin. This integration was tested with Keyfactor 8.7.0.0.
To begin, you must have the CA Gateway Service 22.1.0 installed and operational before attempting to configure the CSC Global plugin. This integration was tested with Keyfactor 10.4.0.0.
To install the gateway follow these instructions.

1) Gateway Server - run the installation .msi - Get from Keyfactor
Expand Down
Loading