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 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
}