jwk-tool 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/jwk_tool +2 -2
- data/jwk-tool.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 948f10914152938492f08b0190e45f9b81e03cd2
|
4
|
+
data.tar.gz: 44a10ff54fb9fb4a3db46149de189e05f8cce714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e28dcad302984466632af656c92296afc47106b52b138e0946d6501fe13673d7a1d320221bc24764046cee7456d37b54b33d3b88f9962aca1f36c31bb30151
|
7
|
+
data.tar.gz: f057fe393814b5e303e6adbf449155d9f8d7a18ea5a24cf8bcff2aca7b4725596b9a6b960a3694d4778fdcd8f0b45ab59f06ac80bc48df593723c5810be2e81f
|
data/bin/jwk_tool
CHANGED
@@ -62,8 +62,8 @@ class JwkTool
|
|
62
62
|
# create JSON Web Key (public) for sender
|
63
63
|
jwk_pub = JSON::JWK.new(ssl_pkey.public_key)
|
64
64
|
begin
|
65
|
-
open(pubkey_file, "w") {|f| f.write(jwk_pub)}
|
66
|
-
open(privkey_file, "w") {|f| f.write(jwk)}
|
65
|
+
open(pubkey_file, "w") {|f| f.write(jwk_pub.to_json)}
|
66
|
+
open(privkey_file, "w") {|f| f.write(jwk.to_json)}
|
67
67
|
rescue => e
|
68
68
|
$stderr.puts "#{e.class}, #{e.message}"
|
69
69
|
end
|
data/jwk-tool.gemspec
CHANGED