diff --git a/src/FluffySpoon.AspNet.LetsEncrypt.Redis/DistributedCachePersistenceStrategy.cs b/src/FluffySpoon.AspNet.LetsEncrypt.Redis/DistributedCachePersistenceStrategy.cs index c985ebb..8cbec47 100644 --- a/src/FluffySpoon.AspNet.LetsEncrypt.Redis/DistributedCachePersistenceStrategy.cs +++ b/src/FluffySpoon.AspNet.LetsEncrypt.Redis/DistributedCachePersistenceStrategy.cs @@ -16,7 +16,7 @@ public DistributedCachePersistenceStrategy( TimeSpan expiry) : base( async (key, bytes) => { - logger.LogInformation("Persisting " + key + " to distributed cache."); + logger.LogInformation("Persisting {0} to distributed cache.", key); await cache.SetAsync(KeyPrefix + key, bytes, new DistributedCacheEntryOptions() { AbsoluteExpirationRelativeToNow = expiry diff --git a/src/FluffySpoon.AspNet.LetsEncrypt.Sample/FluffySpoonAspNetLetsEncryptCertificate_Account b/src/FluffySpoon.AspNet.LetsEncrypt.Sample/FluffySpoonAspNetLetsEncryptCertificate_Account new file mode 100644 index 0000000..958d188 --- /dev/null +++ b/src/FluffySpoon.AspNet.LetsEncrypt.Sample/FluffySpoonAspNetLetsEncryptCertificate_Account @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMXir4k04WxO00Po/4R40uJ3vVCkgdtpUk3GPHw/ds4joAoGCCqGSM49 +AwEHoUQDQgAEB94BK3LM5HrX1anh2IM3ZqloO0nG9a6L0x3fiaRyUoF+GaaHJ2Wt +t4hqwhgTVIOpSkMR78zQv0lCnvzKVbp78A== +-----END EC PRIVATE KEY----- diff --git a/src/FluffySpoon.AspNet.LetsEncrypt.Sample/FluffySpoonAspNetLetsEncryptChallenge_Account b/src/FluffySpoon.AspNet.LetsEncrypt.Sample/FluffySpoonAspNetLetsEncryptChallenge_Account new file mode 100644 index 0000000..958d188 --- /dev/null +++ b/src/FluffySpoon.AspNet.LetsEncrypt.Sample/FluffySpoonAspNetLetsEncryptChallenge_Account @@ -0,0 +1,5 @@ +-----BEGIN EC PRIVATE KEY----- +MHcCAQEEIMXir4k04WxO00Po/4R40uJ3vVCkgdtpUk3GPHw/ds4joAoGCCqGSM49 +AwEHoUQDQgAEB94BK3LM5HrX1anh2IM3ZqloO0nG9a6L0x3fiaRyUoF+GaaHJ2Wt +t4hqwhgTVIOpSkMR78zQv0lCnvzKVbp78A== +-----END EC PRIVATE KEY----- diff --git a/src/FluffySpoon.AspNet.LetsEncrypt/Persistence/PersistenceService.cs b/src/FluffySpoon.AspNet.LetsEncrypt/Persistence/PersistenceService.cs index 7b09b9d..f4cccef 100644 --- a/src/FluffySpoon.AspNet.LetsEncrypt/Persistence/PersistenceService.cs +++ b/src/FluffySpoon.AspNet.LetsEncrypt/Persistence/PersistenceService.cs @@ -57,6 +57,8 @@ public async Task PersistChallengesAsync(ChallengeDto[] challenges) } private async Task PersistAsync(PersistenceType persistenceType, byte[] bytes, IEnumerable strategies) { + _logger.LogTrace("Persisting {0} through strategies.", persistenceType); + var tasks = strategies.Select(x => x.PersistAsync(persistenceType, bytes ?? new byte[0])); await Task.WhenAll(tasks); }