Method: Acme::Client::JWK::RSA#to_h
- Defined in:
- lib/acme/client/jwk/rsa.rb
#to_h ⇒ Object
Get this JWK as a Hash for JSON serialization.
Returns a Hash.
21 22 23 24 25 26 27 |
# File 'lib/acme/client/jwk/rsa.rb', line 21 def to_h { e: Acme::Client::Util.urlsafe_base64(public_key.e.to_s(2)), kty: 'RSA', n: Acme::Client::Util.urlsafe_base64(public_key.n.to_s(2)) } end |