Skip to content

Commit

Permalink
Update cmd/ceremony/cert.go
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Gable <[email protected]>
  • Loading branch information
pgporada and aarongable authored Aug 17, 2023
1 parent 9d38688 commit 4e7a822
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions cmd/ceremony/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,8 @@ func generateSKID(pk []byte) ([]byte, error) {
// makeTemplate generates the certificate template for use in x509.CreateCertificate
func makeTemplate(randReader io.Reader, profile *certProfile, pubKey []byte, tbcs *x509.Certificate, ct certType) (*x509.Certificate, error) {
// Handle "unrestricted" vs "restricted" subordinate CA profile specifics.
if ct == crossCert {
if tbcs == nil {
return nil, fmt.Errorf("toBeCrossSigned cert field was nil, but was required to gather EKUs for the lint cert")
}
} else {
// Throw this parameter away for every other ceremony type.
if tbcs != nil {
tbcs = nil
}
if ct == crossCert && tbcs == nil {
return nil, fmt.Errorf("toBeCrossSigned cert field was nil, but was required to gather EKUs for the lint cert")
}

var ocspServer []string
Expand Down

0 comments on commit 4e7a822

Please sign in to comment.