Remove check for using CSR values with non-CA certificate.

The endpoint enforces whether the certificate is a CA or not anyways, so
this ends up not actually providing benefit and causing a bug.

Fixes #1250
This commit is contained in:
Jeff Mitchell
2016-03-23 10:05:38 -04:00
parent c22fc374b6
commit 2bc8cf4583

View File

@@ -512,10 +512,6 @@ func signCert(b *backend,
return nil, err
}
if useCSRValues && !isCA {
return nil, certutil.UserError{Err: "cannot use CSR values with a non-CA certificate"}
}
creationBundle.IsCA = isCA
creationBundle.UseCSRValues = useCSRValues