Browse Source

feat: add must staple flag for certificate obtaining request #292

Jacky 1 year ago
parent
commit
1c4fb7afcc
1 changed files with 3 additions and 2 deletions
  1. 3 2
      internal/cert/cert.go

+ 3 - 2
internal/cert/cert.go

@@ -166,8 +166,9 @@ func IssueCert(payload *ConfigPayload, logChan chan string, errChan chan error)
 	user.Registration = reg
 
 	request := certificate.ObtainRequest{
-		Domains: domain,
-		Bundle:  true,
+		Domains:    domain,
+		Bundle:     true,
+		MustStaple: true,
 	}
 
 	l.Println("[INFO] [Nginx UI] Obtaining certificate")