aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-04 15:43:46 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-04 15:43:46 +0000
commit18587332033b48677231cc74c0e921be6588641f (patch)
treeabfea81e53e58bf43a0ac06bb9a26326d14f17ae
parentc1b3507df7114fba929c3f903e55c9787eb2d623 (diff)
downloadcommunique-18587332033b48677231cc74c0e921be6588641f.tar.gz
back to PKIX
-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
}