letsencrypt_http_challenge 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82643283927b5bf83b10ddadd668c18b155de5e4
4
- data.tar.gz: d495c3b3d4a47ce9d090e869cb628410ad2f130b
3
+ metadata.gz: 29f1bb5a7c8b2ce388406c84879c60a745455a12
4
+ data.tar.gz: 5444362b230eb7d2ef4ff0b117f910569f436bf8
5
5
  SHA512:
6
- metadata.gz: 9496094f655598a83c293cc6bb451ea593f4b0667ef73f213450a4b3096b5e844f21d259bd04225bbfabd2ce5b5309680f46c41f8b6c2759247ad57c915e74f8
7
- data.tar.gz: af8401752b96cdd643d03e185298da37182666895957266665b3196313bce4d641fe500ab05c011991a4c22f773715e77f5fd9525512ac9e7d0f2f8cfa0e4324
6
+ metadata.gz: 2f52620d8817b69f9cef8a68c236de4670d69fc20018f5efd5aecbb2a7bf59d05317dfe03dc4fdd44db03ea927192f9ab4993d652e0c6a26e54b5c00c44906c4
7
+ data.tar.gz: ab142dec5c6835911d0461d5e2aed7f5ab29244bec3bb65c46f66a17854b425806af9bd799b9dbbb5cb1747104941f1e80bf7cd3b476a270903ce0f44ec63d85
data/README.md CHANGED
@@ -100,8 +100,8 @@ Finally, store the certificate files created by the script `privkey.pem cert.pem
100
100
 
101
101
  LetsencryptHttpChallenge was inspired by:
102
102
 
103
- lgromanowski/letsencrypt-plugin https://github.com/lgromanowski/letsencrypt-plugin
104
- unixcharles/acme-client https://github.com/unixcharles/acme-client
103
+ - lgromanowski/letsencrypt-plugin https://github.com/lgromanowski/letsencrypt-plugin
104
+ - unixcharles/acme-client https://github.com/unixcharles/acme-client
105
105
 
106
106
 
107
107
  ## License
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.add_dependency "rails", "~> 4.1"
21
21
 
22
- s.add_dependency "acme-client", "~> 0.2.2"
22
+ s.add_dependency "acme-client", "~> 0.3.0"
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module LetsencryptHttpChallenge
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -63,7 +63,7 @@ task :generate_letsencrypt_cert do
63
63
 
64
64
  puts ''
65
65
  puts 'Requesting the certificate...'
66
- csr = Acme::CertificateRequest.new(names: options[:domains])
66
+ csr = Acme::Client::CertificateRequest.new(names: options[:domains])
67
67
  certificate = client.new_certificate(csr)
68
68
 
69
69
  if certificate.nil?
@@ -84,4 +84,4 @@ task :generate_letsencrypt_cert do
84
84
 
85
85
  generate_cert(options)
86
86
 
87
- end
87
+ end
@@ -241,3 +241,29 @@ Processing by LetsencryptHttpChallenge::ApplicationController#index as HTML
241
241
  Challenge failed - The token must have at least 128 bits of entropy
242
242
  Rendered text template (0.0ms)
243
243
  Completed 400 Bad Request in 0ms (Views: 0.2ms)
244
+ ----------------------------------------
245
+ LetsencryptHttpChallengeTest: test_truth
246
+ ----------------------------------------
247
+ --------------------------------------------------------------------------
248
+ LetsencryptHttpChallenge::ApplicationControllerTest: test_token_must_match
249
+ --------------------------------------------------------------------------
250
+ Processing by LetsencryptHttpChallenge::ApplicationController#index as HTML
251
+ Parameters: {"challenge"=>"58u1GLEGwgSbK-3LnTYUDwZySN3FmTxE4CuqAf8IpAU_wrong_token"}
252
+ Challenge failed - The token must match between the challenge and the response
253
+ Rendered text template (0.0ms)
254
+ Completed 400 Bad Request in 5ms (Views: 4.7ms)
255
+ --------------------------------------------------------------------------------------------
256
+ LetsencryptHttpChallenge::ApplicationControllerTest: test_token_must_be_longer_than_128_bits
257
+ --------------------------------------------------------------------------------------------
258
+ Processing by LetsencryptHttpChallenge::ApplicationController#index as HTML
259
+ Parameters: {"challenge"=>"58u1GLEG"}
260
+ Challenge failed - The token must have at least 128 bits of entropy
261
+ Rendered text template (0.0ms)
262
+ Completed 400 Bad Request in 0ms (Views: 0.2ms)
263
+ -----------------------------------------------------------------------------------------------------------------
264
+ LetsencryptHttpChallenge::ApplicationControllerTest: test_matching_challenge_token_returns_the_challenge_response
265
+ -----------------------------------------------------------------------------------------------------------------
266
+ Processing by LetsencryptHttpChallenge::ApplicationController#index as HTML
267
+ Parameters: {"challenge"=>"58u1GLEGwgSbK-3LnTYUDwZySN3FmTxE4CuqAf8IpAU"}
268
+ Rendered text template (0.0ms)
269
+ Completed 200 OK in 0ms (Views: 0.2ms)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letsencrypt_http_challenge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luc Lussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-19 00:00:00.000000000 Z
11
+ date: 2016-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.2
33
+ version: 0.3.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.2
40
+ version: 0.3.0
41
41
  description: A Rails engine that provides a response mechanism for Let's Encrypt ACME
42
42
  - Simple HTTP - Identifier Validation Challenges on 12 factor apps like those deployed
43
43
  on Heroku as well as the rake task to generate the certificate from your local machine.