Skip to content

Commit abd61dd

Browse files
committed
fix: pkigen was using CA name for admin name
1 parent b791001 commit abd61dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/ctlcmd/pki/pki.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ func (p *pki) Init(opts InitOptions) error {
240240
}
241241
// Issue an admin certificate using the CA.
242242
adminPrivKey, adminCert, err := crypto.IssueCertificate(crypto.IssueConfig{
243-
CommonName: opts.CAName,
244-
ValidFor: opts.CAExpiry,
243+
CommonName: opts.AdminName,
244+
ValidFor: opts.AdminExpiry,
245245
KeyType: crypto.TLSKeyType(opts.KeyType),
246246
KeySize: opts.KeySize,
247247
CACert: caCert,

0 commit comments

Comments
 (0)