Skip to content

Commit 1300102

Browse files
authored
merge Release 1.1.2 to main
2 parents 6d5721f + 7ca9d6d commit 1300102

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v1.1.2
2+
- Fix Renewal bug referencing the wrong REST Resource V1
3+
14
v1.1.1
25
- Fix Revoke Serial Number Mismatch KF 10.1 and 22.1.0 GW combination
36
- Only Syncing and GetSingleRecord on End Entity Cert to prevent errors.

CscGlobalCaProxy/Client/CscGlobalClient.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,30 @@ public async Task<RegistrationResponse> SubmitRegistrationAsync(
5959
public async Task<RenewalResponse> SubmitRenewalAsync(
6060
RenewalRequest renewalRequest)
6161
{
62-
using (var resp = await RestClient.PostAsync("/tls/renewal", new StringContent(
62+
using (var resp = await RestClient.PostAsync("/dbs/api/v2/tls/renewal", new StringContent(
6363
JsonConvert.SerializeObject(renewalRequest), Encoding.ASCII, "application/json")))
6464
{
6565
Logger.Trace(JsonConvert.SerializeObject(renewalRequest));
6666

6767
var settings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
6868
if (resp.StatusCode == HttpStatusCode.BadRequest) //Csc Sends Errors back in 400 Json Response
6969
{
70+
var rawErrorResponse = await resp.Content.ReadAsStringAsync();
71+
Logger.Trace("Logging Error Response Raw");
72+
Logger.Trace(rawErrorResponse);
7073
var errorResponse =
71-
JsonConvert.DeserializeObject<RegistrationError>(await resp.Content.ReadAsStringAsync(),
74+
JsonConvert.DeserializeObject<RegistrationError>(rawErrorResponse,
7275
settings);
7376
var response = new RenewalResponse();
7477
response.RegistrationError = errorResponse;
7578
response.Result = null;
7679
return response;
7780
}
78-
81+
var rawRenewResponse = await resp.Content.ReadAsStringAsync();
82+
Logger.Trace("Logging Success Response Raw");
83+
Logger.Trace(rawRenewResponse);
7984
var renewalResponse =
80-
JsonConvert.DeserializeObject<RenewalResponse>(await resp.Content.ReadAsStringAsync());
85+
JsonConvert.DeserializeObject<RenewalResponse>(rawRenewResponse);
8186
return renewalResponse;
8287
}
8388
}

CscGlobalCaProxy/RequestManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public EnrollmentResult GetRenewResponse(RenewalResponse renewResponse)
2424
return new EnrollmentResult
2525
{
2626
Status = 30, //failure
27-
CARequestID = renewResponse.Result.Status.Uuid,
27+
CARequestID = renewResponse?.Result?.Status?.Uuid,
2828
StatusMessage = renewResponse.RegistrationError.Description
2929
};
3030

3131
return new EnrollmentResult
3232
{
3333
Status = 13, //success
34-
34+
CARequestID = renewResponse?.Result?.Status?.Uuid,
3535
StatusMessage = $"Renewal Successfully Completed For {renewResponse.Result.CommonName}"
3636
};
3737
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This gateway extension was compiled against version of the AnyCA Gateway DCOM F
4343
***
4444
# Getting Started
4545
## Standard Gateway Installation
46-
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.
46+
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.
4747
To install the gateway follow these instructions.
4848

4949
1) Gateway Server - run the installation .msi - Get from Keyfactor

readme_source.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
***
22
# Getting Started
33
## Standard Gateway Installation
4-
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.
4+
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.
55
To install the gateway follow these instructions.
66

77
1) Gateway Server - run the installation .msi - Get from Keyfactor

0 commit comments

Comments
 (0)