From 113c137a53877685207da6cd46803dbd0f8c90ad Mon Sep 17 00:00:00 2001 From: Wouter Tinus Date: Mon, 8 Jun 2020 21:15:02 +0200 Subject: [PATCH] Accept HttpStatusCode.OK in response to newOrder request That's the way Digicert does it, and not forbidden by the RFC --- src/ACMESharp/Protocol/AcmeProtocolClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ACMESharp/Protocol/AcmeProtocolClient.cs b/src/ACMESharp/Protocol/AcmeProtocolClient.cs index 0f05aa0..c101bce 100644 --- a/src/ACMESharp/Protocol/AcmeProtocolClient.cs +++ b/src/ACMESharp/Protocol/AcmeProtocolClient.cs @@ -376,7 +376,7 @@ public async Task CreateOrderAsync(IEnumerable dnsIdentifi new Uri(_http.BaseAddress, Directory.NewOrder), method: HttpMethod.Post, message: message, - expectedStatuses: new[] { HttpStatusCode.Created }, + expectedStatuses: new[] { HttpStatusCode.Created, HttpStatusCode.OK }, cancel: cancel); var order = await DecodeOrderResponseAsync(resp);