Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Oct 16, 2024
1 parent cdacf83 commit 0d2c93d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/certutil/certutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func NewRSARootCA(opts ...Option) (crypto.PrivateKey, *x509.Certificate, Pair, e
func GenerateChildCert(name string, ips []net.IP, caPrivKey crypto.PrivateKey, caCert *x509.Certificate, opts ...Option) (*tls.Certificate, Pair, error) {
priv, err := ecdsa.GenerateKey(elliptic.P384(), rand.Reader)
if err != nil {
return nil, Pair{}, fmt.Errorf("could not create RSA private key: %w", err)
return nil, Pair{}, fmt.Errorf("could not create ECDSA private key: %w", err)
}

cert, childPair, err :=
Expand Down Expand Up @@ -144,7 +144,7 @@ func GenerateRSAChildCert(name string, ips []net.IP, caPrivKey crypto.PrivateKey
opts...)
if err != nil {
return nil, Pair{}, fmt.Errorf(
"could not generate child TLS certificate CA: %w", err)
"could not generate child TLS certificate: %w", err)
}

return cert, childPair, nil
Expand Down

0 comments on commit 0d2c93d

Please sign in to comment.