forked from TrueCloudLab/certificates
Use only name constraints in GetTLSCertificate
This commit is contained in:
parent
0bedd22850
commit
c9e7af3722
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue