summaryrefslogtreecommitdiff
path: root/server.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2023-07-30 01:27:51 +0200
committerpdp8 <pdp8@pdp8.info>2023-07-30 01:27:51 +0200
commit25bdc789215c728e6fac04404adcf1f8e4bcdd78 (patch)
treefabf21feea41ef2cedcca5f69480ee39c652b114 /server.rb
parentc50f749a2685a3e7608cec8730f5fe79de4676ac (diff)
html links for outbox notes
Diffstat (limited to 'server.rb')
-rw-r--r--server.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.rb b/server.rb
index 5dfc53e..fd14356 100644
--- a/server.rb
+++ b/server.rb
@@ -173,6 +173,7 @@ helpers do
signature = Base64.strict_encode64(keypair.sign(OpenSSL::Digest.new('SHA256'), string))
signed_header = "keyId=\"#{ACTOR}#main-key\",algorithm=\"rsa-sha256\",headers=\"(request-target) host date digest content-type\",signature=\"#{signature}\""
+ # Net::HTTP fails with OpenSSL error
curl(
"-X POST -H 'Host: #{uri.host}' -H 'Date: #{httpdate}' -H 'Digest: #{digest}' -H 'Signature: #{signed_header}' --data-raw '#{body}'", inbox
)