acme-client 0.5.0 → 0.5.1
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/README.md +4 -4
- data/lib/acme/client/self_sign_certificate.rb +1 -0
- data/lib/acme/client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 546bdc94cb3c9f93fb22692f687993ad1211400c
|
4
|
+
data.tar.gz: 9588c1861431d4bd323dc20197c1d242e2426577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68e4b32eebcbb519855e4f8d8cc9fbad14252095b04f465c45cc49df3d3d4d18475110dd17b94552e0252486246e0f7582504f2defdb118ff63d21b241e93d37
|
7
|
+
data.tar.gz: 7eb15750deec7474b7956ce8197576b9d3d336c0c27969b626ac215a4f101e60fdf273852df28be9b58e9a1fffa02b648315cb6f5be96899367a953b72bfbe03
|
data/README.md
CHANGED
@@ -86,16 +86,16 @@ FileUtils.mkdir_p( File.join( 'public', File.dirname( challenge.filename ) ) )
|
|
86
86
|
# We'll write the content of the file
|
87
87
|
File.write( File.join( 'public', challenge.filename), challenge.file_content )
|
88
88
|
|
89
|
-
# Optionally save the
|
90
|
-
File.write('
|
89
|
+
# Optionally save the authorization URI for use at another time (eg: by a background job processor)
|
90
|
+
File.write('authorization_uri', authorization.uri)
|
91
91
|
|
92
92
|
# The challenge file can be served with a Ruby webserver.
|
93
93
|
# You can run a webserver in another console for that purpose. You may need to forward ports on your router.
|
94
94
|
#
|
95
95
|
# $ ruby -run -e httpd public -p 8080 --bind-address 0.0.0.0
|
96
96
|
|
97
|
-
# Load a
|
98
|
-
challenge = client.
|
97
|
+
# Load a challenge based on stored authorization URI. This is only required if you need to reuse a challenge as outlined above.
|
98
|
+
challenge = client.fetch_authorization(File.read('authorization_uri')).http01
|
99
99
|
|
100
100
|
# Once you are ready to serve the confirmation request you can proceed.
|
101
101
|
challenge.request_verification # => true
|
data/lib/acme/client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acme-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Barbier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
181
|
rubyforge_project:
|
182
|
-
rubygems_version: 2.
|
182
|
+
rubygems_version: 2.6.8
|
183
183
|
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: Client for the ACME protocol.
|