浏览代码

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

Jacky 1 年之前
父节点
当前提交
1c4fb7afcc
共有 1 个文件被更改,包括 3 次插入2 次删除
  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")