Skip to content

Commit 3d8c0f7

Browse files
authored
Merge pull request #14 from Keyfactor/hotfix-1.0
hotfix for json serialization
2 parents 3fe1b2e + eee33c4 commit 3d8c0f7

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ Bugfix - Fix for custom fields in enrollment
77

88
1.0.2
99
Handle change to Sectigo API Revocation call
10+
11+
1.0.3
12+
Fix for JSON serialization of revocation

sectigo-scm-caplugin/Client/SectigoClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ public async Task<List<Certificate>> PageCertificates(int position = 0, int size
142142

143143
public async Task<bool> RevokeSslCertificateById(int sslId, int revcode, string revreason)
144144
{
145-
JObject o = JObject.FromObject(new
145+
var data = new
146146
{
147147
reasonCode = revcode,
148148
reason = revreason
149-
});
150-
var response = await RestClient.PostAsJsonAsync($"api/ssl/v1/revoke/{sslId}", o);
149+
};
150+
var response = await RestClient.PostAsJsonAsync($"api/ssl/v1/revoke/{sslId}", data);
151151
if (response.IsSuccessStatusCode)
152152
{
153153
return true;

0 commit comments

Comments
 (0)