bullion 0.6.2 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bullion/challenge_client.rb +4 -0
- data/lib/bullion/helpers/ssl.rb +1 -1
- data/lib/bullion/models/challenge.rb +8 -1
- data/lib/bullion/services/ca.rb +2 -0
- data/lib/bullion/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e9ebdfc8744eadaf021a1f19f79c12e39b63e87896d21896c546ef875e15955
|
4
|
+
data.tar.gz: a6dd92c1c76bdd65a0e2a58ae90e3db912590d6f2e2e0a522adfeda5bc287e2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6eaf7ae8d958d3adef49a95fe9d3c53b1610fed2ebdfcee0f13b7b71aacd07ded25e7652b0f1c0f8168d812df8ecbb83642c0679c3c8d26a75cf50207f21c35
|
7
|
+
data.tar.gz: ce2065af090c95f31ed8bfbcc23f4c12f452d3d52fca7f9715877c975e8a0dcb10a6670759277a218edb8b6988cadb9a3f45941f6cda4f71f77ecf084c51db54
|
data/Gemfile.lock
CHANGED
@@ -22,6 +22,8 @@ module Bullion
|
|
22
22
|
tries = 0
|
23
23
|
success = false
|
24
24
|
|
25
|
+
challenge.update!(status: "processing")
|
26
|
+
|
25
27
|
benchtime = Benchmark.realtime do
|
26
28
|
until success || tries >= retries
|
27
29
|
tries += 1
|
@@ -39,6 +41,8 @@ module Bullion
|
|
39
41
|
unless success
|
40
42
|
LOGGER.info "Failed to validate #{type} #{identifier}"
|
41
43
|
challenge.status = "invalid"
|
44
|
+
challenge.authorization.update!(status: "invalid")
|
45
|
+
challenge.authorization.order.update!(status: "invalid")
|
42
46
|
end
|
43
47
|
|
44
48
|
challenge.save
|
data/lib/bullion/helpers/ssl.rb
CHANGED
@@ -216,7 +216,7 @@ module Bullion
|
|
216
216
|
csr_cert.subject = simple_subject(cert.subject.to_s)
|
217
217
|
|
218
218
|
csr_cert.public_key = csr.public_key
|
219
|
-
csr_cert.issuer = Bullion.ca_cert.
|
219
|
+
csr_cert.issuer = Bullion.ca_cert.subject
|
220
220
|
|
221
221
|
csr_cert, sans = manage_csr_extensions(csr, csr_cert)
|
222
222
|
|
@@ -24,7 +24,7 @@ module Bullion
|
|
24
24
|
|
25
25
|
def thumbprint
|
26
26
|
cipher = OpenSSL::Digest.new("SHA256")
|
27
|
-
digest = cipher.digest(
|
27
|
+
digest = cipher.digest(lexicographically_ordered_public_key.to_json)
|
28
28
|
Base64.urlsafe_encode64(digest).sub(/[\s=]*\z/, "")
|
29
29
|
end
|
30
30
|
|
@@ -38,6 +38,13 @@ module Bullion
|
|
38
38
|
|
39
39
|
challenge_class.new(self)
|
40
40
|
end
|
41
|
+
|
42
|
+
private
|
43
|
+
|
44
|
+
def lexicographically_ordered_public_key
|
45
|
+
jwk = authorization.order.account.public_key
|
46
|
+
[["e", jwk["e"]], ["kty", jwk["kty"]], ["n", jwk["n"]]].to_h
|
47
|
+
end
|
41
48
|
end
|
42
49
|
end
|
43
50
|
end
|
data/lib/bullion/services/ca.rb
CHANGED
@@ -345,6 +345,8 @@ module Bullion
|
|
345
345
|
# Oddly enough, cert-manager uses a GET request for retrieving Challenge info
|
346
346
|
challenge.client.attempt unless @json_body && @json_body[:payload] == ""
|
347
347
|
|
348
|
+
challenge.reload
|
349
|
+
|
348
350
|
data = {
|
349
351
|
type: challenge.acme_type,
|
350
352
|
status: challenge.status,
|
data/lib/bullion/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Gnagy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|