From 406cd2280c498c970c3d94baa5106d63a123c000 Mon Sep 17 00:00:00 2001 From: David Galey Date: Fri, 25 Jul 2025 07:39:42 -0400 Subject: [PATCH] fix json serialization --- sectigo-scm-caplugin/Client/SectigoClient.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sectigo-scm-caplugin/Client/SectigoClient.cs b/sectigo-scm-caplugin/Client/SectigoClient.cs index da9463c..aeac1aa 100644 --- a/sectigo-scm-caplugin/Client/SectigoClient.cs +++ b/sectigo-scm-caplugin/Client/SectigoClient.cs @@ -142,12 +142,12 @@ public async Task> PageCertificates(int position = 0, int size public async Task 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;