Commit e8ac7398 authored by Eugen Rochko's avatar Eugen Rochko

Fix wrong casing in HTTP sig

parent f0501e14
Pipeline #81 passed with stages
in 1 second
......@@ -121,7 +121,7 @@ The `keyId` refers to public key of our actor, the `header` lists the headers th
The to-be-signed string would look something like this:
(request-target): POST /inbox
(request-target): post /inbox
date: Sun, 06 Nov 1994 08:49:37 GMT
......@@ -134,7 +134,7 @@ require 'openssl'
document ='create-hello-world.json')
date =
keypair ='private.pem'))
signed_string = "(request-target): POST /inbox\nhost:\ndate: #{date}"
signed_string = "(request-target): post /inbox\nhost:\ndate: #{date}"
signature = Base64.strict_encode64(keypair.sign(, signed_string))
header = 'keyId="",headers="(request-target) host date",signature="' + signature + '"'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment