Skip to content

Commit 3ac0bb6

Browse files
authored
Merge branch 'release-1.1' into certupload
2 parents a05e813 + 3d8c0f7 commit 3ac0bb6

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Bugfix - Fix for custom fields in enrollment
88
1.0.2
99
Handle change to Sectigo API Revocation call
1010

11+
1.0.3
12+
Fix for JSON serialization of revocation
13+
1114
1.1.0
1215
Add support for using the cert upload feature to upload auth certs
13-
Switch to .NET 8
16+
Switch to .NET 8

sectigo-scm-caplugin/Client/SectigoClient.cs

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

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

0 commit comments

Comments
 (0)