From e9630ea263dd9e1bfbd6e996aeb72b3cc991ae3b Mon Sep 17 00:00:00 2001 From: William Date: Wed, 8 Apr 2020 22:24:18 -0700 Subject: [PATCH] Add RSA Support to KeyID --- tlsutil/generate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tlsutil/generate.go b/tlsutil/generate.go index 7aed988cbd..f315024e94 100644 --- a/tlsutil/generate.go +++ b/tlsutil/generate.go @@ -4,6 +4,7 @@ import ( "bytes" "crypto" "crypto/ecdsa" + "crypto/rsa" "crypto/rand" "crypto/sha256" "crypto/x509" @@ -130,6 +131,7 @@ func GenerateCert(signer crypto.Signer, ca string, sn *big.Int, name string, day func keyID(raw interface{}) ([]byte, error) { switch raw.(type) { case *ecdsa.PublicKey: + case *rsa.PublicKey: default: return nil, fmt.Errorf("invalid key type: %T", raw) }