aboutsummaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
Diffstat (limited to 'registry')
-rw-r--r--registry/registry.go2
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
}