diff options
author | pdp8 <pdp8@pdp8.info> | 2023-07-30 01:27:51 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-07-30 01:27:51 +0200 |
commit | 25bdc789215c728e6fac04404adcf1f8e4bcdd78 (patch) | |
tree | fabf21feea41ef2cedcca5f69480ee39c652b114 /server.rb | |
parent | c50f749a2685a3e7608cec8730f5fe79de4676ac (diff) |
html links for outbox notes
Diffstat (limited to 'server.rb')
-rw-r--r-- | server.rb | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 ) |