http-signatures-php icon indicating copy to clipboard operation
http-signatures-php copied to clipboard

Support RSA signing

Open aaronpk opened this issue 7 years ago • 3 comments

It looks like this library currently only supports HMAC signing. It would be great if it also supported RSA signing with a private key!

aaronpk avatar Jul 02 '18 12:07 aaronpk

PR #35 implements RSA signing

  • Supports SHA256 (you really shouldn't be implementing anything new on SHA1)
  • Tested against servers enforcing Signature & Authorization headers
  • Does not contain unit tests, but with some pointers I am sure this can be completed.

liamdennehy avatar Aug 17 '18 22:08 liamdennehy

Update: #35 Has full suite of unit tests, and in combination with #43 now passes the Reference Tests.

liamdennehy avatar Nov 11 '18 18:11 liamdennehy

I have integrated RSA in my own project along with a number of others (Elliptic curves, DSA) that can pass the RFC reference tests, and published this in packagist. Documentation for the entire library is published at Read the Docs: http-signatures-php - incomplete but being expanded regularly.

liamdennehy avatar Aug 18 '19 16:08 liamdennehy