diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-05 12:59:15 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-05 12:59:15 +0000 |
commit | eeb69befb8cee9003874674812c529e717ca10ec (patch) | |
tree | 43a2d955bb748755c2682765dac59b01b55a17be /registry | |
parent | 687a12e8a7a5c2fb5a3a4b6a6efa3500c5bb913c (diff) | |
download | communique-eeb69befb8cee9003874674812c529e717ca10ec.tar.gz |
try only sha256
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 93f8926..d4ff84b 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -254,7 +254,7 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl *url.URL, follow vocab.Act r.log.With("type", "delivery").With("payload", payload).Debugf("signing") r.mu.Lock() defer r.mu.Unlock() - prefs := []httpsig.Algorithm{httpsig.RSA_SHA512, httpsig.RSA_SHA256} + prefs := []httpsig.Algorithm{httpsig.RSA_SHA256} digestAlgorithm := httpsig.DigestSha256 // The "Date" and "Digest" headers must already be set on r, as well as r.URL. headersToSign := []string{httpsig.RequestTarget, "host", "date", "digest", "content-type"} |