acme-client 2.0.17 → 2.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 417bc7e66063768660e078a24866ac390792f42c861742054ee4d6269297bb3d
4
- data.tar.gz: 29d839f6c57f17ca85dcce3bad8b505bf9bc75a7ae4ea5baca55c341b29cf238
3
+ metadata.gz: 88c2953c9fcfd9a7f7825b4c69b2cf0ff86befb504914e6f78b03f6fdaab052b
4
+ data.tar.gz: bddedcd46dc0b2d1224a7d409916668aa31bfad3c6576a0d09376257c654f434
5
5
  SHA512:
6
- metadata.gz: b769d1192fcbf7468cea7637a79398d19a1561da94e34e1e08c15108dba6923b2f2c4d38c2a6404699111b42455c97217eec46ba5fbb66c6a0e0661230743b0b
7
- data.tar.gz: aa3deacd0ad900db154efaf3d6e231faf2b8f8ac01e9a02cfafb4b17f7993e13c8bad00321545b4a042e49ba68540b4be874ca5024828ac0299edf7c47d7c246
6
+ metadata.gz: 999d2d254b29f3fdefe3af90333091c5a034d5aa3b3c3274bfe1c7787fe9c14723bf288ba0d7e4dce5fa3aad3352ecd0ef49bd60c93f4b51ab7e5d51017a9a1e
7
+ data.tar.gz: 0d16f423760bd8f714ce94de1767201dd8c842ae3fca2ec8d93c7364ea15c61f24f9c66c4175e2d7091cf263467caeb4a5e049f996c92173d64269ba5c11629b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## `2.0.18`
2
+
3
+ * Fix an issue public key encoding. `OpenSSL::BN` cause keys with leading zero to fail.
4
+
1
5
  ## `2.0.17`
2
6
 
3
7
  * Fix bug where depending on call order `jws` get generated with the wrong `kid`
@@ -50,8 +50,8 @@ class Acme::Client::JWK::ECDSA < Acme::Client::JWK::Base
50
50
  {
51
51
  crv: @curve_params[:jwa_crv],
52
52
  kty: 'EC',
53
- x: Acme::Client::Util.urlsafe_base64(coordinates[:x].to_s(2)),
54
- y: Acme::Client::Util.urlsafe_base64(coordinates[:y].to_s(2))
53
+ x: Acme::Client::Util.urlsafe_base64(coordinates[:x]),
54
+ y: Acme::Client::Util.urlsafe_base64(coordinates[:y])
55
55
  }
56
56
  end
57
57
 
@@ -92,8 +92,8 @@ class Acme::Client::JWK::ECDSA < Acme::Client::JWK::Base
92
92
  hex_y = hex[2 + data_len / 2, data_len / 2]
93
93
 
94
94
  {
95
- x: OpenSSL::BN.new([hex_x].pack('H*'), 2),
96
- y: OpenSSL::BN.new([hex_y].pack('H*'), 2)
95
+ x: [hex_x].pack('H*'),
96
+ y: [hex_y].pack('H*')
97
97
  }
98
98
  end
99
99
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Acme
4
4
  class Client
5
- VERSION = '2.0.17'.freeze
5
+ VERSION = '2.0.18'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acme-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.17
4
+ version: 2.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Barbier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-13 00:00:00.000000000 Z
11
+ date: 2024-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake