From e58e7f9e01bff7ef274dd77ed3bdb9e14b34709b Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Wed, 4 Jan 2023 09:46:02 -0500 Subject: use ParsePKIXPublicKey instead --- registry/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'registry/registry.go') diff --git a/registry/registry.go b/registry/registry.go index 25d4360..3d8c3ee 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -209,7 +209,7 @@ func (r *Registry) Inbox(name string, req *http.Request) error { logger.With("keyId", keyId).With("pem", pemStr).Debugf("extracted pem") pemObj, _ := pem.Decode([]byte(pemStr)) - decodedKey, err := x509.ParsePKCS1PublicKey(pemObj.Bytes) + decodedKey, err := x509.ParsePKIXPublicKey(pemObj.Bytes) if err != nil { return err } -- cgit v1.2.3