mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Use only name constraints in GetTLSCertificate
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user