Skip to content

Commit

Permalink
comment added
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Dec 2, 2024
1 parent 62dfc0e commit 6205004
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/walletextension/walletextension_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ func NewContainerFromConfig(config wecommon.Config, logger gethlog.Logger) *Cont
// check if TLS is enabled
if config.EnableTLS {
// Create autocert manager for automatic certificate management
// Generating a certificate consists of the following steps:
// generating a new private key
// domain ownership verification (HTTP-01 challenge since certManager.HTTPHandler(nil) is set)
// Certificate Signing Request (CRS) is generated
// CRS is sent to CA (Let's Encrypt) via ACME (automated certificate management environment) client
// CA verifies CRS and issues a certificate
// we store store certificate and private key (in memory and also in on a mounted volume attached to docker container - /data/certs/)

certManager := &autocert.Manager{
Prompt: autocert.AcceptTOS,
HostPolicy: autocert.HostWhitelist(config.TLSDomain),
Expand Down

0 comments on commit 6205004

Please sign in to comment.