unixcharles / acme-client

A Ruby client for the letsencrypt's ACME protocol.
MIT License
495 stars 116 forks source link

Add padding to bring it up to the required byte size for EC keys #199

Closed dschwar closed 3 years ago

dschwar commented 3 years ago

In the RFC for JWA it says that R and S need to be padded to 32 bits (based on the key size).

I believe this is causing errors with lets encrypt of the form

Acme::Client::Error::Malformed : JWS verification error

copied from: https://github.com/nov/json-jwt/blob/d97f1be725dcb601fb8ca44b1d933614986c9c27/lib/json/jws.rb#L172

unixcharles commented 3 years ago

Sorry about the delay. Thanks for the PR