From 25bdc789215c728e6fac04404adcf1f8e4bcdd78 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Sun, 30 Jul 2023 01:27:51 +0200 Subject: html links for outbox notes --- server.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'server.rb') 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 ) -- cgit v1.2.3