lib/acme/crypto.rb in acme-client-0.1.2 vs lib/acme/crypto.rb in acme-client-0.1.3

- old
+ new

@@ -28,10 +28,14 @@ def generate_protection_header(header) encode64(JSON.dump(header)) end def jwk - JSON::JWK.new(public_key).to_hash + JSON::JWK.new(public_key) + end + + def thumbprint + jwk.thumbprint end def public_key private_key.public_key end