acme-client 2.0.17 → 2.0.19

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: a0e6e77d3b55948efdac0659c7252a685c791029599c734cb593444e3d3d4936
4
+ data.tar.gz: 14e2a2ec2a520db7bffef10f069dae5ca51ce58d0b0d8c0f15353dd622025ac2
5
5
  SHA512:
6
- metadata.gz: b769d1192fcbf7468cea7637a79398d19a1561da94e34e1e08c15108dba6923b2f2c4d38c2a6404699111b42455c97217eec46ba5fbb66c6a0e0661230743b0b
7
- data.tar.gz: aa3deacd0ad900db154efaf3d6e231faf2b8f8ac01e9a02cfafb4b17f7993e13c8bad00321545b4a042e49ba68540b4be874ca5024828ac0299edf7c47d7c246
6
+ metadata.gz: bbde5262664481e7e11c69d9604e4cd65a5cd4983cc5aaeca418f6abcb88787562968f745b8a4cac7bad423463ed2d1a76a9eeea69ff540e4dabd17f84f49b52
7
+ data.tar.gz: 62e069ee6a2b9dd8a38081aaac7c07f00d84fea78ab923a3a9fb9fafd538c0af5e2e9e4f2fd02737910cadbd0365879ef106ba93fc3e7106d467edd3e0fbe2b7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## `2.0.19`
2
+
3
+ * Fix an issue CSR generation. Version should be set to zero according to the spec. It's causing issue with some ACME server implementation.
4
+
5
+ ## `2.0.18`
6
+
7
+ * Fix an issue public key encoding. `OpenSSL::BN` cause keys with leading zero to fail.
8
+
1
9
  ## `2.0.17`
2
10
 
3
11
  * Fix bug where depending on call order `jws` get generated with the wrong `kid`
data/acme-client.gemspec CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency 'webmock', '~> 3.8'
23
23
  spec.add_development_dependency 'webrick', '~> 1.7'
24
24
 
25
+ spec.add_runtime_dependency 'base64', '~> 0.2.0'
25
26
  spec.add_runtime_dependency 'faraday', '>= 1.0', '< 3.0.0'
26
27
  spec.add_runtime_dependency 'faraday-retry', '>= 1.0', '< 3.0.0'
27
28
  end
@@ -89,7 +89,7 @@ class Acme::Client::CertificateRequest
89
89
  end
90
90
  csr.public_key = @private_key
91
91
  csr.subject = generate_subject
92
- csr.version = 2
92
+ csr.version = 0
93
93
  add_extension(csr)
94
94
  csr.sign @private_key, @digest
95
95
  end
@@ -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.19'.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.19
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-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.7'
83
+ - !ruby/object:Gem::Dependency
84
+ name: base64
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.2.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.2.0
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: faraday
85
99
  requirement: !ruby/object:Gem::Requirement