public LetsEncryptClient(IDbConfiguration dbConfiguration, ILogger <LetsEncryptClient> logger, IHttpChallengeStore httpChallengeStore, IHostEnvironment hostEnvironment) { this.dbConfiguration = dbConfiguration; this.logger = logger; this.httpChallengeStore = httpChallengeStore; AcmeContext = new AcmeContext(hostEnvironment.IsDevelopment() ? WellKnownServers.LetsEncryptStagingV2 : WellKnownServers.LetsEncryptV2); }
public HttpChallengeMiddleware(IHttpChallengeStore httpChallengeStore) { this.httpChallengeStore = httpChallengeStore; }