diff options
Diffstat (limited to 'registry/registry.go')
-rw-r--r-- | registry/registry.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/registry.go b/registry/registry.go index 58bf439..c81e11b 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -216,7 +216,7 @@ func (r *Registry) Inbox(name string, req *http.Request) error { return fmt.Errorf("no public key found in PEM block") } - decodedKey, err := x509.ParsePKCS1PublicKey(pemObj.Bytes) + decodedKey, err := x509.ParsePKIXPublicKey(pemObj.Bytes) if err != nil { return err } |