소스 검색

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")