]> git.ipfire.org Git - thirdparty/haproxy.git/commit
TESTS: jws: implement a test for JWS signing
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 6 Mar 2025 16:15:23 +0000 (17:15 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 11 Mar 2025 21:29:40 +0000 (22:29 +0100)
commitd014d7ee724555eb7744f2b93048529c292f9374
tree2e1afae56ae20272cf0b5e1faff8c7624bb9527b
parent3abb428fc8a001649758585990093ee6da56fc81
TESTS: jws: implement a test for JWS signing

This test returns a JWS payload signed a specified private key in the
PEM format, and uses the "jose" command tool to check if the signature
is correct against the jwk public key.

The test could be improved later by using the code from jwt.c allowing
to check a signature.
src/jws.c
tests/unit/jwk/jws.sh [new file with mode: 0755]