summaryrefslogtreecommitdiffstats
path: root/src/main.lib/RenewalExecutor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.lib/RenewalExecutor.cs')
-rw-r--r--src/main.lib/RenewalExecutor.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main.lib/RenewalExecutor.cs b/src/main.lib/RenewalExecutor.cs
index 9cbe871..70fa79a 100644
--- a/src/main.lib/RenewalExecutor.cs
+++ b/src/main.lib/RenewalExecutor.cs
@@ -40,7 +40,7 @@ namespace PKISharp.WACS
_container = container;
}
- public async Task<RenewResult?> Renew(Renewal renewal, RunLevel runLevel)
+ public async Task<RenewResult?> Execute(Renewal renewal, RunLevel runLevel)
{
using var ts = _scopeBuilder.Target(_container, renewal, runLevel);
using var es = _scopeBuilder.Execution(ts, renewal, runLevel);
@@ -408,6 +408,17 @@ namespace PKISharp.WACS
_log.Debug("Submitting challenge answer");
challenge = await client.AnswerChallenge(challenge);
+ try
+ {
+ _log.Verbose("Starting post-validation cleanup");
+ await validationPlugin.CleanUp();
+ _log.Verbose("Post-validation cleanup was succesful");
+ }
+ catch (Exception ex)
+ {
+ _log.Warning("An error occured during post-validation cleanup: {ex}", ex.Message);
+ }
+
if (challenge.Status != AcmeClient.AuthorizationValid)
{
if (challenge.Error != null)
@@ -422,6 +433,8 @@ namespace PKISharp.WACS
_log.Information("Authorization result: {Status}", challenge.Status);
return valid;
}
+
+
}
}
catch (Exception ex)