acme-client 2.0.19 → 2.0.21
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 +8 -0
- data/lib/acme/client/error.rb +2 -0
- data/lib/acme/client/resources/challenges/base.rb +4 -3
- data/lib/acme/client/version.rb +1 -1
- data/lib/acme/client.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44b0c02d1f7897e2f2b58b61f9e57c5fe6fa91a4ea4af144dd854d298c4f7593
|
4
|
+
data.tar.gz: 9e5396026a6dc45d4424473cc0709bc67fee31784ec549497ab85b4c78bfa051
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d01f6ba52507f72e792339f0d3e2ff819f73cd979a5bee0251e070b9bdf2c81b426a8cabb9960b64dd45e64afe92e12d98fa3f3daa5bb45e6bc273d40d17318f
|
7
|
+
data.tar.gz: 40b867e578bbddee5fea61cf0f0c72a7120866de35d97d3bc1b8bda3b52d17d78274f2ccadabf694664bb6366283ce478fd9fa37f1981c4933043ef85dbbd041
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## `2.0.21`
|
2
|
+
|
3
|
+
* Add validated attribute to challenges
|
4
|
+
|
5
|
+
## `2.0.20`
|
6
|
+
|
7
|
+
* Add OrderNotReady exception
|
8
|
+
|
1
9
|
## `2.0.19`
|
2
10
|
|
3
11
|
* Fix an issue CSR generation. Version should be set to zero according to the spec. It's causing issue with some ACME server implementation.
|
data/lib/acme/client/error.rb
CHANGED
@@ -8,6 +8,7 @@ class Acme::Client::Error < StandardError
|
|
8
8
|
class NotFound < ClientError; end
|
9
9
|
class CertificateNotReady < ClientError; end
|
10
10
|
class ForcedChainNotFound < ClientError; end
|
11
|
+
class OrderNotReady < ClientError; end
|
11
12
|
|
12
13
|
class ServerError < Acme::Client::Error; end
|
13
14
|
class AlreadyRevoked < ServerError; end
|
@@ -44,6 +45,7 @@ class Acme::Client::Error < StandardError
|
|
44
45
|
'urn:ietf:params:acme:error:externalAccountRequired' => ExternalAccountRequired,
|
45
46
|
'urn:ietf:params:acme:error:accountDoesNotExist' => AccountDoesNotExist,
|
46
47
|
'urn:ietf:params:acme:error:malformed' => Malformed,
|
48
|
+
'urn:ietf:params:acme:error:orderNotReady' => OrderNotReady,
|
47
49
|
'urn:ietf:params:acme:error:rateLimited' => RateLimited,
|
48
50
|
'urn:ietf:params:acme:error:rejectedIdentifier' => RejectedIdentifier,
|
49
51
|
'urn:ietf:params:acme:error:serverInternal' => ServerInternal,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class Acme::Client::Resources::Challenges::Base
|
4
|
-
attr_reader :status, :url, :token, :error
|
4
|
+
attr_reader :status, :url, :token, :error, :validated
|
5
5
|
|
6
6
|
def initialize(client, **arguments)
|
7
7
|
@client = client
|
@@ -29,7 +29,7 @@ class Acme::Client::Resources::Challenges::Base
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def to_h
|
32
|
-
{ status: status, url: url, token: token, error: error }
|
32
|
+
{ status: status, url: url, token: token, error: error, validated: validated }
|
33
33
|
end
|
34
34
|
|
35
35
|
private
|
@@ -40,10 +40,11 @@ class Acme::Client::Resources::Challenges::Base
|
|
40
40
|
).to_h
|
41
41
|
end
|
42
42
|
|
43
|
-
def assign_attributes(status:, url:, token:, error: nil)
|
43
|
+
def assign_attributes(status:, url:, token:, error: nil, validated: nil)
|
44
44
|
@status = status
|
45
45
|
@url = url
|
46
46
|
@token = token
|
47
47
|
@error = error
|
48
|
+
@validated = validated
|
48
49
|
end
|
49
50
|
end
|
data/lib/acme/client/version.rb
CHANGED
data/lib/acme/client.rb
CHANGED
@@ -310,7 +310,7 @@ class Acme::Client
|
|
310
310
|
end
|
311
311
|
|
312
312
|
def attributes_from_challenge_response(response)
|
313
|
-
extract_attributes(response.body, :status, :url, :token, :type, :error)
|
313
|
+
extract_attributes(response.body, :status, :url, :token, :type, :error, :validated)
|
314
314
|
end
|
315
315
|
|
316
316
|
def extract_attributes(input, *attributes)
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
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.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Barbier
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rake
|
@@ -134,7 +133,6 @@ dependencies:
|
|
134
133
|
- - "<"
|
135
134
|
- !ruby/object:Gem::Version
|
136
135
|
version: 3.0.0
|
137
|
-
description:
|
138
136
|
email:
|
139
137
|
- unixcharles@gmail.com
|
140
138
|
executables: []
|
@@ -180,7 +178,6 @@ homepage: http://github.com/unixcharles/acme-client
|
|
180
178
|
licenses:
|
181
179
|
- MIT
|
182
180
|
metadata: {}
|
183
|
-
post_install_message:
|
184
181
|
rdoc_options: []
|
185
182
|
require_paths:
|
186
183
|
- lib
|
@@ -195,8 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
192
|
- !ruby/object:Gem::Version
|
196
193
|
version: '0'
|
197
194
|
requirements: []
|
198
|
-
rubygems_version: 3.
|
199
|
-
signing_key:
|
195
|
+
rubygems_version: 3.6.6
|
200
196
|
specification_version: 4
|
201
197
|
summary: Client for the ACME protocol.
|
202
198
|
test_files: []
|