acme_nsupdate 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acme_nsupdate/cli.rb +4 -3
- data/lib/acme_nsupdate/strategies/http01.rb +3 -3
- data/lib/acme_nsupdate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5673bb3e92445356693cf644c6ccb4382e965064
|
4
|
+
data.tar.gz: 11fb4e6940681bf970e30c55daf600cf3a5bb6b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3a8b942e8c6c83559a0e56f9a3da176158db0506f59d6a8ed5719c1d8e43861d933522aae87813ce2982eeb825395556b9ad04667849470c4a4b8d5008b4a34
|
7
|
+
data.tar.gz: 2687dbf9d23f5476c5c546556f0cf179e57847f823b144250b2dd9ce8470e582c050e4d5d6d9822d47488ddf5d99aead9def2d255e6d4a6e6ace0454f0170aab
|
data/lib/acme_nsupdate/cli.rb
CHANGED
@@ -74,9 +74,10 @@ module AcmeNsupdate
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def valid_webroot?
|
77
|
-
@options[:challenge]
|
78
|
-
|
79
|
-
File.writable?(@options[:webroot])
|
77
|
+
return true unless @options[:challenge] == "http-01"
|
78
|
+
return false if @options[:webroot].nil?
|
79
|
+
return true if File.writable?(@options[:webroot])
|
80
|
+
false
|
80
81
|
end
|
81
82
|
|
82
83
|
def valid_ttl?
|
@@ -14,7 +14,7 @@ module AcmeNsupdate
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def publish_challenges
|
17
|
-
|
17
|
+
map_authorizations {|domain, authorization|
|
18
18
|
challenge = authorization.http01
|
19
19
|
abort "Challenge http-01 not supported by this ACME server" unless challenge
|
20
20
|
|
@@ -23,8 +23,8 @@ module AcmeNsupdate
|
|
23
23
|
FileUtils.mkdir_p File.dirname path
|
24
24
|
File.write path, challenge.file_content
|
25
25
|
|
26
|
-
|
27
|
-
}
|
26
|
+
challenge
|
27
|
+
}
|
28
28
|
end
|
29
29
|
|
30
30
|
def cleanup challenges
|