Просмотр исходного кода

Use only name constraints in GetTLSCertificate

Mariano Cano 4 лет назад
Родитель
Сommit
c9e7af3722
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      authority/tls.go

+ 2 - 2
authority/tls.go

@@ -640,8 +640,8 @@ func (a *Authority) GetTLSCertificate() (*tls.Certificate, error) {
 	certTpl.EmailAddresses = cr.EmailAddresses
 	certTpl.URIs = cr.URIs
 
-	// Fail if name constraints or policy does not allow the server names.
-	if err := a.isAllowedToSignX509Certificate(certTpl); err != nil {
+	// Fail if name constraints do not allow the server names.
+	if err := a.constraintsEngine.ValidateCertificate(certTpl); err != nil {
 		return fatal(err)
 	}