Skip to content

Commit

Permalink
Fix FVT intermediateca test
Browse files Browse the repository at this point in the history
Fix issue introduced in #268.

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
  • Loading branch information
denyeart committed Mar 22, 2022
1 parent 655a0f9 commit 077518e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (ca *CA) getCACert() (cert []byte, err error) {
clientCfg.Enrollment = ca.Config.Intermediate.Enrollment
clientCfg.CAName = ca.Config.Intermediate.ParentServer.CAName
clientCfg.CSP = ca.Config.CSP
clientCfg.CSR = ca.Config.CSR
if ca.Config.CSR.CN != "" {
return nil, errors.Errorf("CN '%s' cannot be specified for an intermediate CA. Remove CN from CSR section for enrollment of intermediate CA to be successful", ca.Config.CSR.CN)
}
Expand Down

0 comments on commit 077518e

Please sign in to comment.