acme-client 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1014fe983481bd49d8eaf71c0f0a746dc0a4ec4b
4
- data.tar.gz: eb1fe3e04e23b00110454ad06f55c40542fa6254
3
+ metadata.gz: 546bdc94cb3c9f93fb22692f687993ad1211400c
4
+ data.tar.gz: 9588c1861431d4bd323dc20197c1d242e2426577
5
5
  SHA512:
6
- metadata.gz: ce433ff66f5a5a837d997dbeb5f157e15fe43456ac238c24480f3064353f419f130d62153294f582e2651efc9ff037429ddc6a4f9630e46ee2ecbfbe16dfc90e
7
- data.tar.gz: df0392f58d11037c3158e8c783afd5cc55d1a0f85baa5d195dfff1974424bfdb3a8112145349cffef3c4d957b622a3486fcce9ea93ca514d4c5d45d1280fcf7d
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 challenge for use at another time (eg: by a background job processor)
90
- File.write('challenge', challenge.to_h.to_json)
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 saved challenge. This is only required if you need to reuse a saved challenge as outlined above.
98
- challenge = client.challenge_from_hash(JSON.parse(File.read('challenge')))
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
@@ -48,6 +48,7 @@ class Acme::Client::SelfSignCertificate
48
48
  certificate.not_after = not_after
49
49
  certificate.public_key = private_key.public_key
50
50
  certificate.version = 2
51
+ certificate.serial = 1
51
52
  certificate
52
53
  end
53
54
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Acme
4
4
  class Client
5
- VERSION = '0.5.0'.freeze
5
+ VERSION = '0.5.1'.freeze
6
6
  end
7
7
  end
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.0
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: 2016-11-16 00:00:00.000000000 Z
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.5.1
182
+ rubygems_version: 2.6.8
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Client for the ACME protocol.