aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-04 14:46:02 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-04 14:46:02 +0000
commite58e7f9e01bff7ef274dd77ed3bdb9e14b34709b (patch)
tree1c1eb2ae580f34fc16c27779d3c38bf5aa2d0813
parent5c92e0dd32f6e5d528a0daf5018f8493ceac75e7 (diff)
downloadcommunique-e58e7f9e01bff7ef274dd77ed3bdb9e14b34709b.tar.gz
use ParsePKIXPublicKey instead
-rw-r--r--registry/registry.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/registry.go b/registry/registry.go
index 25d4360..3d8c3ee 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -209,7 +209,7 @@ func (r *Registry) Inbox(name string, req *http.Request) error {
logger.With("keyId", keyId).With("pem", pemStr).Debugf("extracted pem")
pemObj, _ := pem.Decode([]byte(pemStr))
- decodedKey, err := x509.ParsePKCS1PublicKey(pemObj.Bytes)
+ decodedKey, err := x509.ParsePKIXPublicKey(pemObj.Bytes)
if err != nil {
return err
}