letsencrypt_webfaction 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +6 -0
- data/letsencrypt_webfaction.gemspec +1 -1
- data/lib/letsencrypt_webfaction.rb +1 -1
- data/lib/letsencrypt_webfaction/domain_validator.rb +15 -4
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b883c5a06ee4a755c4a926a4bb975191b7d975c
|
4
|
+
data.tar.gz: 21a1981e3cec9caf86c53d1823b78f72dbcbb259
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcd3f8322875e3a8e3350ff0ba7ebdba8c1edca79c77b8cfb2f4f4ceb18a9fe8f7ac76567e55abf049fdf3e027d540766c21de663e64ba6b25e137f436de0177
|
7
|
+
data.tar.gz: 949201a7be7d429f95fd6808d2df4de4fd397e2c39644eec78029593088afcc8282c36f39a5802ea81466923193feb5967dfeb7439b39f20818e5f0519635bff
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
v2.2.3
|
2
|
+
|
3
|
+
* Fix issue where Acme::Client v0.5.0 changed API. Require newer version and use differently. Fixes #120
|
4
|
+
* Fix timing issue where it always took 10 seconds to fail.
|
5
|
+
* Upgrade required Acme::Client to v0.6.0.
|
6
|
+
|
1
7
|
v2.2.2
|
2
8
|
|
3
9
|
* Removes `output_dir` from configuration as it hasn't been used since 1..
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.required_ruby_version = '>= 2.1.0'
|
29
29
|
|
30
|
-
spec.add_runtime_dependency 'acme-client', '~> 0.
|
30
|
+
spec.add_runtime_dependency 'acme-client', '~> 0.6.0'
|
31
31
|
|
32
32
|
# This will be required for Ruby 2.4. But it is incompatible for Ruby <2.3. Unsupporting Ruby 2.4 for the moment.
|
33
33
|
# spec.add_runtime_dependency 'xmlrpc', '~> 0.3.0'
|
@@ -14,10 +14,12 @@ module LetsencryptWebfaction
|
|
14
14
|
challenges.each(&:request_verification)
|
15
15
|
|
16
16
|
10.times do
|
17
|
-
|
17
|
+
break if no_challenges_pending?
|
18
18
|
sleep(1)
|
19
19
|
end
|
20
20
|
|
21
|
+
return true if all_challenges_valid?
|
22
|
+
|
21
23
|
print_errors
|
22
24
|
false
|
23
25
|
end
|
@@ -32,8 +34,12 @@ module LetsencryptWebfaction
|
|
32
34
|
@challenges ||= authorizations.map(&:http01)
|
33
35
|
end
|
34
36
|
|
37
|
+
def no_challenges_pending?
|
38
|
+
challenges.none? { |challenge| challenge.authorization.verify_status == 'pending' }
|
39
|
+
end
|
40
|
+
|
35
41
|
def all_challenges_valid?
|
36
|
-
challenges.reject { |challenge| challenge.verify_status == 'valid' }.empty?
|
42
|
+
challenges.reject { |challenge| challenge.authorization.verify_status == 'valid' }.empty?
|
37
43
|
end
|
38
44
|
|
39
45
|
def write_files!
|
@@ -61,11 +67,16 @@ module LetsencryptWebfaction
|
|
61
67
|
end
|
62
68
|
|
63
69
|
def print_error
|
64
|
-
|
70
|
+
case @challenge.authorization.verify_status
|
71
|
+
when 'valid'
|
65
72
|
$stderr.puts "#{@domain}: Success"
|
66
|
-
|
73
|
+
when 'invalid'
|
67
74
|
$stderr.puts "#{@domain}: #{@challenge.error['detail']}"
|
68
75
|
$stderr.puts "Make sure that you can access #{url}"
|
76
|
+
when 'pending'
|
77
|
+
$stderr.puts "#{@domain}: Still pending, but timed out"
|
78
|
+
else
|
79
|
+
$stderr.puts "#{@domain}: Unexpected authorization status #{@challenge.authorization.verify_status}"
|
69
80
|
end
|
70
81
|
end
|
71
82
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: letsencrypt_webfaction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Johnston
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
Bgn1/q+P8H+/qkt6w5h8UzWYyXRlEjWvSJEjkNU0C05GQ0w0GFiqd62CgQty5xpa
|
31
31
|
7M3NhWEjOZHE18Ro4Vy9CQCJxUasYC4JUMMQ9tQBW+vYIgHfBn0+xlw=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-03
|
33
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: acme-client
|
@@ -38,14 +38,14 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: 0.6.0
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.
|
48
|
+
version: 0.6.0
|
49
49
|
description: A tool to simplify the manual process of using LetsEncrypt on Webfaction
|
50
50
|
hosts. It can be added to cron where it will validate your domains automatically,
|
51
51
|
place the generated certs in a common folder, and then email the WebFaction support
|
metadata.gz.sig
CHANGED
Binary file
|