From 771c4719425160373f7a91dcf19c1babbb722b9c Mon Sep 17 00:00:00 2001 From: Nix Date: Tue, 20 May 2025 09:18:40 -0400 Subject: [PATCH] Add Get- and UpdateRenewalInfo to IAcmeContext --- src/Certify.ACME.Anvil/AcmeContext.cs | 2 +- src/Certify.ACME.Anvil/IAcmeContext.cs | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Certify.ACME.Anvil/AcmeContext.cs b/src/Certify.ACME.Anvil/AcmeContext.cs index 590fb47..170701e 100644 --- a/src/Certify.ACME.Anvil/AcmeContext.cs +++ b/src/Certify.ACME.Anvil/AcmeContext.cs @@ -387,7 +387,7 @@ public async Task GetRenewalInfo(string certificateId) } /// - /// Update ARI renewal info, if provider doesn't support ARI or update fails the exception is catch and no further action is takem + /// Update ARI renewal info, if provider doesn't support ARI or update fails the exception is catch and no further action is taken /// /// /// diff --git a/src/Certify.ACME.Anvil/IAcmeContext.cs b/src/Certify.ACME.Anvil/IAcmeContext.cs index 7cab8e7..3fd1fd3 100644 --- a/src/Certify.ACME.Anvil/IAcmeContext.cs +++ b/src/Certify.ACME.Anvil/IAcmeContext.cs @@ -137,5 +137,20 @@ public interface IAcmeContext /// The authorization location. /// The authorization context. IAuthorizationContext Authorization(Uri location); + + /// + /// Get renewal info for given certificate id + /// + /// The CertID (see OCSP Cert ID, this is a base64url encoded hash of cert public key and serial) + /// + Task GetRenewalInfo(string certificateId); + + /// + /// Update ARI renewal info, if provider doesn't support ARI or update fails the exception is catch and no further action is taken + /// + /// + /// + /// + Task UpdateRenewalInfo(string certificateId, bool replaced); } }