aboutsummaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-05 20:24:11 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-05 20:24:11 +0000
commita89739cd550836b38188d582425d38d7c4f6d738 (patch)
tree7c363945f2be5d4f992bc6076b045e1bb633cbfa /registry/registry.go
parent124e09b515b8aba86f292e7e7138177a85c1e308 (diff)
downloadcommunique-a89739cd550836b38188d582425d38d7c4f6d738.tar.gz
try forcing rsa-sha256 as algo
Diffstat (limited to '')
-rw-r--r--registry/registry.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/registry/registry.go b/registry/registry.go
index 4b58c1f..126838e 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -293,6 +293,10 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl, actorKeyUrl *url.URL, fol
err = signer.SignRequest(privKey, actorKeyUrl.String(), request, jsonData)
r.mu.Unlock()
+ // HACK
+ oldSig := request.Header.Get("signature")
+ request.Header.Set("signature", strings.ReplaceAll("hs2019", "rsa-sha256", oldSig))
+
r.log.With(
"type",
"delivery",