webhookd/tooling/httpsig
Nicolas Carlier 296ab6aaa3 feat(): improve HTTP signature support
- fix nil pointer bugs
- upgrade dependency
- improve error handling
2020-08-20 09:48:46 +00:00
..
go.mod feat(): improve HTTP signature support 2020-08-20 09:48:46 +00:00
go.sum feat(): improve HTTP signature support 2020-08-20 09:48:46 +00:00
main.go feat(): improve HTTP signature support 2020-08-20 09:48:46 +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

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`