Skip to content

Commit

Permalink
fix Keygen.GenerateKeyPair
Browse files Browse the repository at this point in the history
  • Loading branch information
nklaassen committed Oct 16, 2024
1 parent 482bf10 commit b370b39
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/auth/testauthority/testauthority.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ func (n *Keygen) GenerateKeyPair() (priv []byte, pub []byte, err error) {
if err != nil {
return nil, nil, trace.Wrap(err)
}
privPEM, err := privateKey.MarshalSSHPrivateKey()
if err != nil {
return nil, nil, trace.Wrap(err)
}
return privPEM, privateKey.MarshalSSHPublicKey(), nil
return privateKey.PrivateKeyPEM(), privateKey.MarshalSSHPublicKey(), nil
}

func (n *Keygen) GenerateHostCert(c services.HostCertParams) ([]byte, error) {
Expand Down

0 comments on commit b370b39

Please sign in to comment.