This is a plugin for Insomnia that allows the signing of HTTP Messages and is based on the HTTP Signature Plugin.
To find out more about the http signature spec, have a look here.
Install the insomnia-plugin-better-http-signatures plugin from Preferences -> Plugins.
Add the HTTP Signature template tag to a header. The spec suggests using the Authorization or Signature header, but you can use any header you want really.
-
RSA Private Keys are set without headers and newlines (
-----BEGIN RSA PRIVATE KEY-----and-----END RSA PRIVATE KEY-----). -
The Live Preview will not show you the final signature, but the headers used to generate the signature. This is because the date can be signed aswell, which is only known when sending the request.
-
The
Dateheader is added to the request if absent, but should be signed. -
Signatureis prepended to the header value if the header is not theSignatureheader.