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
Expand Up @@ -7,3 +7,6 @@ Bugfix - Fix for custom fields in enrollment

1.0.2
Handle change to Sectigo API Revocation call

1.0.3
Fix for JSON serialization of revocation
6 changes: 3 additions & 3 deletions sectigo-scm-caplugin/Client/SectigoClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ public async Task<List<Certificate>> PageCertificates(int position = 0, int size

public async Task<bool> RevokeSslCertificateById(int sslId, int revcode, string revreason)
{
JObject o = JObject.FromObject(new
var data = new
{
reasonCode = revcode,
reason = revreason
});
var response = await RestClient.PostAsJsonAsync($"api/ssl/v1/revoke/{sslId}", o);
};
var response = await RestClient.PostAsJsonAsync($"api/ssl/v1/revoke/{sslId}", data);
if (response.IsSuccessStatusCode)
{
return true;
Expand Down
Loading