Skip to content

Commit

Permalink
Merge pull request #2293 from openziti/pki-create-client-cert-chain
Browse files Browse the repository at this point in the history
also save the client cert chain
  • Loading branch information
qrkourier authored Aug 6, 2024
2 parents 662dca6 + 3081180 commit bde07fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ziti/cmd/pki/pki_create_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ func (o *PKICreateClientOptions) Run() error {
return errors.Wrap(err, "cannot sign")
}

// Concat the newly-created client cert with the intermediate cert to create a client.chain.pem file
if err := o.Flags.PKI.Chain(signer, req); err != nil {
return errors.Wrap(err, "unable to generate cert chain")
}

log.Infoln("Success")

return nil
Expand Down

0 comments on commit bde07fe

Please sign in to comment.