public static void AddFluffySpoonLetsEncryptCertificatePersistence(
     this IServiceCollection services,
     ICertificatePersistenceStrategy certificatePersistenceStrategy)
 {
     AddFluffySpoonLetsEncryptCertificatePersistence(services,
                                                     (p) => certificatePersistenceStrategy);
 }
 public void Initialize()
 {
     byte[] store = null;
     Strategy = new CustomCertificatePersistenceStrategy(
         (type, data) =>
     {
         store = data;
         return(Task.CompletedTask);
     },
         (type) => Task.FromResult(store));
 }
Exemplo n.º 3
0
 public void Initialize()
 {
     _testFolder = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
     Strategy    = new FileCertificatePersistenceStrategy(_testFolder);
 }