From fba1cfee6677c4f61d4c6977f7e82228e6791118 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Wed, 4 Jan 2023 10:10:06 -0500 Subject: back to PKIX --- registry/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'registry') diff --git a/registry/registry.go b/registry/registry.go index 2833d57..501edb5 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -213,7 +213,7 @@ func (r *Registry) Inbox(name string, req *http.Request) error { if pemObj == nil { return fmt.Errorf("no PEM block found") } - decodedKey, err := x509.ParsePKCS1PublicKey(pemObj.Bytes) + decodedKey, err := x509.ParsePKIXPublicKey(pemObj.Bytes) if err != nil { return err } -- cgit v1.2.3