diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-04 14:46:02 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-04 14:46:02 +0000 |
commit | e58e7f9e01bff7ef274dd77ed3bdb9e14b34709b (patch) | |
tree | 1c1eb2ae580f34fc16c27779d3c38bf5aa2d0813 /registry | |
parent | 5c92e0dd32f6e5d528a0daf5018f8493ceac75e7 (diff) | |
download | communique-e58e7f9e01bff7ef274dd77ed3bdb9e14b34709b.tar.gz |
use ParsePKIXPublicKey instead
Diffstat (limited to 'registry')
-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 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 } |