acme-client 2.0.35 → 2.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/acme/client/http_client.rb +1 -1
- data/lib/acme/client/resources/account.rb +1 -1
- data/lib/acme/client/util.rb +3 -1
- data/lib/acme/client/version.rb +1 -1
- metadata +1 -2
- data/acme-client-2.0.32.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4ab7c4f62fe9ee94eb105e8924b8e5689269de9ca768003dc996bdc378b95fa
|
|
4
|
+
data.tar.gz: f53abdfe758d06c8ebdd82e2e732152abe6dc2bdada7499bcb71b42584fae966
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10e1928f15b1e9842eb4a6dc7601440721ad43e1ca150bc3919dd51327dc22cf9a95c497ebf9a5acfd03daae951733f6a01eaf1b081630ac4baba7ef656233ec
|
|
7
|
+
data.tar.gz: f75213b52a604e85c8ae3e32dc4b3ceb51be3de75f6702516eb781c57c0c38d90677c1828df809cdfe1030447ec71c7ca05d817f83dbde55d8027f609d4661af
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## `2.0.36`
|
|
2
|
+
|
|
3
|
+
* Fix ARI certificate identifier for serials with the high bit set: keep the DER sign byte, as required by RFC 9773
|
|
4
|
+
* Fix `Account#update` ignoring its `terms_of_service_agreed:` argument
|
|
5
|
+
* Parse ACME JSON responses with `JSON.parse` instead of `JSON.load`, so a response cannot instantiate arbitrary classes via `json_class`
|
|
6
|
+
|
|
1
7
|
## `2.0.35`
|
|
2
8
|
|
|
3
9
|
* Expose the RFC 8555 order `error` field on `Resources::Order#error` and add `Order#typed_error`
|
|
@@ -138,7 +138,7 @@ module Acme::Client::HTTPClient
|
|
|
138
138
|
content_type = env.response_headers['Content-Type'].to_s
|
|
139
139
|
|
|
140
140
|
if content_type.start_with?('application/json', 'application/problem+json')
|
|
141
|
-
JSON.
|
|
141
|
+
JSON.parse(env.body) unless env.body.nil? || env.body.empty?
|
|
142
142
|
else
|
|
143
143
|
env.body
|
|
144
144
|
end
|
|
@@ -14,7 +14,7 @@ class Acme::Client::Resources::Account
|
|
|
14
14
|
|
|
15
15
|
def update(contact: nil, terms_of_service_agreed: nil)
|
|
16
16
|
assign_attributes(**@client.account_update(
|
|
17
|
-
contact: contact, terms_of_service_agreed:
|
|
17
|
+
contact: contact, terms_of_service_agreed: terms_of_service_agreed
|
|
18
18
|
).to_h)
|
|
19
19
|
true
|
|
20
20
|
end
|
data/lib/acme/client/util.rb
CHANGED
|
@@ -80,7 +80,9 @@ module Acme::Client::Util
|
|
|
80
80
|
|
|
81
81
|
key_identifier = hex_string.split(':').map { |hex| hex.to_i(16).chr }.join
|
|
82
82
|
serial_der = OpenSSL::ASN1::Integer.new(cert.serial).to_der
|
|
83
|
-
|
|
83
|
+
header_length = 0
|
|
84
|
+
OpenSSL::ASN1.traverse(serial_der) { |_depth, _offset, header_len| header_length = header_len }
|
|
85
|
+
serial_value = serial_der.byteslice(header_length..-1)
|
|
84
86
|
|
|
85
87
|
aki_b64 = urlsafe_base64(key_identifier)
|
|
86
88
|
serial_b64 = urlsafe_base64(serial_value)
|
data/lib/acme/client/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acme-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.36
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Charles Barbier
|
|
@@ -172,7 +172,6 @@ files:
|
|
|
172
172
|
- LICENSE.txt
|
|
173
173
|
- README.md
|
|
174
174
|
- Rakefile
|
|
175
|
-
- acme-client-2.0.32.gem
|
|
176
175
|
- acme-client.gemspec
|
|
177
176
|
- bin/console
|
|
178
177
|
- bin/generate_keystash
|
data/acme-client-2.0.32.gem
DELETED
|
Binary file
|