webhookd/tooling/httpsig
Nicolas Carlier 0d802d03eb feat(): structured logging 2023-10-03 18:02:57 +00:00
..
Makefile feat(): finalize HTTP signature support 2020-02-26 19:30:41 +00:00
README.md feat(signature): refactore the trust store system 2020-03-15 20:58:06 +00:00
go.mod chore(): bump dependencies 2023-03-07 19:33:23 +00:00
go.sum chore(): bump dependencies 2023-03-07 19:33:23 +00:00
main.go feat(): structured logging 2023-10-03 18:02:57 +00:00

README.md

httpsig

A simple HTTP client with HTTP signature support.

Usage

  • Generate an RSA key: make key

  • Add key_id header to public key:

-----BEGIN PUBLIC KEY-----
key_id: my-key

MIIEowIBAAKCAQEAwdCB5DZD0cFeJYUu1W3IlNN9y+NZC/Jqktdkn8/WHlXec07n
...
-----END PUBLIC KEY-----
  • Start Webhookd with HTTP signature support:
$ webhookd --trust-store-file ./key-pub.pem
  • Make HTTP signed request:
$ ./release/httpsig \
  --key-id my-key \
  --key-file ./key.pem \
  http://localhost:8080/echo`