Skip to content

Commit

Permalink
fix: pkigen was using CA name for admin name
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 7, 2023
1 parent b791001 commit abd61dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/ctlcmd/pki/pki.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ func (p *pki) Init(opts InitOptions) error {
}
// Issue an admin certificate using the CA.
adminPrivKey, adminCert, err := crypto.IssueCertificate(crypto.IssueConfig{
CommonName: opts.CAName,
ValidFor: opts.CAExpiry,
CommonName: opts.AdminName,
ValidFor: opts.AdminExpiry,
KeyType: crypto.TLSKeyType(opts.KeyType),
KeySize: opts.KeySize,
CACert: caCert,
Expand Down

0 comments on commit abd61dd

Please sign in to comment.