コード例 #1
0
        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);
        }
コード例 #2
0
 public HttpChallengeMiddleware(IHttpChallengeStore httpChallengeStore)
 {
     this.httpChallengeStore = httpChallengeStore;
 }