letsencrypt_plugin 0.0.7 → 0.0.8

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: 77fec6d13d402402a206ec4d4691e5bac1e78f94
4
- data.tar.gz: 0ff5be2480ed5bb421f678b301a9f8c4e1da6ea5
3
+ metadata.gz: 029c1218c9db172c1620924b269cfa991ba3f66e
4
+ data.tar.gz: f20e29d34a23f257ad2f8c64da627256b3cefe57
5
5
  SHA512:
6
- metadata.gz: 94a936bfa6798b4917cbdcb0afa243f655cbcd6e6decd5451635ae08578bd676bcf5ccffd4a7c97d4df43d0f8884d01d902b1c5dc98e09b4b196153140d6f674
7
- data.tar.gz: 4c4f999d13674ae6693b7a576fe657367f47cfbfb3e1916fb33a05e1fe4bedc44e7141fb11a51985eeea6d50ca502fdd9ea922b0b92e5aedddec7c7aaa3aa283
6
+ metadata.gz: 8250281734d84cb333efd9588482290a42033e90d672da5a2a56927803ae117ce27275308ae19dc41e1962327e1bf39bbc648761b8c42b47f510202c7ece14cb
7
+ data.tar.gz: 7571ed0747f6753aeecdd33729e5941290759589688c6c7d782056c48831b92c5e3a5ba036bbf3382418e3691a3e57ef878e76e72add98917a3f1e12aa798c0d
@@ -17,7 +17,7 @@ module LetsencryptPlugin
17
17
  end
18
18
 
19
19
  def challenge_response
20
- @response = CONFIG[:challenge_dir_name] ? Challenge.new : Challenge.first
20
+ @response = LetsencryptPlugin.config.challenge_dir_name ? Challenge.new : Challenge.first
21
21
  challenge_failed('Challenge failed - Can not get response from database!') if @response.nil?
22
22
  end
23
23
 
@@ -1,7 +1,7 @@
1
1
  module LetsencryptPlugin
2
2
  # if the project doesn't use ActiveRecord, we assume the challenge will
3
3
  # be stored in the filesystem
4
- if defined?(ActiveRecord::Base) == 'constant' && ActiveRecord::Base.class == Class
4
+ if LetsencryptPlugin.config.challenge_dir_name.blank? && defined?(ActiveRecord::Base) == 'constant' && ActiveRecord::Base.class == Class
5
5
  class Challenge < ActiveRecord::Base
6
6
  end
7
7
  else
@@ -9,7 +9,7 @@ module LetsencryptPlugin
9
9
  attr_accessor :response
10
10
 
11
11
  def initialize
12
- full_challenge_dir = File.join(Rails.root, CONFIG[:challenge_dir_name], 'challenge')
12
+ full_challenge_dir = File.join(Rails.root, LetsencryptPlugin.config.challenge_dir_name, 'challenge')
13
13
  @response = IO.read(full_challenge_dir)
14
14
  end
15
15
  end
@@ -1,3 +1,3 @@
1
- CONFIG = YAML.load_file(Rails.root.join('config', 'letsencrypt_plugin.yml'))
2
- CONFIG.merge! CONFIG.fetch(Rails.env, {})
3
- CONFIG.symbolize_keys!
1
+ config = YAML.load_file(Rails.root.join('config', 'letsencrypt_plugin.yml'))
2
+ config.merge! config.fetch(Rails.env, {})
3
+ LetsencryptPlugin.config = config
@@ -7,8 +7,18 @@ require 'openssl'
7
7
  require 'acme/client'
8
8
 
9
9
  module LetsencryptPlugin
10
+ Config = Class.new(OpenStruct)
11
+ def self.config=(options)
12
+ @config = Config.new(options || {})
13
+ end
14
+
15
+ def self.config
16
+ @config || Config.new
17
+ end
18
+
10
19
  class CertGenerator
11
20
  attr_reader :options
21
+ attr_writer :client
12
22
 
13
23
  def initialize(options = {})
14
24
  @options = options
@@ -28,21 +38,18 @@ module LetsencryptPlugin
28
38
  end
29
39
 
30
40
  def generate_certificate
31
- create_client
32
41
  register
33
-
34
42
  domains = @options[:domain].split(' ')
35
- if authorize_and_handle_challenge(domains)
36
- # We can now request a certificate
37
- Rails.logger.info('Creating CSR...')
38
- save_certificate(@client.new_certificate(Acme::Client::CertificateRequest.new(names: domains)))
39
- Rails.logger.info('Certificate has been generated.')
40
- end
43
+ return unless authorize_and_handle_challenge(domains)
44
+ # We can now request a certificate
45
+ Rails.logger.info('Creating CSR...')
46
+ save_certificate(@client.new_certificate(Acme::Client::CertificateRequest.new(names: domains)))
47
+ Rails.logger.info('Certificate has been generated.')
41
48
  end
42
49
 
43
- def create_client
50
+ def client
44
51
  @client ||= Acme::Client.new(private_key: load_private_key, endpoint: @options[:endpoint])
45
- rescue Exception => e
52
+ rescue StandardError => e
46
53
  Rails.logger.error(e.to_s)
47
54
  raise e
48
55
  end
@@ -52,34 +59,32 @@ module LetsencryptPlugin
52
59
  end
53
60
 
54
61
  def privkey_path
55
- fail 'Private key is not set, please check your '\
62
+ raise 'Private key is not set, please check your '\
56
63
  'config/letsencrypt_plugin.yml file!' if @options[:private_key].nil? || @options[:private_key].empty?
57
64
  File.join(Rails.root, @options[:private_key])
58
65
  end
59
66
 
60
67
  def open_priv_key
61
68
  private_key_path = privkey_path
62
- fail "Can not open private key: #{private_key_path}" unless File.exist?(private_key_path) && !File.directory?(private_key_path)
69
+ raise "Can not open private key: #{private_key_path}" unless File.exist?(private_key_path) && !File.directory?(private_key_path)
63
70
  OpenSSL::PKey::RSA.new(File.read(private_key_path))
64
71
  end
65
72
 
66
73
  def load_private_key
67
74
  Rails.logger.info('Loading private key...')
68
75
  private_key = open_priv_key
69
- fail "Invalid key size: #{private_key.n.num_bits}." \
76
+ raise "Invalid key size: #{private_key.n.num_bits}." \
70
77
  ' Required size is between 2048 - 4096 bits' unless valid_key_size?(private_key)
71
78
  private_key
72
79
  end
73
80
 
74
81
  def register
75
82
  Rails.logger.info('Trying to register at Let\'s Encrypt service...')
76
- begin
77
- registration = @client.register(contact: "mailto:#{@options[:email]}")
78
- registration.agree_terms
79
- Rails.logger.info('Registration succeed.')
80
- rescue
81
- Rails.logger.info('Already registered.')
82
- end
83
+ registration = client.register(contact: "mailto:#{@options[:email]}")
84
+ registration.agree_terms
85
+ Rails.logger.info('Registration succeed.')
86
+ rescue
87
+ Rails.logger.info('Already registered.')
83
88
  end
84
89
 
85
90
  def common_domain_name
@@ -88,7 +93,7 @@ module LetsencryptPlugin
88
93
 
89
94
  def authorize(domain = common_domain_name)
90
95
  Rails.logger.info("Sending authorization request for: #{domain}...")
91
- @authorization = @client.authorize(domain: domain)
96
+ @authorization = client.authorize(domain: domain)
92
97
  end
93
98
 
94
99
  def store_challenge(challenge)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module LetsencryptPlugin
3
- VERSION = '0.0.7'.freeze
3
+ VERSION = '0.0.8'.freeze
4
4
  end
@@ -10,6 +10,6 @@ end
10
10
 
11
11
  desc "Generates SSL certificate using Let's Encrypt service"
12
12
  task letsencrypt_plugin: :setup_logger do
13
- cert_generator = LetsencryptPlugin::CertGenerator.new(CONFIG)
13
+ cert_generator = LetsencryptPlugin::CertGenerator.new(LetsencryptPlugin.config.to_h)
14
14
  cert_generator.generate_certificate
15
15
  end
Binary file
@@ -8791,3 +8791,3194 @@ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
8791
8791
  Loading private key...
8792
8792
  Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
8793
8793
   (0.1ms) rollback transaction
8794
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8795
+  (0.1ms) begin transaction
8796
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
8797
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-24 19:07:13', '2016-01-24 19:07:13', 980190962)
8798
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-24 19:07:13', '2016-01-24 19:07:13', 298486374)
8799
+  (73.9ms) commit transaction
8800
+  (0.1ms) begin transaction
8801
+ ------------------------------------------------------------------------
8802
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
8803
+ ------------------------------------------------------------------------
8804
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
8805
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
8806
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
8807
+ Rendered text template (0.1ms)
8808
+ Completed 200 OK in 17ms (Views: 8.9ms | ActiveRecord: 0.3ms)
8809
+  (0.2ms) rollback transaction
8810
+  (0.1ms) begin transaction
8811
+ -----------------------------------------------------------------------------------------------------------------
8812
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
8813
+ -----------------------------------------------------------------------------------------------------------------
8814
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
8815
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
8816
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
8817
+ Challenge failed - Request has invalid length!
8818
+ Rendered text template (0.0ms)
8819
+ Filter chain halted as :validate_length rendered or redirected
8820
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
8821
+  (0.1ms) rollback transaction
8822
+  (0.1ms) begin transaction
8823
+ ----------------------------------------------------------------------------------------------------------------
8824
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
8825
+ ----------------------------------------------------------------------------------------------------------------
8826
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
8827
+ Parameters: {"challenge"=>"dG9rZW4="}
8828
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
8829
+ Challenge failed - Request has invalid length!
8830
+ Rendered text template (0.0ms)
8831
+ Filter chain halted as :validate_length rendered or redirected
8832
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
8833
+  (0.1ms) rollback transaction
8834
+  (0.1ms) begin transaction
8835
+ -------------------------------------------------------------------
8836
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
8837
+ -------------------------------------------------------------------
8838
+ Loading private key...
8839
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
8840
+  (0.1ms) rollback transaction
8841
+  (0.0ms) begin transaction
8842
+ -------------------------------------------------------------------
8843
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
8844
+ -------------------------------------------------------------------
8845
+ Loading private key...
8846
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
8847
+  (0.1ms) rollback transaction
8848
+  (0.0ms) begin transaction
8849
+ -----------------------------------------------------------------
8850
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
8851
+ -----------------------------------------------------------------
8852
+ Loading private key...
8853
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
8854
+  (0.0ms) rollback transaction
8855
+  (0.0ms) begin transaction
8856
+ -----------------------------------------------------------
8857
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
8858
+ -----------------------------------------------------------
8859
+ Loading private key...
8860
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
8861
+  (0.0ms) rollback transaction
8862
+  (0.0ms) begin transaction
8863
+ ---------------------------------
8864
+ LetsencryptPluginTest: test_truth
8865
+ ---------------------------------
8866
+  (0.0ms) rollback transaction
8867
+  (0.1ms) begin transaction
8868
+ ----------------------------------------------------------
8869
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
8870
+ ----------------------------------------------------------
8871
+ Loading private key...
8872
+  (0.1ms) rollback transaction
8873
+  (0.0ms) begin transaction
8874
+ -------------------------------------------------------------
8875
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
8876
+ -------------------------------------------------------------
8877
+ Loading private key...
8878
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
8879
+  (0.1ms) rollback transaction
8880
+  (0.0ms) begin transaction
8881
+ ----------------------------------------------------------
8882
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
8883
+ ----------------------------------------------------------
8884
+ Loading private key...
8885
+  (0.0ms) rollback transaction
8886
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
8887
+  (0.1ms) begin transaction
8888
+ Fixture Delete (0.3ms) DELETE FROM "letsencrypt_plugin_challenges"
8889
+ Fixture Insert (0.4ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:27:08', '2016-01-25 17:27:08', 980190962)
8890
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:27:08', '2016-01-25 17:27:08', 298486374)
8891
+  (73.0ms) commit transaction
8892
+  (0.2ms) begin transaction
8893
+ -----------------------------------------------------------
8894
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
8895
+ -----------------------------------------------------------
8896
+ Loading private key...
8897
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
8898
+  (0.1ms) rollback transaction
8899
+  (0.1ms) begin transaction
8900
+ ---------------------------------
8901
+ LetsencryptPluginTest: test_truth
8902
+ ---------------------------------
8903
+  (0.1ms) rollback transaction
8904
+  (0.1ms) begin transaction
8905
+ -------------------------------------------------------------
8906
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
8907
+ -------------------------------------------------------------
8908
+ Loading private key...
8909
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
8910
+  (0.1ms) rollback transaction
8911
+  (0.1ms) begin transaction
8912
+ ----------------------------------------------------------
8913
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
8914
+ ----------------------------------------------------------
8915
+ Loading private key...
8916
+  (0.2ms) rollback transaction
8917
+  (0.2ms) begin transaction
8918
+ ----------------------------------------------------------
8919
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
8920
+ ----------------------------------------------------------
8921
+ Loading private key...
8922
+  (0.2ms) rollback transaction
8923
+  (0.1ms) begin transaction
8924
+ -----------------------------------------------------------------
8925
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
8926
+ -----------------------------------------------------------------
8927
+ Loading private key...
8928
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
8929
+  (0.1ms) rollback transaction
8930
+  (0.1ms) begin transaction
8931
+ -------------------------------------------------------------------
8932
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
8933
+ -------------------------------------------------------------------
8934
+ Loading private key...
8935
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
8936
+  (0.1ms) rollback transaction
8937
+  (0.1ms) begin transaction
8938
+ -------------------------------------------------------------------
8939
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
8940
+ -------------------------------------------------------------------
8941
+ Loading private key...
8942
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
8943
+  (0.1ms) rollback transaction
8944
+  (0.1ms) begin transaction
8945
+ ------------------------------------------------------------------------
8946
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
8947
+ ------------------------------------------------------------------------
8948
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
8949
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
8950
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
8951
+ Rendered text template (0.1ms)
8952
+ Completed 200 OK in 70ms (Views: 59.1ms | ActiveRecord: 0.3ms)
8953
+  (0.2ms) rollback transaction
8954
+  (0.1ms) begin transaction
8955
+ ----------------------------------------------------------------------------------------------------------------
8956
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
8957
+ ----------------------------------------------------------------------------------------------------------------
8958
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
8959
+ Parameters: {"challenge"=>"dG9rZW4="}
8960
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
8961
+ Challenge failed - Request has invalid length!
8962
+ Rendered text template (0.0ms)
8963
+ Filter chain halted as :validate_length rendered or redirected
8964
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
8965
+  (0.1ms) rollback transaction
8966
+  (0.1ms) begin transaction
8967
+ -----------------------------------------------------------------------------------------------------------------
8968
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
8969
+ -----------------------------------------------------------------------------------------------------------------
8970
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
8971
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
8972
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
8973
+ Challenge failed - Request has invalid length!
8974
+ Rendered text template (0.0ms)
8975
+ Filter chain halted as :validate_length rendered or redirected
8976
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
8977
+  (0.1ms) rollback transaction
8978
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8979
+  (0.1ms) begin transaction
8980
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
8981
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:43:07', '2016-01-25 17:43:07', 980190962)
8982
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:43:07', '2016-01-25 17:43:07', 298486374)
8983
+  (87.7ms) commit transaction
8984
+  (0.2ms) begin transaction
8985
+ ------------------------------------
8986
+ LetsencryptPluginTest: test_register
8987
+ ------------------------------------
8988
+ Loading private key...
8989
+  (0.2ms) rollback transaction
8990
+  (0.1ms) begin transaction
8991
+ ----------------------------------------------------------------------------------------------------------------
8992
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
8993
+ ----------------------------------------------------------------------------------------------------------------
8994
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
8995
+ Parameters: {"challenge"=>"dG9rZW4="}
8996
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
8997
+ Challenge failed - Request has invalid length!
8998
+ Rendered text template (0.0ms)
8999
+ Filter chain halted as :validate_length rendered or redirected
9000
+ Completed 400 Bad Request in 17ms (Views: 8.8ms | ActiveRecord: 0.3ms)
9001
+  (0.1ms) rollback transaction
9002
+  (0.1ms) begin transaction
9003
+ -----------------------------------------------------------------------------------------------------------------
9004
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9005
+ -----------------------------------------------------------------------------------------------------------------
9006
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9007
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9008
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9009
+ Challenge failed - Request has invalid length!
9010
+ Rendered text template (0.0ms)
9011
+ Filter chain halted as :validate_length rendered or redirected
9012
+ Completed 400 Bad Request in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
9013
+  (0.1ms) rollback transaction
9014
+  (0.1ms) begin transaction
9015
+ ------------------------------------------------------------------------
9016
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9017
+ ------------------------------------------------------------------------
9018
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9019
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9020
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9021
+ Rendered text template (0.0ms)
9022
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
9023
+  (0.1ms) rollback transaction
9024
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9025
+  (0.1ms) begin transaction
9026
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9027
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:43:46', '2016-01-25 17:43:46', 980190962)
9028
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:43:46', '2016-01-25 17:43:46', 298486374)
9029
+  (182.6ms) commit transaction
9030
+  (0.2ms) begin transaction
9031
+ ------------------------------------
9032
+ LetsencryptPluginTest: test_register
9033
+ ------------------------------------
9034
+ Loading private key...
9035
+  (0.2ms) rollback transaction
9036
+  (0.1ms) begin transaction
9037
+ ------------------------------------------------------------------------
9038
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9039
+ ------------------------------------------------------------------------
9040
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9041
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9042
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9043
+ Rendered text template (0.0ms)
9044
+ Completed 200 OK in 16ms (Views: 8.4ms | ActiveRecord: 0.3ms)
9045
+  (0.1ms) rollback transaction
9046
+  (0.1ms) begin transaction
9047
+ -----------------------------------------------------------------------------------------------------------------
9048
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9049
+ -----------------------------------------------------------------------------------------------------------------
9050
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9051
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9052
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9053
+ Challenge failed - Request has invalid length!
9054
+ Rendered text template (0.0ms)
9055
+ Filter chain halted as :validate_length rendered or redirected
9056
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9057
+  (0.1ms) rollback transaction
9058
+  (0.1ms) begin transaction
9059
+ ----------------------------------------------------------------------------------------------------------------
9060
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9061
+ ----------------------------------------------------------------------------------------------------------------
9062
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9063
+ Parameters: {"challenge"=>"dG9rZW4="}
9064
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9065
+ Challenge failed - Request has invalid length!
9066
+ Rendered text template (0.0ms)
9067
+ Filter chain halted as :validate_length rendered or redirected
9068
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9069
+  (0.1ms) rollback transaction
9070
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9071
+  (0.1ms) begin transaction
9072
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9073
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:50:03', '2016-01-25 17:50:03', 980190962)
9074
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:50:03', '2016-01-25 17:50:03', 298486374)
9075
+  (97.6ms) commit transaction
9076
+  (0.2ms) begin transaction
9077
+ ------------------------------------
9078
+ LetsencryptPluginTest: test_register
9079
+ ------------------------------------
9080
+ Loading private key...
9081
+  (0.2ms) rollback transaction
9082
+  (0.1ms) begin transaction
9083
+ -----------------------------------------------------------------------------------------------------------------
9084
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9085
+ -----------------------------------------------------------------------------------------------------------------
9086
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9087
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9088
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9089
+ Challenge failed - Request has invalid length!
9090
+ Rendered text template (0.0ms)
9091
+ Filter chain halted as :validate_length rendered or redirected
9092
+ Completed 400 Bad Request in 16ms (Views: 8.7ms | ActiveRecord: 0.3ms)
9093
+  (0.1ms) rollback transaction
9094
+  (0.1ms) begin transaction
9095
+ ----------------------------------------------------------------------------------------------------------------
9096
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9097
+ ----------------------------------------------------------------------------------------------------------------
9098
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9099
+ Parameters: {"challenge"=>"dG9rZW4="}
9100
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9101
+ Challenge failed - Request has invalid length!
9102
+ Rendered text template (0.0ms)
9103
+ Filter chain halted as :validate_length rendered or redirected
9104
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9105
+  (0.1ms) rollback transaction
9106
+  (0.1ms) begin transaction
9107
+ ------------------------------------------------------------------------
9108
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9109
+ ------------------------------------------------------------------------
9110
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9111
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9112
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9113
+ Rendered text template (0.0ms)
9114
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9115
+  (0.1ms) rollback transaction
9116
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9117
+  (0.1ms) begin transaction
9118
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9119
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:52:24', '2016-01-25 17:52:24', 980190962)
9120
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 17:52:24', '2016-01-25 17:52:24', 298486374)
9121
+  (102.1ms) commit transaction
9122
+  (0.2ms) begin transaction
9123
+ ------------------------------------
9124
+ LetsencryptPluginTest: test_register
9125
+ ------------------------------------
9126
+ Loading private key...
9127
+  (0.1ms) rollback transaction
9128
+  (0.1ms) begin transaction
9129
+ ----------------------------------------------------------------------------------------------------------------
9130
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9131
+ ----------------------------------------------------------------------------------------------------------------
9132
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9133
+ Parameters: {"challenge"=>"dG9rZW4="}
9134
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9135
+ Challenge failed - Request has invalid length!
9136
+ Rendered text template (0.1ms)
9137
+ Filter chain halted as :validate_length rendered or redirected
9138
+ Completed 400 Bad Request in 11ms (Views: 6.0ms | ActiveRecord: 0.2ms)
9139
+  (0.1ms) rollback transaction
9140
+  (0.1ms) begin transaction
9141
+ ------------------------------------------------------------------------
9142
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9143
+ ------------------------------------------------------------------------
9144
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9145
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9146
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9147
+ Rendered text template (0.0ms)
9148
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9149
+  (0.1ms) rollback transaction
9150
+  (0.1ms) begin transaction
9151
+ -----------------------------------------------------------------------------------------------------------------
9152
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9153
+ -----------------------------------------------------------------------------------------------------------------
9154
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9155
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9156
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9157
+ Challenge failed - Request has invalid length!
9158
+ Rendered text template (0.0ms)
9159
+ Filter chain halted as :validate_length rendered or redirected
9160
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9161
+  (0.1ms) rollback transaction
9162
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9163
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9164
+  (0.1ms) begin transaction
9165
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9166
+ Fixture Insert (0.2ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:00:47', '2016-01-25 18:00:47', 980190962)
9167
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:00:47', '2016-01-25 18:00:47', 298486374)
9168
+  (86.9ms) commit transaction
9169
+  (0.2ms) begin transaction
9170
+ ------------------------------------------------------------------------
9171
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9172
+ ------------------------------------------------------------------------
9173
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9174
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9175
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9176
+ Rendered text template (0.0ms)
9177
+ Completed 200 OK in 13ms (Views: 7.0ms | ActiveRecord: 0.3ms)
9178
+  (0.1ms) rollback transaction
9179
+  (0.1ms) begin transaction
9180
+ ----------------------------------------------------------------------------------------------------------------
9181
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9182
+ ----------------------------------------------------------------------------------------------------------------
9183
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9184
+ Parameters: {"challenge"=>"dG9rZW4="}
9185
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9186
+ Challenge failed - Request has invalid length!
9187
+ Rendered text template (0.0ms)
9188
+ Filter chain halted as :validate_length rendered or redirected
9189
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9190
+  (0.1ms) rollback transaction
9191
+  (0.1ms) begin transaction
9192
+ -----------------------------------------------------------------------------------------------------------------
9193
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9194
+ -----------------------------------------------------------------------------------------------------------------
9195
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9196
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9197
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9198
+ Challenge failed - Request has invalid length!
9199
+ Rendered text template (0.0ms)
9200
+ Filter chain halted as :validate_length rendered or redirected
9201
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9202
+  (0.1ms) rollback transaction
9203
+  (0.1ms) begin transaction
9204
+ ------------------------------------
9205
+ LetsencryptPluginTest: test_register
9206
+ ------------------------------------
9207
+ Loading private key...
9208
+  (0.1ms) rollback transaction
9209
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9210
+  (0.1ms) begin transaction
9211
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9212
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:04:28', '2016-01-25 18:04:28', 980190962)
9213
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:04:28', '2016-01-25 18:04:28', 298486374)
9214
+  (90.1ms) commit transaction
9215
+  (0.2ms) begin transaction
9216
+ ------------------------------------
9217
+ LetsencryptPluginTest: test_register
9218
+ ------------------------------------
9219
+ Loading private key...
9220
+  (0.2ms) rollback transaction
9221
+  (0.1ms) begin transaction
9222
+ ----------------------------------------------------------------------------------------------------------------
9223
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9224
+ ----------------------------------------------------------------------------------------------------------------
9225
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9226
+ Parameters: {"challenge"=>"dG9rZW4="}
9227
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9228
+ Challenge failed - Request has invalid length!
9229
+ Rendered text template (0.0ms)
9230
+ Filter chain halted as :validate_length rendered or redirected
9231
+ Completed 400 Bad Request in 15ms (Views: 7.7ms | ActiveRecord: 0.3ms)
9232
+  (0.1ms) rollback transaction
9233
+  (0.1ms) begin transaction
9234
+ ------------------------------------------------------------------------
9235
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9236
+ ------------------------------------------------------------------------
9237
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9238
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9239
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9240
+ Rendered text template (0.0ms)
9241
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.3ms)
9242
+  (0.1ms) rollback transaction
9243
+  (0.1ms) begin transaction
9244
+ -----------------------------------------------------------------------------------------------------------------
9245
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9246
+ -----------------------------------------------------------------------------------------------------------------
9247
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9248
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9249
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9250
+ Challenge failed - Request has invalid length!
9251
+ Rendered text template (0.0ms)
9252
+ Filter chain halted as :validate_length rendered or redirected
9253
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9254
+  (0.1ms) rollback transaction
9255
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9256
+  (0.1ms) begin transaction
9257
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9258
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:05:08', '2016-01-25 18:05:08', 980190962)
9259
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:05:08', '2016-01-25 18:05:08', 298486374)
9260
+  (96.3ms) commit transaction
9261
+  (0.2ms) begin transaction
9262
+ ------------------------------------
9263
+ LetsencryptPluginTest: test_register
9264
+ ------------------------------------
9265
+ Loading private key...
9266
+  (0.2ms) rollback transaction
9267
+  (0.1ms) begin transaction
9268
+ -----------------------------------------------------------------------------------------------------------------
9269
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9270
+ -----------------------------------------------------------------------------------------------------------------
9271
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9272
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9273
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9274
+ Challenge failed - Request has invalid length!
9275
+ Rendered text template (0.0ms)
9276
+ Filter chain halted as :validate_length rendered or redirected
9277
+ Completed 400 Bad Request in 22ms (Views: 7.3ms | ActiveRecord: 0.3ms)
9278
+  (0.1ms) rollback transaction
9279
+  (0.1ms) begin transaction
9280
+ ----------------------------------------------------------------------------------------------------------------
9281
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9282
+ ----------------------------------------------------------------------------------------------------------------
9283
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9284
+ Parameters: {"challenge"=>"dG9rZW4="}
9285
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9286
+ Challenge failed - Request has invalid length!
9287
+ Rendered text template (0.0ms)
9288
+ Filter chain halted as :validate_length rendered or redirected
9289
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9290
+  (0.1ms) rollback transaction
9291
+  (0.1ms) begin transaction
9292
+ ------------------------------------------------------------------------
9293
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9294
+ ------------------------------------------------------------------------
9295
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9296
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9297
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9298
+ Rendered text template (0.0ms)
9299
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9300
+  (0.1ms) rollback transaction
9301
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9302
+  (0.1ms) begin transaction
9303
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9304
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:08:31', '2016-01-25 18:08:31', 980190962)
9305
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:08:31', '2016-01-25 18:08:31', 298486374)
9306
+  (89.4ms) commit transaction
9307
+  (0.2ms) begin transaction
9308
+ ------------------------------------
9309
+ LetsencryptPluginTest: test_register
9310
+ ------------------------------------
9311
+ Loading private key...
9312
+  (0.2ms) rollback transaction
9313
+  (0.1ms) begin transaction
9314
+ -----------------------------------------------------------------------------------------------------------------
9315
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9316
+ -----------------------------------------------------------------------------------------------------------------
9317
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9318
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9319
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9320
+ Challenge failed - Request has invalid length!
9321
+ Rendered text template (0.0ms)
9322
+ Filter chain halted as :validate_length rendered or redirected
9323
+ Completed 400 Bad Request in 17ms (Views: 8.9ms | ActiveRecord: 0.3ms)
9324
+  (0.1ms) rollback transaction
9325
+  (0.1ms) begin transaction
9326
+ ------------------------------------------------------------------------
9327
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9328
+ ------------------------------------------------------------------------
9329
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9330
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9331
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9332
+ Rendered text template (0.0ms)
9333
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9334
+  (0.1ms) rollback transaction
9335
+  (0.1ms) begin transaction
9336
+ ----------------------------------------------------------------------------------------------------------------
9337
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9338
+ ----------------------------------------------------------------------------------------------------------------
9339
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9340
+ Parameters: {"challenge"=>"dG9rZW4="}
9341
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9342
+ Challenge failed - Request has invalid length!
9343
+ Rendered text template (0.0ms)
9344
+ Filter chain halted as :validate_length rendered or redirected
9345
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9346
+  (0.1ms) rollback transaction
9347
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9348
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9349
+  (0.1ms) begin transaction
9350
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9351
+ Fixture Insert (0.2ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:14:18', '2016-01-25 18:14:18', 980190962)
9352
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:14:18', '2016-01-25 18:14:18', 298486374)
9353
+  (58.2ms) commit transaction
9354
+  (0.2ms) begin transaction
9355
+ ------------------------------------
9356
+ LetsencryptPluginTest: test_register
9357
+ ------------------------------------
9358
+ Loading private key...
9359
+  (0.1ms) rollback transaction
9360
+  (0.1ms) begin transaction
9361
+ ------------------------------------------------------------------------
9362
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9363
+ ------------------------------------------------------------------------
9364
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9365
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9366
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9367
+ Rendered text template (0.0ms)
9368
+ Completed 200 OK in 16ms (Views: 8.3ms | ActiveRecord: 0.3ms)
9369
+  (0.1ms) rollback transaction
9370
+  (0.1ms) begin transaction
9371
+ -----------------------------------------------------------------------------------------------------------------
9372
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9373
+ -----------------------------------------------------------------------------------------------------------------
9374
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9375
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9376
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9377
+ Challenge failed - Request has invalid length!
9378
+ Rendered text template (0.0ms)
9379
+ Filter chain halted as :validate_length rendered or redirected
9380
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9381
+  (0.1ms) rollback transaction
9382
+  (0.1ms) begin transaction
9383
+ ----------------------------------------------------------------------------------------------------------------
9384
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9385
+ ----------------------------------------------------------------------------------------------------------------
9386
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9387
+ Parameters: {"challenge"=>"dG9rZW4="}
9388
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9389
+ Challenge failed - Request has invalid length!
9390
+ Rendered text template (0.0ms)
9391
+ Filter chain halted as :validate_length rendered or redirected
9392
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9393
+  (0.1ms) rollback transaction
9394
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9395
+  (0.1ms) begin transaction
9396
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9397
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:22:21', '2016-01-25 18:22:21', 980190962)
9398
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:22:21', '2016-01-25 18:22:21', 298486374)
9399
+  (59.4ms) commit transaction
9400
+  (0.3ms) begin transaction
9401
+ ------------------------------------
9402
+ LetsencryptPluginTest: test_register
9403
+ ------------------------------------
9404
+ Loading private key...
9405
+ Trying to register at Let's Encrypt service...
9406
+  (0.2ms) rollback transaction
9407
+  (0.1ms) begin transaction
9408
+ -----------------------------------------------------------------------------------------------------------------
9409
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9410
+ -----------------------------------------------------------------------------------------------------------------
9411
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9412
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9413
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9414
+ Challenge failed - Request has invalid length!
9415
+ Rendered text template (0.0ms)
9416
+ Filter chain halted as :validate_length rendered or redirected
9417
+ Completed 400 Bad Request in 9ms (Views: 4.7ms | ActiveRecord: 0.2ms)
9418
+  (0.1ms) rollback transaction
9419
+  (0.0ms) begin transaction
9420
+ ----------------------------------------------------------------------------------------------------------------
9421
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9422
+ ----------------------------------------------------------------------------------------------------------------
9423
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9424
+ Parameters: {"challenge"=>"dG9rZW4="}
9425
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9426
+ Challenge failed - Request has invalid length!
9427
+ Rendered text template (0.0ms)
9428
+ Filter chain halted as :validate_length rendered or redirected
9429
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9430
+  (0.1ms) rollback transaction
9431
+  (0.0ms) begin transaction
9432
+ ------------------------------------------------------------------------
9433
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9434
+ ------------------------------------------------------------------------
9435
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9436
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9437
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9438
+ Rendered text template (0.0ms)
9439
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9440
+  (0.1ms) rollback transaction
9441
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9442
+  (0.1ms) begin transaction
9443
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9444
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:24:21', '2016-01-25 18:24:21', 980190962)
9445
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:24:21', '2016-01-25 18:24:21', 298486374)
9446
+  (198.4ms) commit transaction
9447
+  (0.2ms) begin transaction
9448
+ ------------------------------------
9449
+ LetsencryptPluginTest: test_register
9450
+ ------------------------------------
9451
+ Loading private key...
9452
+ Trying to register at Let's Encrypt service...
9453
+  (0.1ms) rollback transaction
9454
+  (0.1ms) begin transaction
9455
+ ------------------------------------------------------------------------
9456
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9457
+ ------------------------------------------------------------------------
9458
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9459
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9460
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9461
+ Rendered text template (0.0ms)
9462
+ Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 0.2ms)
9463
+  (0.1ms) rollback transaction
9464
+  (0.1ms) begin transaction
9465
+ -----------------------------------------------------------------------------------------------------------------
9466
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9467
+ -----------------------------------------------------------------------------------------------------------------
9468
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9469
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9470
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9471
+ Challenge failed - Request has invalid length!
9472
+ Rendered text template (0.0ms)
9473
+ Filter chain halted as :validate_length rendered or redirected
9474
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9475
+  (0.1ms) rollback transaction
9476
+  (0.1ms) begin transaction
9477
+ ----------------------------------------------------------------------------------------------------------------
9478
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9479
+ ----------------------------------------------------------------------------------------------------------------
9480
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9481
+ Parameters: {"challenge"=>"dG9rZW4="}
9482
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9483
+ Challenge failed - Request has invalid length!
9484
+ Rendered text template (0.0ms)
9485
+ Filter chain halted as :validate_length rendered or redirected
9486
+ Completed 400 Bad Request in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9487
+  (0.1ms) rollback transaction
9488
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9489
+  (0.1ms) begin transaction
9490
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9491
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:25:16', '2016-01-25 18:25:16', 980190962)
9492
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:25:16', '2016-01-25 18:25:16', 298486374)
9493
+  (77.0ms) commit transaction
9494
+  (0.2ms) begin transaction
9495
+ ------------------------------------------------------------------------
9496
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9497
+ ------------------------------------------------------------------------
9498
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9499
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9500
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9501
+ Rendered text template (0.1ms)
9502
+ Completed 200 OK in 15ms (Views: 7.6ms | ActiveRecord: 0.3ms)
9503
+  (0.2ms) rollback transaction
9504
+  (0.1ms) begin transaction
9505
+ -----------------------------------------------------------------------------------------------------------------
9506
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9507
+ -----------------------------------------------------------------------------------------------------------------
9508
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9509
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9510
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9511
+ Challenge failed - Request has invalid length!
9512
+ Rendered text template (0.1ms)
9513
+ Filter chain halted as :validate_length rendered or redirected
9514
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
9515
+  (0.1ms) rollback transaction
9516
+  (0.1ms) begin transaction
9517
+ ----------------------------------------------------------------------------------------------------------------
9518
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9519
+ ----------------------------------------------------------------------------------------------------------------
9520
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9521
+ Parameters: {"challenge"=>"dG9rZW4="}
9522
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9523
+ Challenge failed - Request has invalid length!
9524
+ Rendered text template (0.0ms)
9525
+ Filter chain halted as :validate_length rendered or redirected
9526
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
9527
+  (0.1ms) rollback transaction
9528
+  (0.1ms) begin transaction
9529
+ ------------------------------------
9530
+ LetsencryptPluginTest: test_register
9531
+ ------------------------------------
9532
+ Loading private key...
9533
+ Trying to register at Let's Encrypt service...
9534
+ Already registered.
9535
+ Sending authorization request for: example.com...
9536
+  (0.1ms) rollback transaction
9537
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9538
+  (0.1ms) begin transaction
9539
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9540
+ Fixture Insert (0.2ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:26:00', '2016-01-25 18:26:00', 980190962)
9541
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:26:00', '2016-01-25 18:26:00', 298486374)
9542
+  (142.6ms) commit transaction
9543
+  (0.1ms) begin transaction
9544
+ ------------------------------------
9545
+ LetsencryptPluginTest: test_register
9546
+ ------------------------------------
9547
+ Loading private key...
9548
+ Trying to register at Let's Encrypt service...
9549
+ Already registered.
9550
+ Sending authorization request for: example.com...
9551
+  (0.1ms) rollback transaction
9552
+  (0.1ms) begin transaction
9553
+ ------------------------------------------------------------------------
9554
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9555
+ ------------------------------------------------------------------------
9556
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9557
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9558
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9559
+ Rendered text template (0.0ms)
9560
+ Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 0.2ms)
9561
+  (0.1ms) rollback transaction
9562
+  (0.0ms) begin transaction
9563
+ -----------------------------------------------------------------------------------------------------------------
9564
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9565
+ -----------------------------------------------------------------------------------------------------------------
9566
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9567
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9568
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9569
+ Challenge failed - Request has invalid length!
9570
+ Rendered text template (0.0ms)
9571
+ Filter chain halted as :validate_length rendered or redirected
9572
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9573
+  (0.1ms) rollback transaction
9574
+  (0.0ms) begin transaction
9575
+ ----------------------------------------------------------------------------------------------------------------
9576
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9577
+ ----------------------------------------------------------------------------------------------------------------
9578
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9579
+ Parameters: {"challenge"=>"dG9rZW4="}
9580
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9581
+ Challenge failed - Request has invalid length!
9582
+ Rendered text template (0.0ms)
9583
+ Filter chain halted as :validate_length rendered or redirected
9584
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9585
+  (0.1ms) rollback transaction
9586
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9587
+  (0.1ms) begin transaction
9588
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9589
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:30:41', '2016-01-25 18:30:41', 980190962)
9590
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 18:30:41', '2016-01-25 18:30:41', 298486374)
9591
+  (98.1ms) commit transaction
9592
+  (0.1ms) begin transaction
9593
+ ------------------------------------
9594
+ LetsencryptPluginTest: test_register
9595
+ ------------------------------------
9596
+ Loading private key...
9597
+ Trying to register at Let's Encrypt service...
9598
+ Already registered.
9599
+  (0.1ms) rollback transaction
9600
+  (0.1ms) begin transaction
9601
+ -----------------------------------------------------------------------------------------------------------------
9602
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9603
+ -----------------------------------------------------------------------------------------------------------------
9604
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9605
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9606
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9607
+ Challenge failed - Request has invalid length!
9608
+ Rendered text template (0.0ms)
9609
+ Filter chain halted as :validate_length rendered or redirected
9610
+ Completed 400 Bad Request in 11ms (Views: 5.6ms | ActiveRecord: 0.2ms)
9611
+  (0.1ms) rollback transaction
9612
+  (0.1ms) begin transaction
9613
+ ------------------------------------------------------------------------
9614
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9615
+ ------------------------------------------------------------------------
9616
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9617
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9618
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9619
+ Rendered text template (0.0ms)
9620
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9621
+  (0.1ms) rollback transaction
9622
+  (0.1ms) begin transaction
9623
+ ----------------------------------------------------------------------------------------------------------------
9624
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9625
+ ----------------------------------------------------------------------------------------------------------------
9626
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9627
+ Parameters: {"challenge"=>"dG9rZW4="}
9628
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9629
+ Challenge failed - Request has invalid length!
9630
+ Rendered text template (0.0ms)
9631
+ Filter chain halted as :validate_length rendered or redirected
9632
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9633
+  (0.1ms) rollback transaction
9634
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9635
+  (0.1ms) begin transaction
9636
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9637
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:10:08', '2016-01-25 19:10:08', 980190962)
9638
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:10:08', '2016-01-25 19:10:08', 298486374)
9639
+  (91.9ms) commit transaction
9640
+  (0.1ms) begin transaction
9641
+ -------------------------------------------------------------------
9642
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
9643
+ -------------------------------------------------------------------
9644
+  (0.1ms) rollback transaction
9645
+  (0.1ms) begin transaction
9646
+ -----------------------------------------------------------------
9647
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
9648
+ -----------------------------------------------------------------
9649
+  (0.1ms) rollback transaction
9650
+  (0.1ms) begin transaction
9651
+ -----------------------------------------------------------
9652
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
9653
+ -----------------------------------------------------------
9654
+  (0.1ms) rollback transaction
9655
+  (0.1ms) begin transaction
9656
+ -------------------------------------------------------------
9657
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
9658
+ -------------------------------------------------------------
9659
+  (0.1ms) rollback transaction
9660
+  (0.1ms) begin transaction
9661
+ ---------------------------------
9662
+ LetsencryptPluginTest: test_truth
9663
+ ---------------------------------
9664
+  (0.1ms) rollback transaction
9665
+  (0.1ms) begin transaction
9666
+ ------------------------------------
9667
+ LetsencryptPluginTest: test_register
9668
+ ------------------------------------
9669
+ Loading private key...
9670
+ Trying to register at Let's Encrypt service...
9671
+ Already registered.
9672
+  (0.1ms) rollback transaction
9673
+  (0.1ms) begin transaction
9674
+ ----------------------------------------------------------
9675
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
9676
+ ----------------------------------------------------------
9677
+  (0.1ms) rollback transaction
9678
+  (0.1ms) begin transaction
9679
+ -------------------------------------------------------------------
9680
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
9681
+ -------------------------------------------------------------------
9682
+  (0.1ms) rollback transaction
9683
+  (0.1ms) begin transaction
9684
+ ----------------------------------------------------------
9685
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
9686
+ ----------------------------------------------------------
9687
+  (0.1ms) rollback transaction
9688
+  (0.1ms) begin transaction
9689
+ -----------------------------------------------------------------------------------------------------------------
9690
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9691
+ -----------------------------------------------------------------------------------------------------------------
9692
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9693
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9694
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9695
+ Challenge failed - Request has invalid length!
9696
+ Rendered text template (0.0ms)
9697
+ Filter chain halted as :validate_length rendered or redirected
9698
+ Completed 400 Bad Request in 11ms (Views: 5.8ms | ActiveRecord: 0.2ms)
9699
+  (0.1ms) rollback transaction
9700
+  (0.1ms) begin transaction
9701
+ ----------------------------------------------------------------------------------------------------------------
9702
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9703
+ ----------------------------------------------------------------------------------------------------------------
9704
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9705
+ Parameters: {"challenge"=>"dG9rZW4="}
9706
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9707
+ Challenge failed - Request has invalid length!
9708
+ Rendered text template (0.0ms)
9709
+ Filter chain halted as :validate_length rendered or redirected
9710
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9711
+  (0.1ms) rollback transaction
9712
+  (0.0ms) begin transaction
9713
+ ------------------------------------------------------------------------
9714
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9715
+ ------------------------------------------------------------------------
9716
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9717
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9718
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9719
+ Rendered text template (0.0ms)
9720
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
9721
+  (0.1ms) rollback transaction
9722
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9723
+  (0.1ms) begin transaction
9724
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9725
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:11:10', '2016-01-25 19:11:10', 980190962)
9726
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:11:10', '2016-01-25 19:11:10', 298486374)
9727
+  (49.9ms) commit transaction
9728
+  (0.2ms) begin transaction
9729
+ -----------------------------------------------------------------------------------------------------------------
9730
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9731
+ -----------------------------------------------------------------------------------------------------------------
9732
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9733
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9734
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9735
+ Challenge failed - Request has invalid length!
9736
+ Rendered text template (0.0ms)
9737
+ Filter chain halted as :validate_length rendered or redirected
9738
+ Completed 400 Bad Request in 14ms (Views: 7.2ms | ActiveRecord: 0.3ms)
9739
+  (0.1ms) rollback transaction
9740
+  (0.1ms) begin transaction
9741
+ ----------------------------------------------------------------------------------------------------------------
9742
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9743
+ ----------------------------------------------------------------------------------------------------------------
9744
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9745
+ Parameters: {"challenge"=>"dG9rZW4="}
9746
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9747
+ Challenge failed - Request has invalid length!
9748
+ Rendered text template (0.0ms)
9749
+ Filter chain halted as :validate_length rendered or redirected
9750
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9751
+  (0.1ms) rollback transaction
9752
+  (0.1ms) begin transaction
9753
+ ------------------------------------------------------------------------
9754
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9755
+ ------------------------------------------------------------------------
9756
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9757
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9758
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9759
+ Rendered text template (0.0ms)
9760
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9761
+  (0.1ms) rollback transaction
9762
+  (0.1ms) begin transaction
9763
+ -------------------------------------------------------------------
9764
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
9765
+ -------------------------------------------------------------------
9766
+ Loading private key...
9767
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
9768
+  (0.1ms) rollback transaction
9769
+  (0.1ms) begin transaction
9770
+ -----------------------------------------------------------------
9771
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
9772
+ -----------------------------------------------------------------
9773
+ Loading private key...
9774
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
9775
+  (0.1ms) rollback transaction
9776
+  (0.1ms) begin transaction
9777
+ -------------------------------------------------------------
9778
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
9779
+ -------------------------------------------------------------
9780
+ Loading private key...
9781
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
9782
+  (0.1ms) rollback transaction
9783
+  (0.1ms) begin transaction
9784
+ ----------------------------------------------------------
9785
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
9786
+ ----------------------------------------------------------
9787
+ Loading private key...
9788
+  (0.1ms) rollback transaction
9789
+  (0.1ms) begin transaction
9790
+ -------------------------------------------------------------------
9791
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
9792
+ -------------------------------------------------------------------
9793
+ Loading private key...
9794
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
9795
+  (0.1ms) rollback transaction
9796
+  (0.1ms) begin transaction
9797
+ -----------------------------------------------------------
9798
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
9799
+ -----------------------------------------------------------
9800
+ Loading private key...
9801
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
9802
+  (0.1ms) rollback transaction
9803
+  (0.1ms) begin transaction
9804
+ ----------------------------------------------------------
9805
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
9806
+ ----------------------------------------------------------
9807
+ Loading private key...
9808
+  (0.1ms) rollback transaction
9809
+  (0.1ms) begin transaction
9810
+ ------------------------------------
9811
+ LetsencryptPluginTest: test_register
9812
+ ------------------------------------
9813
+ Loading private key...
9814
+ Trying to register at Let's Encrypt service...
9815
+ Already registered.
9816
+  (0.1ms) rollback transaction
9817
+  (0.1ms) begin transaction
9818
+ ---------------------------------
9819
+ LetsencryptPluginTest: test_truth
9820
+ ---------------------------------
9821
+  (0.1ms) rollback transaction
9822
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9823
+  (0.1ms) begin transaction
9824
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9825
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:18:42', '2016-01-25 19:18:42', 980190962)
9826
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:18:42', '2016-01-25 19:18:42', 298486374)
9827
+  (104.0ms) commit transaction
9828
+  (0.1ms) begin transaction
9829
+ ----------------------------------------------------------------------------------------------------------------
9830
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
9831
+ ----------------------------------------------------------------------------------------------------------------
9832
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9833
+ Parameters: {"challenge"=>"dG9rZW4="}
9834
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9835
+ Challenge failed - Request has invalid length!
9836
+ Rendered text template (0.0ms)
9837
+ Filter chain halted as :validate_length rendered or redirected
9838
+ Completed 400 Bad Request in 11ms (Views: 5.5ms | ActiveRecord: 0.2ms)
9839
+  (0.1ms) rollback transaction
9840
+  (0.1ms) begin transaction
9841
+ ------------------------------------------------------------------------
9842
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9843
+ ------------------------------------------------------------------------
9844
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9845
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9846
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9847
+ Rendered text template (0.0ms)
9848
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
9849
+  (0.1ms) rollback transaction
9850
+  (0.1ms) begin transaction
9851
+ -----------------------------------------------------------------------------------------------------------------
9852
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
9853
+ -----------------------------------------------------------------------------------------------------------------
9854
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9855
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
9856
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9857
+ Challenge failed - Request has invalid length!
9858
+ Rendered text template (0.0ms)
9859
+ Filter chain halted as :validate_length rendered or redirected
9860
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
9861
+  (0.1ms) rollback transaction
9862
+  (0.1ms) begin transaction
9863
+ -------------------------------------------------------------------
9864
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
9865
+ -------------------------------------------------------------------
9866
+ Loading private key...
9867
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
9868
+  (0.1ms) rollback transaction
9869
+  (0.0ms) begin transaction
9870
+ -------------------------------------------------------------------
9871
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
9872
+ -------------------------------------------------------------------
9873
+ Loading private key...
9874
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
9875
+  (0.1ms) rollback transaction
9876
+  (0.1ms) begin transaction
9877
+ ------------------------------------
9878
+ LetsencryptPluginTest: test_register
9879
+ ------------------------------------
9880
+ Loading private key...
9881
+ Trying to register at Let's Encrypt service...
9882
+ Already registered.
9883
+  (0.1ms) rollback transaction
9884
+  (0.0ms) begin transaction
9885
+ -----------------------------------------------------------------
9886
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
9887
+ -----------------------------------------------------------------
9888
+ Loading private key...
9889
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
9890
+  (0.0ms) rollback transaction
9891
+  (0.0ms) begin transaction
9892
+ -----------------------------------------------------------
9893
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
9894
+ -----------------------------------------------------------
9895
+ Loading private key...
9896
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
9897
+  (0.0ms) rollback transaction
9898
+  (0.0ms) begin transaction
9899
+ ----------------------------------------------------------
9900
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
9901
+ ----------------------------------------------------------
9902
+ Loading private key...
9903
+  (0.0ms) rollback transaction
9904
+  (0.0ms) begin transaction
9905
+ ----------------------------------------------------------
9906
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
9907
+ ----------------------------------------------------------
9908
+ Loading private key...
9909
+  (0.0ms) rollback transaction
9910
+  (0.0ms) begin transaction
9911
+ ---------------------------------
9912
+ LetsencryptPluginTest: test_truth
9913
+ ---------------------------------
9914
+  (0.0ms) rollback transaction
9915
+  (0.0ms) begin transaction
9916
+ -------------------------------------------------------------
9917
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
9918
+ -------------------------------------------------------------
9919
+ Loading private key...
9920
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
9921
+  (0.0ms) rollback transaction
9922
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9923
+  (0.1ms) begin transaction
9924
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
9925
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:22:33', '2016-01-25 19:22:33', 980190962)
9926
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:22:33', '2016-01-25 19:22:33', 298486374)
9927
+  (97.0ms) commit transaction
9928
+  (0.2ms) begin transaction
9929
+ -----------------------------------------------------------------
9930
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
9931
+ -----------------------------------------------------------------
9932
+ Loading private key...
9933
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
9934
+  (0.1ms) rollback transaction
9935
+  (0.1ms) begin transaction
9936
+ ----------------------------------------------------------
9937
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
9938
+ ----------------------------------------------------------
9939
+ Loading private key...
9940
+  (0.1ms) rollback transaction
9941
+  (0.1ms) begin transaction
9942
+ ----------------------------------------------------------
9943
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
9944
+ ----------------------------------------------------------
9945
+ Loading private key...
9946
+  (0.1ms) rollback transaction
9947
+  (0.1ms) begin transaction
9948
+ -------------------------------------------------------------------
9949
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
9950
+ -------------------------------------------------------------------
9951
+ Loading private key...
9952
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
9953
+  (0.1ms) rollback transaction
9954
+  (0.1ms) begin transaction
9955
+ ---------------------------------
9956
+ LetsencryptPluginTest: test_truth
9957
+ ---------------------------------
9958
+  (0.1ms) rollback transaction
9959
+  (0.1ms) begin transaction
9960
+ ------------------------------------
9961
+ LetsencryptPluginTest: test_register
9962
+ ------------------------------------
9963
+ Loading private key...
9964
+ Trying to register at Let's Encrypt service...
9965
+ Already registered.
9966
+  (0.1ms) rollback transaction
9967
+  (0.1ms) begin transaction
9968
+ -------------------------------------------------------------
9969
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
9970
+ -------------------------------------------------------------
9971
+ Loading private key...
9972
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
9973
+  (0.1ms) rollback transaction
9974
+  (0.1ms) begin transaction
9975
+ -----------------------------------------------------------
9976
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
9977
+ -----------------------------------------------------------
9978
+ Loading private key...
9979
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
9980
+  (0.1ms) rollback transaction
9981
+  (0.1ms) begin transaction
9982
+ -------------------------------------------------------------------
9983
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
9984
+ -------------------------------------------------------------------
9985
+ Loading private key...
9986
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
9987
+  (0.1ms) rollback transaction
9988
+  (0.1ms) begin transaction
9989
+ ------------------------------------------------------------------------
9990
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
9991
+ ------------------------------------------------------------------------
9992
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
9993
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
9994
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
9995
+ Rendered text template (0.0ms)
9996
+ Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 0.2ms)
9997
+  (0.1ms) rollback transaction
9998
+  (0.1ms) begin transaction
9999
+ -----------------------------------------------------------------------------------------------------------------
10000
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10001
+ -----------------------------------------------------------------------------------------------------------------
10002
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10003
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10004
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10005
+ Challenge failed - Request has invalid length!
10006
+ Rendered text template (0.0ms)
10007
+ Filter chain halted as :validate_length rendered or redirected
10008
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
10009
+  (0.1ms) rollback transaction
10010
+  (0.1ms) begin transaction
10011
+ ----------------------------------------------------------------------------------------------------------------
10012
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10013
+ ----------------------------------------------------------------------------------------------------------------
10014
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10015
+ Parameters: {"challenge"=>"dG9rZW4="}
10016
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10017
+ Challenge failed - Request has invalid length!
10018
+ Rendered text template (0.0ms)
10019
+ Filter chain halted as :validate_length rendered or redirected
10020
+ Completed 400 Bad Request in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
10021
+  (0.1ms) rollback transaction
10022
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10023
+  (0.1ms) begin transaction
10024
+ Fixture Delete (0.3ms) DELETE FROM "letsencrypt_plugin_challenges"
10025
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:47:37', '2016-01-25 19:47:37', 980190962)
10026
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:47:37', '2016-01-25 19:47:37', 298486374)
10027
+  (97.2ms) commit transaction
10028
+  (0.1ms) begin transaction
10029
+ -----------------------------------------------------------------------------------------------------------------
10030
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10031
+ -----------------------------------------------------------------------------------------------------------------
10032
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10033
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10034
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10035
+ Challenge failed - Request has invalid length!
10036
+ Rendered text template (0.0ms)
10037
+ Filter chain halted as :validate_length rendered or redirected
10038
+ Completed 400 Bad Request in 13ms (Views: 7.4ms | ActiveRecord: 0.2ms)
10039
+  (0.1ms) rollback transaction
10040
+  (0.1ms) begin transaction
10041
+ ------------------------------------------------------------------------
10042
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
10043
+ ------------------------------------------------------------------------
10044
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10045
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
10046
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10047
+ Rendered text template (0.0ms)
10048
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
10049
+  (0.1ms) rollback transaction
10050
+  (0.1ms) begin transaction
10051
+ ----------------------------------------------------------------------------------------------------------------
10052
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10053
+ ----------------------------------------------------------------------------------------------------------------
10054
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10055
+ Parameters: {"challenge"=>"dG9rZW4="}
10056
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10057
+ Challenge failed - Request has invalid length!
10058
+ Rendered text template (0.0ms)
10059
+ Filter chain halted as :validate_length rendered or redirected
10060
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
10061
+  (0.1ms) rollback transaction
10062
+  (0.1ms) begin transaction
10063
+ -----------------------------------------------------------------
10064
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
10065
+ -----------------------------------------------------------------
10066
+ Loading private key...
10067
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
10068
+  (0.1ms) rollback transaction
10069
+  (0.1ms) begin transaction
10070
+ ---------------------------------
10071
+ LetsencryptPluginTest: test_truth
10072
+ ---------------------------------
10073
+  (0.1ms) rollback transaction
10074
+  (0.1ms) begin transaction
10075
+ ----------------------------------------------------------
10076
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
10077
+ ----------------------------------------------------------
10078
+ Loading private key...
10079
+  (0.1ms) rollback transaction
10080
+  (0.1ms) begin transaction
10081
+ -------------------------------------------------------------------
10082
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
10083
+ -------------------------------------------------------------------
10084
+ Loading private key...
10085
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
10086
+  (0.1ms) rollback transaction
10087
+  (0.1ms) begin transaction
10088
+ ------------------------------------
10089
+ LetsencryptPluginTest: test_register
10090
+ ------------------------------------
10091
+ Loading private key...
10092
+ Trying to register at Let's Encrypt service...
10093
+ Already registered.
10094
+  (0.1ms) rollback transaction
10095
+  (0.1ms) begin transaction
10096
+ -----------------------------------------------------------
10097
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
10098
+ -----------------------------------------------------------
10099
+ Loading private key...
10100
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10101
+  (0.1ms) rollback transaction
10102
+  (0.1ms) begin transaction
10103
+ -------------------------------------------------------------------
10104
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
10105
+ -------------------------------------------------------------------
10106
+ Loading private key...
10107
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
10108
+  (0.1ms) rollback transaction
10109
+  (0.1ms) begin transaction
10110
+ ----------------------------------------------------------
10111
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
10112
+ ----------------------------------------------------------
10113
+ Loading private key...
10114
+  (0.1ms) rollback transaction
10115
+  (0.1ms) begin transaction
10116
+ -------------------------------------------------------------
10117
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
10118
+ -------------------------------------------------------------
10119
+ Loading private key...
10120
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10121
+  (0.1ms) rollback transaction
10122
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10123
+  (0.1ms) begin transaction
10124
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
10125
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:49:07', '2016-01-25 19:49:07', 980190962)
10126
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:49:07', '2016-01-25 19:49:07', 298486374)
10127
+  (123.4ms) commit transaction
10128
+  (0.1ms) begin transaction
10129
+ ----------------------------------------------------------------------------------------------------------------
10130
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10131
+ ----------------------------------------------------------------------------------------------------------------
10132
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10133
+ Parameters: {"challenge"=>"dG9rZW4="}
10134
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10135
+ Challenge failed - Request has invalid length!
10136
+ Rendered text template (0.0ms)
10137
+ Filter chain halted as :validate_length rendered or redirected
10138
+ Completed 400 Bad Request in 8ms (Views: 4.4ms | ActiveRecord: 0.2ms)
10139
+  (0.1ms) rollback transaction
10140
+  (0.1ms) begin transaction
10141
+ -----------------------------------------------------------------------------------------------------------------
10142
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10143
+ -----------------------------------------------------------------------------------------------------------------
10144
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10145
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10146
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10147
+ Challenge failed - Request has invalid length!
10148
+ Rendered text template (0.0ms)
10149
+ Filter chain halted as :validate_length rendered or redirected
10150
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
10151
+  (0.1ms) rollback transaction
10152
+  (0.0ms) begin transaction
10153
+ ------------------------------------------------------------------------
10154
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
10155
+ ------------------------------------------------------------------------
10156
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10157
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
10158
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10159
+ Rendered text template (0.0ms)
10160
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
10161
+  (0.1ms) rollback transaction
10162
+  (0.0ms) begin transaction
10163
+ -------------------------------------------------------------------
10164
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
10165
+ -------------------------------------------------------------------
10166
+ Loading private key...
10167
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
10168
+  (0.0ms) rollback transaction
10169
+  (0.0ms) begin transaction
10170
+ ---------------------------------
10171
+ LetsencryptPluginTest: test_truth
10172
+ ---------------------------------
10173
+  (0.0ms) rollback transaction
10174
+  (0.1ms) begin transaction
10175
+ ----------------------------------------------------------
10176
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
10177
+ ----------------------------------------------------------
10178
+ Loading private key...
10179
+  (0.0ms) rollback transaction
10180
+  (0.0ms) begin transaction
10181
+ ----------------------------------------------------------
10182
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
10183
+ ----------------------------------------------------------
10184
+ Loading private key...
10185
+  (0.0ms) rollback transaction
10186
+  (0.1ms) begin transaction
10187
+ -------------------------------------------------------------------
10188
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
10189
+ -------------------------------------------------------------------
10190
+ Loading private key...
10191
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
10192
+  (0.0ms) rollback transaction
10193
+  (0.0ms) begin transaction
10194
+ --------------------------------------------------
10195
+ LetsencryptPluginTest: test_register_and_authorize
10196
+ --------------------------------------------------
10197
+ Loading private key...
10198
+ Trying to register at Let's Encrypt service...
10199
+ Already registered.
10200
+ Sending authorization request for: example.com...
10201
+  (0.1ms) rollback transaction
10202
+  (0.1ms) begin transaction
10203
+ -----------------------------------------------------------
10204
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
10205
+ -----------------------------------------------------------
10206
+ Loading private key...
10207
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10208
+  (0.0ms) rollback transaction
10209
+  (0.0ms) begin transaction
10210
+ -------------------------------------------------------------
10211
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
10212
+ -------------------------------------------------------------
10213
+ Loading private key...
10214
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10215
+  (0.0ms) rollback transaction
10216
+  (0.0ms) begin transaction
10217
+ ------------------------------------
10218
+ LetsencryptPluginTest: test_register
10219
+ ------------------------------------
10220
+ Loading private key...
10221
+ Trying to register at Let's Encrypt service...
10222
+ Already registered.
10223
+  (0.1ms) rollback transaction
10224
+  (0.0ms) begin transaction
10225
+ -----------------------------------------------------------------
10226
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
10227
+ -----------------------------------------------------------------
10228
+ Loading private key...
10229
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
10230
+  (0.0ms) rollback transaction
10231
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10232
+  (0.1ms) begin transaction
10233
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
10234
+ Fixture Insert (0.2ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:51:01', '2016-01-25 19:51:01', 980190962)
10235
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:51:01', '2016-01-25 19:51:01', 298486374)
10236
+  (87.6ms) commit transaction
10237
+  (0.1ms) begin transaction
10238
+ -------------------------------------------------------------
10239
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
10240
+ -------------------------------------------------------------
10241
+ Loading private key...
10242
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10243
+  (0.1ms) rollback transaction
10244
+  (0.0ms) begin transaction
10245
+ ------------------------------------
10246
+ LetsencryptPluginTest: test_register
10247
+ ------------------------------------
10248
+ Loading private key...
10249
+ Trying to register at Let's Encrypt service...
10250
+ Already registered.
10251
+  (0.1ms) rollback transaction
10252
+  (0.1ms) begin transaction
10253
+ ----------------------------------------------------------
10254
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
10255
+ ----------------------------------------------------------
10256
+ Loading private key...
10257
+  (0.0ms) rollback transaction
10258
+  (0.1ms) begin transaction
10259
+ --------------------------------------------------
10260
+ LetsencryptPluginTest: test_register_and_authorize
10261
+ --------------------------------------------------
10262
+ Loading private key...
10263
+ Trying to register at Let's Encrypt service...
10264
+ Already registered.
10265
+ Sending authorization request for: example.com...
10266
+  (0.1ms) rollback transaction
10267
+  (0.1ms) begin transaction
10268
+ -----------------------------------------------------------------
10269
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
10270
+ -----------------------------------------------------------------
10271
+ Loading private key...
10272
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
10273
+  (0.0ms) rollback transaction
10274
+  (0.0ms) begin transaction
10275
+ -------------------------------------------------------------------
10276
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
10277
+ -------------------------------------------------------------------
10278
+ Loading private key...
10279
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
10280
+  (0.0ms) rollback transaction
10281
+  (0.0ms) begin transaction
10282
+ -----------------------------------------------------------
10283
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
10284
+ -----------------------------------------------------------
10285
+ Loading private key...
10286
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10287
+  (0.0ms) rollback transaction
10288
+  (0.0ms) begin transaction
10289
+ ---------------------------------
10290
+ LetsencryptPluginTest: test_truth
10291
+ ---------------------------------
10292
+  (0.0ms) rollback transaction
10293
+  (0.0ms) begin transaction
10294
+ -------------------------------------------------------------------
10295
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
10296
+ -------------------------------------------------------------------
10297
+ Loading private key...
10298
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
10299
+  (0.0ms) rollback transaction
10300
+  (0.0ms) begin transaction
10301
+ ----------------------------------------------------------
10302
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
10303
+ ----------------------------------------------------------
10304
+ Loading private key...
10305
+  (0.0ms) rollback transaction
10306
+  (0.1ms) begin transaction
10307
+ ------------------------------------------------------------------------
10308
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
10309
+ ------------------------------------------------------------------------
10310
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10311
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
10312
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10313
+ Rendered text template (0.0ms)
10314
+ Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 0.2ms)
10315
+  (0.1ms) rollback transaction
10316
+  (0.1ms) begin transaction
10317
+ -----------------------------------------------------------------------------------------------------------------
10318
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10319
+ -----------------------------------------------------------------------------------------------------------------
10320
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10321
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10322
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10323
+ Challenge failed - Request has invalid length!
10324
+ Rendered text template (0.0ms)
10325
+ Filter chain halted as :validate_length rendered or redirected
10326
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
10327
+  (0.1ms) rollback transaction
10328
+  (0.0ms) begin transaction
10329
+ ----------------------------------------------------------------------------------------------------------------
10330
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10331
+ ----------------------------------------------------------------------------------------------------------------
10332
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10333
+ Parameters: {"challenge"=>"dG9rZW4="}
10334
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10335
+ Challenge failed - Request has invalid length!
10336
+ Rendered text template (0.0ms)
10337
+ Filter chain halted as :validate_length rendered or redirected
10338
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
10339
+  (0.1ms) rollback transaction
10340
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10341
+  (0.1ms) begin transaction
10342
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
10343
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:53:11', '2016-01-25 19:53:11', 980190962)
10344
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 19:53:11', '2016-01-25 19:53:11', 298486374)
10345
+  (102.0ms) commit transaction
10346
+  (0.1ms) begin transaction
10347
+ ------------------------------------------------------------------------
10348
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
10349
+ ------------------------------------------------------------------------
10350
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10351
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
10352
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10353
+ Rendered text template (0.0ms)
10354
+ Completed 200 OK in 15ms (Views: 8.4ms | ActiveRecord: 0.2ms)
10355
+  (0.1ms) rollback transaction
10356
+  (0.1ms) begin transaction
10357
+ -----------------------------------------------------------------------------------------------------------------
10358
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10359
+ -----------------------------------------------------------------------------------------------------------------
10360
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10361
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10362
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10363
+ Challenge failed - Request has invalid length!
10364
+ Rendered text template (0.0ms)
10365
+ Filter chain halted as :validate_length rendered or redirected
10366
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
10367
+  (0.1ms) rollback transaction
10368
+  (0.1ms) begin transaction
10369
+ ----------------------------------------------------------------------------------------------------------------
10370
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10371
+ ----------------------------------------------------------------------------------------------------------------
10372
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10373
+ Parameters: {"challenge"=>"dG9rZW4="}
10374
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10375
+ Challenge failed - Request has invalid length!
10376
+ Rendered text template (0.0ms)
10377
+ Filter chain halted as :validate_length rendered or redirected
10378
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
10379
+  (0.1ms) rollback transaction
10380
+  (0.1ms) begin transaction
10381
+ ----------------------------------------------------------
10382
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
10383
+ ----------------------------------------------------------
10384
+ Loading private key...
10385
+  (0.1ms) rollback transaction
10386
+  (0.0ms) begin transaction
10387
+ -------------------------------------------------------------------
10388
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
10389
+ -------------------------------------------------------------------
10390
+ Loading private key...
10391
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
10392
+  (0.0ms) rollback transaction
10393
+  (0.1ms) begin transaction
10394
+ ---------------------------------
10395
+ LetsencryptPluginTest: test_truth
10396
+ ---------------------------------
10397
+  (0.1ms) rollback transaction
10398
+  (0.0ms) begin transaction
10399
+ ----------------------------------------------------------
10400
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
10401
+ ----------------------------------------------------------
10402
+ Loading private key...
10403
+  (0.0ms) rollback transaction
10404
+  (0.0ms) begin transaction
10405
+ -----------------------------------------------------------------
10406
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
10407
+ -----------------------------------------------------------------
10408
+ Loading private key...
10409
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
10410
+  (0.1ms) rollback transaction
10411
+  (0.1ms) begin transaction
10412
+ -----------------------------------------------------------
10413
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
10414
+ -----------------------------------------------------------
10415
+ Loading private key...
10416
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10417
+  (0.1ms) rollback transaction
10418
+  (0.1ms) begin transaction
10419
+ --------------------------------------------------
10420
+ LetsencryptPluginTest: test_register_and_authorize
10421
+ --------------------------------------------------
10422
+ Loading private key...
10423
+ Trying to register at Let's Encrypt service...
10424
+ Already registered.
10425
+ Sending authorization request for: example.com...
10426
+  (0.1ms) rollback transaction
10427
+  (0.0ms) begin transaction
10428
+ -------------------------------------------------------------
10429
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
10430
+ -------------------------------------------------------------
10431
+ Loading private key...
10432
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10433
+  (0.0ms) rollback transaction
10434
+  (0.0ms) begin transaction
10435
+ -------------------------------------------------------------------
10436
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
10437
+ -------------------------------------------------------------------
10438
+ Loading private key...
10439
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
10440
+  (0.0ms) rollback transaction
10441
+  (0.0ms) begin transaction
10442
+ ------------------------------------
10443
+ LetsencryptPluginTest: test_register
10444
+ ------------------------------------
10445
+ Loading private key...
10446
+ Trying to register at Let's Encrypt service...
10447
+ Already registered.
10448
+  (0.1ms) rollback transaction
10449
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10450
+  (0.1ms) begin transaction
10451
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
10452
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:01:39', '2016-01-25 20:01:39', 980190962)
10453
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:01:39', '2016-01-25 20:01:39', 298486374)
10454
+  (98.1ms) commit transaction
10455
+  (0.2ms) begin transaction
10456
+ ------------------------------------------------------------------------
10457
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
10458
+ ------------------------------------------------------------------------
10459
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10460
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
10461
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10462
+ Rendered text template (0.0ms)
10463
+ Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 0.2ms)
10464
+  (0.1ms) rollback transaction
10465
+  (0.1ms) begin transaction
10466
+ ----------------------------------------------------------------------------------------------------------------
10467
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10468
+ ----------------------------------------------------------------------------------------------------------------
10469
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10470
+ Parameters: {"challenge"=>"dG9rZW4="}
10471
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10472
+ Challenge failed - Request has invalid length!
10473
+ Rendered text template (0.0ms)
10474
+ Filter chain halted as :validate_length rendered or redirected
10475
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10476
+  (0.1ms) rollback transaction
10477
+  (0.0ms) begin transaction
10478
+ -----------------------------------------------------------------------------------------------------------------
10479
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10480
+ -----------------------------------------------------------------------------------------------------------------
10481
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10482
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10483
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10484
+ Challenge failed - Request has invalid length!
10485
+ Rendered text template (0.0ms)
10486
+ Filter chain halted as :validate_length rendered or redirected
10487
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10488
+  (0.1ms) rollback transaction
10489
+  (0.1ms) begin transaction
10490
+ -----------------------------------------------------------------
10491
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
10492
+ -----------------------------------------------------------------
10493
+ Loading private key...
10494
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
10495
+  (0.0ms) rollback transaction
10496
+  (0.0ms) begin transaction
10497
+ ----------------------------------------------------------
10498
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
10499
+ ----------------------------------------------------------
10500
+ Loading private key...
10501
+  (0.0ms) rollback transaction
10502
+  (0.0ms) begin transaction
10503
+ ---------------------------------
10504
+ LetsencryptPluginTest: test_truth
10505
+ ---------------------------------
10506
+  (0.0ms) rollback transaction
10507
+  (0.0ms) begin transaction
10508
+ ------------------------------------
10509
+ LetsencryptPluginTest: test_register
10510
+ ------------------------------------
10511
+ Loading private key...
10512
+ Trying to register at Let's Encrypt service...
10513
+ Already registered.
10514
+  (0.1ms) rollback transaction
10515
+  (0.0ms) begin transaction
10516
+ ----------------------------------------------------------
10517
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
10518
+ ----------------------------------------------------------
10519
+ Loading private key...
10520
+  (0.0ms) rollback transaction
10521
+  (0.0ms) begin transaction
10522
+ -------------------------------------------------------------------
10523
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
10524
+ -------------------------------------------------------------------
10525
+ Loading private key...
10526
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
10527
+  (0.0ms) rollback transaction
10528
+  (0.0ms) begin transaction
10529
+ -------------------------------------------------------------------
10530
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
10531
+ -------------------------------------------------------------------
10532
+ Loading private key...
10533
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
10534
+  (0.0ms) rollback transaction
10535
+  (0.0ms) begin transaction
10536
+ -----------------------------------------------------------
10537
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
10538
+ -----------------------------------------------------------
10539
+ Loading private key...
10540
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10541
+  (0.0ms) rollback transaction
10542
+  (0.0ms) begin transaction
10543
+ -------------------------------------------------------------
10544
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
10545
+ -------------------------------------------------------------
10546
+ Loading private key...
10547
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10548
+  (0.0ms) rollback transaction
10549
+  (0.0ms) begin transaction
10550
+ --------------------------------------------------
10551
+ LetsencryptPluginTest: test_register_and_authorize
10552
+ --------------------------------------------------
10553
+ Loading private key...
10554
+ Trying to register at Let's Encrypt service...
10555
+ Already registered.
10556
+ Sending authorization request for: example.com...
10557
+  (0.1ms) rollback transaction
10558
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10559
+  (0.1ms) begin transaction
10560
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
10561
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:08:11', '2016-01-25 20:08:11', 980190962)
10562
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:08:11', '2016-01-25 20:08:11', 298486374)
10563
+  (56.9ms) commit transaction
10564
+  (0.2ms) begin transaction
10565
+ -----------------------------------------------------------------------------------------------------------------
10566
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10567
+ -----------------------------------------------------------------------------------------------------------------
10568
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10569
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10570
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10571
+ Challenge failed - Request has invalid length!
10572
+ Rendered text template (0.0ms)
10573
+ Filter chain halted as :validate_length rendered or redirected
10574
+ Completed 400 Bad Request in 16ms (Views: 8.1ms | ActiveRecord: 0.3ms)
10575
+  (0.2ms) rollback transaction
10576
+  (0.1ms) begin transaction
10577
+ ------------------------------------------------------------------------
10578
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
10579
+ ------------------------------------------------------------------------
10580
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10581
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
10582
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10583
+ Rendered text template (0.0ms)
10584
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
10585
+  (0.1ms) rollback transaction
10586
+  (0.1ms) begin transaction
10587
+ ----------------------------------------------------------------------------------------------------------------
10588
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10589
+ ----------------------------------------------------------------------------------------------------------------
10590
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10591
+ Parameters: {"challenge"=>"dG9rZW4="}
10592
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10593
+ Challenge failed - Request has invalid length!
10594
+ Rendered text template (0.1ms)
10595
+ Filter chain halted as :validate_length rendered or redirected
10596
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
10597
+  (0.1ms) rollback transaction
10598
+  (0.1ms) begin transaction
10599
+ -----------------------------------------------------------------
10600
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
10601
+ -----------------------------------------------------------------
10602
+ Loading private key...
10603
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
10604
+  (0.1ms) rollback transaction
10605
+  (0.1ms) begin transaction
10606
+ -------------------------------------------------------------
10607
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
10608
+ -------------------------------------------------------------
10609
+ Loading private key...
10610
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10611
+  (0.1ms) rollback transaction
10612
+  (0.1ms) begin transaction
10613
+ ----------------------------------------------------------
10614
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
10615
+ ----------------------------------------------------------
10616
+ Loading private key...
10617
+  (0.1ms) rollback transaction
10618
+  (0.1ms) begin transaction
10619
+ -----------------------------------------------------------
10620
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
10621
+ -----------------------------------------------------------
10622
+ Loading private key...
10623
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10624
+  (0.1ms) rollback transaction
10625
+  (0.1ms) begin transaction
10626
+ -------------------------------------------------------------------
10627
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
10628
+ -------------------------------------------------------------------
10629
+ Loading private key...
10630
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
10631
+  (0.1ms) rollback transaction
10632
+  (0.1ms) begin transaction
10633
+ ----------------------------------------------------------
10634
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
10635
+ ----------------------------------------------------------
10636
+ Loading private key...
10637
+  (0.1ms) rollback transaction
10638
+  (0.1ms) begin transaction
10639
+ ---------------------------------
10640
+ LetsencryptPluginTest: test_truth
10641
+ ---------------------------------
10642
+  (0.1ms) rollback transaction
10643
+  (0.1ms) begin transaction
10644
+ -------------------------------------------------------------------
10645
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
10646
+ -------------------------------------------------------------------
10647
+ Loading private key...
10648
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
10649
+  (0.1ms) rollback transaction
10650
+  (0.1ms) begin transaction
10651
+ --------------------------------------------------
10652
+ LetsencryptPluginTest: test_register_and_authorize
10653
+ --------------------------------------------------
10654
+ Loading private key...
10655
+ Trying to register at Let's Encrypt service...
10656
+ Already registered.
10657
+ Sending authorization request for: example.com...
10658
+  (0.1ms) rollback transaction
10659
+  (0.1ms) begin transaction
10660
+ ------------------------------------
10661
+ LetsencryptPluginTest: test_register
10662
+ ------------------------------------
10663
+ Loading private key...
10664
+ Trying to register at Let's Encrypt service...
10665
+ Already registered.
10666
+  (0.1ms) rollback transaction
10667
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10668
+  (0.1ms) begin transaction
10669
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
10670
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:09:00', '2016-01-25 20:09:00', 980190962)
10671
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:09:00', '2016-01-25 20:09:00', 298486374)
10672
+  (94.1ms) commit transaction
10673
+  (0.1ms) begin transaction
10674
+ ----------------------------------------------------------
10675
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
10676
+ ----------------------------------------------------------
10677
+ Loading private key...
10678
+  (0.1ms) rollback transaction
10679
+  (0.1ms) begin transaction
10680
+ ----------------------------------------------------------
10681
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
10682
+ ----------------------------------------------------------
10683
+ Loading private key...
10684
+  (0.1ms) rollback transaction
10685
+  (0.1ms) begin transaction
10686
+ -----------------------------------------------------------------
10687
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
10688
+ -----------------------------------------------------------------
10689
+ Loading private key...
10690
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
10691
+  (0.1ms) rollback transaction
10692
+  (0.1ms) begin transaction
10693
+ -------------------------------------------------------------------
10694
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
10695
+ -------------------------------------------------------------------
10696
+ Loading private key...
10697
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
10698
+  (0.1ms) rollback transaction
10699
+  (0.1ms) begin transaction
10700
+ --------------------------------------------------
10701
+ LetsencryptPluginTest: test_register_and_authorize
10702
+ --------------------------------------------------
10703
+ Loading private key...
10704
+ Trying to register at Let's Encrypt service...
10705
+ Already registered.
10706
+ Sending authorization request for: example.com...
10707
+  (0.1ms) rollback transaction
10708
+  (0.1ms) begin transaction
10709
+ ---------------------------------
10710
+ LetsencryptPluginTest: test_truth
10711
+ ---------------------------------
10712
+  (0.1ms) rollback transaction
10713
+  (0.1ms) begin transaction
10714
+ -----------------------------------------------------------
10715
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
10716
+ -----------------------------------------------------------
10717
+ Loading private key...
10718
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10719
+  (0.1ms) rollback transaction
10720
+  (0.1ms) begin transaction
10721
+ -------------------------------------------------------------------
10722
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
10723
+ -------------------------------------------------------------------
10724
+ Loading private key...
10725
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
10726
+  (0.1ms) rollback transaction
10727
+  (0.1ms) begin transaction
10728
+ -------------------------------------------------------------
10729
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
10730
+ -------------------------------------------------------------
10731
+ Loading private key...
10732
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10733
+  (0.1ms) rollback transaction
10734
+  (0.1ms) begin transaction
10735
+ ------------------------------------
10736
+ LetsencryptPluginTest: test_register
10737
+ ------------------------------------
10738
+ Loading private key...
10739
+ Trying to register at Let's Encrypt service...
10740
+ Already registered.
10741
+  (0.1ms) rollback transaction
10742
+  (0.1ms) begin transaction
10743
+ ------------------------------------------------------------------------
10744
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
10745
+ ------------------------------------------------------------------------
10746
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10747
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
10748
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10749
+ Rendered text template (0.0ms)
10750
+ Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.2ms)
10751
+  (0.1ms) rollback transaction
10752
+  (0.1ms) begin transaction
10753
+ -----------------------------------------------------------------------------------------------------------------
10754
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10755
+ -----------------------------------------------------------------------------------------------------------------
10756
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10757
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10758
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10759
+ Challenge failed - Request has invalid length!
10760
+ Rendered text template (0.0ms)
10761
+ Filter chain halted as :validate_length rendered or redirected
10762
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
10763
+  (0.1ms) rollback transaction
10764
+  (0.1ms) begin transaction
10765
+ ----------------------------------------------------------------------------------------------------------------
10766
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10767
+ ----------------------------------------------------------------------------------------------------------------
10768
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10769
+ Parameters: {"challenge"=>"dG9rZW4="}
10770
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10771
+ Challenge failed - Request has invalid length!
10772
+ Rendered text template (0.0ms)
10773
+ Filter chain halted as :validate_length rendered or redirected
10774
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
10775
+  (0.1ms) rollback transaction
10776
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10777
+  (0.1ms) begin transaction
10778
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
10779
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:10:44', '2016-01-25 20:10:44', 980190962)
10780
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:10:44', '2016-01-25 20:10:44', 298486374)
10781
+  (92.8ms) commit transaction
10782
+  (0.2ms) begin transaction
10783
+ -----------------------------------------------------------------------------------------------------------------
10784
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10785
+ -----------------------------------------------------------------------------------------------------------------
10786
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10787
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10788
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10789
+ Challenge failed - Request has invalid length!
10790
+ Rendered text template (0.0ms)
10791
+ Filter chain halted as :validate_length rendered or redirected
10792
+ Completed 400 Bad Request in 17ms (Views: 8.9ms | ActiveRecord: 0.3ms)
10793
+  (0.2ms) rollback transaction
10794
+  (0.1ms) begin transaction
10795
+ ------------------------------------------------------------------------
10796
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
10797
+ ------------------------------------------------------------------------
10798
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10799
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
10800
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10801
+ Rendered text template (0.0ms)
10802
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
10803
+  (0.1ms) rollback transaction
10804
+  (0.1ms) begin transaction
10805
+ ----------------------------------------------------------------------------------------------------------------
10806
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10807
+ ----------------------------------------------------------------------------------------------------------------
10808
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10809
+ Parameters: {"challenge"=>"dG9rZW4="}
10810
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10811
+ Challenge failed - Request has invalid length!
10812
+ Rendered text template (0.0ms)
10813
+ Filter chain halted as :validate_length rendered or redirected
10814
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
10815
+  (0.1ms) rollback transaction
10816
+  (0.1ms) begin transaction
10817
+ -------------------------------------------------------------------
10818
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
10819
+ -------------------------------------------------------------------
10820
+ Loading private key...
10821
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
10822
+  (0.1ms) rollback transaction
10823
+  (0.1ms) begin transaction
10824
+ ------------------------------------
10825
+ LetsencryptPluginTest: test_register
10826
+ ------------------------------------
10827
+ Loading private key...
10828
+ Trying to register at Let's Encrypt service...
10829
+ Already registered.
10830
+  (0.1ms) rollback transaction
10831
+  (0.1ms) begin transaction
10832
+ --------------------------------------------------
10833
+ LetsencryptPluginTest: test_register_and_authorize
10834
+ --------------------------------------------------
10835
+ Loading private key...
10836
+ Trying to register at Let's Encrypt service...
10837
+ Already registered.
10838
+ Sending authorization request for: example.com...
10839
+  (0.1ms) rollback transaction
10840
+  (0.1ms) begin transaction
10841
+ -----------------------------------------------------------------
10842
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
10843
+ -----------------------------------------------------------------
10844
+ Loading private key...
10845
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
10846
+  (0.1ms) rollback transaction
10847
+  (0.0ms) begin transaction
10848
+ ----------------------------------------------------------
10849
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
10850
+ ----------------------------------------------------------
10851
+ Loading private key...
10852
+  (0.0ms) rollback transaction
10853
+  (0.0ms) begin transaction
10854
+ -------------------------------------------------------------
10855
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
10856
+ -------------------------------------------------------------
10857
+ Loading private key...
10858
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10859
+  (0.0ms) rollback transaction
10860
+  (0.0ms) begin transaction
10861
+ -----------------------------------------------------------
10862
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
10863
+ -----------------------------------------------------------
10864
+ Loading private key...
10865
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10866
+  (0.0ms) rollback transaction
10867
+  (0.0ms) begin transaction
10868
+ ----------------------------------------------------------
10869
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
10870
+ ----------------------------------------------------------
10871
+ Loading private key...
10872
+  (0.0ms) rollback transaction
10873
+  (0.0ms) begin transaction
10874
+ -------------------------------------------------------------------
10875
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
10876
+ -------------------------------------------------------------------
10877
+ Loading private key...
10878
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
10879
+  (0.0ms) rollback transaction
10880
+  (0.0ms) begin transaction
10881
+ ---------------------------------
10882
+ LetsencryptPluginTest: test_truth
10883
+ ---------------------------------
10884
+  (0.0ms) rollback transaction
10885
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10886
+  (0.1ms) begin transaction
10887
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
10888
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:18:40', '2016-01-25 20:18:40', 980190962)
10889
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:18:40', '2016-01-25 20:18:40', 298486374)
10890
+  (97.2ms) commit transaction
10891
+  (0.2ms) begin transaction
10892
+ ------------------------------------------------------------------------
10893
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
10894
+ ------------------------------------------------------------------------
10895
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10896
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
10897
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10898
+ Rendered text template (0.0ms)
10899
+ Completed 200 OK in 16ms (Views: 8.2ms | ActiveRecord: 0.3ms)
10900
+  (0.2ms) rollback transaction
10901
+  (0.1ms) begin transaction
10902
+ ----------------------------------------------------------------------------------------------------------------
10903
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
10904
+ ----------------------------------------------------------------------------------------------------------------
10905
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10906
+ Parameters: {"challenge"=>"dG9rZW4="}
10907
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10908
+ Challenge failed - Request has invalid length!
10909
+ Rendered text template (0.0ms)
10910
+ Filter chain halted as :validate_length rendered or redirected
10911
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
10912
+  (0.1ms) rollback transaction
10913
+  (0.1ms) begin transaction
10914
+ -----------------------------------------------------------------------------------------------------------------
10915
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
10916
+ -----------------------------------------------------------------------------------------------------------------
10917
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
10918
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
10919
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
10920
+ Challenge failed - Request has invalid length!
10921
+ Rendered text template (0.0ms)
10922
+ Filter chain halted as :validate_length rendered or redirected
10923
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
10924
+  (0.1ms) rollback transaction
10925
+  (0.1ms) begin transaction
10926
+ ----------------------------------------------------------
10927
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
10928
+ ----------------------------------------------------------
10929
+ Loading private key...
10930
+  (0.1ms) rollback transaction
10931
+  (0.1ms) begin transaction
10932
+ ----------------------------------------------------------
10933
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
10934
+ ----------------------------------------------------------
10935
+ Loading private key...
10936
+  (0.1ms) rollback transaction
10937
+  (0.1ms) begin transaction
10938
+ -------------------------------------------------------------------
10939
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
10940
+ -------------------------------------------------------------------
10941
+ Loading private key...
10942
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
10943
+  (0.1ms) rollback transaction
10944
+  (0.1ms) begin transaction
10945
+ --------------------------------------------------
10946
+ LetsencryptPluginTest: test_register_and_authorize
10947
+ --------------------------------------------------
10948
+ Loading private key...
10949
+ Trying to register at Let's Encrypt service...
10950
+ Already registered.
10951
+ Sending authorization request for: example.com...
10952
+  (0.1ms) rollback transaction
10953
+  (0.1ms) begin transaction
10954
+ ------------------------------------
10955
+ LetsencryptPluginTest: test_register
10956
+ ------------------------------------
10957
+ Loading private key...
10958
+ Trying to register at Let's Encrypt service...
10959
+ Already registered.
10960
+  (0.1ms) rollback transaction
10961
+  (0.0ms) begin transaction
10962
+ -----------------------------------------------------------------
10963
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
10964
+ -----------------------------------------------------------------
10965
+ Loading private key...
10966
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
10967
+  (0.0ms) rollback transaction
10968
+  (0.0ms) begin transaction
10969
+ -------------------------------------------------------------------
10970
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
10971
+ -------------------------------------------------------------------
10972
+ Loading private key...
10973
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
10974
+  (0.0ms) rollback transaction
10975
+  (0.0ms) begin transaction
10976
+ -------------------------------------------------------------
10977
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
10978
+ -------------------------------------------------------------
10979
+ Loading private key...
10980
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10981
+  (0.0ms) rollback transaction
10982
+  (0.0ms) begin transaction
10983
+ -----------------------------------------------------------
10984
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
10985
+ -----------------------------------------------------------
10986
+ Loading private key...
10987
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
10988
+  (0.1ms) rollback transaction
10989
+  (0.0ms) begin transaction
10990
+ ---------------------------------
10991
+ LetsencryptPluginTest: test_truth
10992
+ ---------------------------------
10993
+  (0.0ms) rollback transaction
10994
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10995
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10996
+  (0.1ms) begin transaction
10997
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
10998
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:23:52', '2016-01-25 20:23:52', 980190962)
10999
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:23:52', '2016-01-25 20:23:52', 298486374)
11000
+  (91.2ms) commit transaction
11001
+  (0.2ms) begin transaction
11002
+ --------------------------------------------------
11003
+ LetsencryptPluginTest: test_register_and_authorize
11004
+ --------------------------------------------------
11005
+ Loading private key...
11006
+ Trying to register at Let's Encrypt service...
11007
+ Already registered.
11008
+ Sending authorization request for: example.com...
11009
+  (0.1ms) rollback transaction
11010
+  (0.1ms) begin transaction
11011
+ -------------------------------------------------------------
11012
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
11013
+ -------------------------------------------------------------
11014
+ Loading private key...
11015
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11016
+  (0.1ms) rollback transaction
11017
+  (0.1ms) begin transaction
11018
+ ------------------------------------
11019
+ LetsencryptPluginTest: test_register
11020
+ ------------------------------------
11021
+ Loading private key...
11022
+ Trying to register at Let's Encrypt service...
11023
+ Already registered.
11024
+  (0.1ms) rollback transaction
11025
+  (0.1ms) begin transaction
11026
+ -----------------------------------------------------------------
11027
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
11028
+ -----------------------------------------------------------------
11029
+ Loading private key...
11030
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
11031
+  (0.1ms) rollback transaction
11032
+  (0.0ms) begin transaction
11033
+ -------------------------------------------------------------------
11034
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
11035
+ -------------------------------------------------------------------
11036
+ Loading private key...
11037
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
11038
+  (0.1ms) rollback transaction
11039
+  (0.0ms) begin transaction
11040
+ ----------------------------------------------------------
11041
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
11042
+ ----------------------------------------------------------
11043
+ Loading private key...
11044
+  (0.1ms) rollback transaction
11045
+  (0.1ms) begin transaction
11046
+ ----------------------------------------------------------
11047
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
11048
+ ----------------------------------------------------------
11049
+ Loading private key...
11050
+  (0.0ms) rollback transaction
11051
+  (0.0ms) begin transaction
11052
+ -------------------------------------------------------------------
11053
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
11054
+ -------------------------------------------------------------------
11055
+ Loading private key...
11056
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
11057
+  (0.0ms) rollback transaction
11058
+  (0.0ms) begin transaction
11059
+ ---------------------------------
11060
+ LetsencryptPluginTest: test_truth
11061
+ ---------------------------------
11062
+  (0.0ms) rollback transaction
11063
+  (0.1ms) begin transaction
11064
+ -----------------------------------------------------------
11065
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
11066
+ -----------------------------------------------------------
11067
+ Loading private key...
11068
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11069
+  (0.0ms) rollback transaction
11070
+  (0.1ms) begin transaction
11071
+ -----------------------------------------------------------------------------------------------------------------
11072
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
11073
+ -----------------------------------------------------------------------------------------------------------------
11074
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11075
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
11076
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11077
+ Challenge failed - Request has invalid length!
11078
+ Rendered text template (0.0ms)
11079
+ Filter chain halted as :validate_length rendered or redirected
11080
+ Completed 400 Bad Request in 10ms (Views: 5.0ms | ActiveRecord: 0.2ms)
11081
+  (0.1ms) rollback transaction
11082
+  (0.1ms) begin transaction
11083
+ ----------------------------------------------------------------------------------------------------------------
11084
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
11085
+ ----------------------------------------------------------------------------------------------------------------
11086
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11087
+ Parameters: {"challenge"=>"dG9rZW4="}
11088
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11089
+ Challenge failed - Request has invalid length!
11090
+ Rendered text template (0.0ms)
11091
+ Filter chain halted as :validate_length rendered or redirected
11092
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11093
+  (0.1ms) rollback transaction
11094
+  (0.0ms) begin transaction
11095
+ ------------------------------------------------------------------------
11096
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
11097
+ ------------------------------------------------------------------------
11098
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11099
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
11100
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11101
+ Rendered text template (0.0ms)
11102
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
11103
+  (0.1ms) rollback transaction
11104
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11105
+  (0.1ms) begin transaction
11106
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
11107
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:28:30', '2016-01-25 20:28:30', 980190962)
11108
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:28:30', '2016-01-25 20:28:30', 298486374)
11109
+  (120.6ms) commit transaction
11110
+  (0.2ms) begin transaction
11111
+ ------------------------------------------------------------------------
11112
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
11113
+ ------------------------------------------------------------------------
11114
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11115
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
11116
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11117
+ Rendered text template (0.0ms)
11118
+ Completed 200 OK in 15ms (Views: 7.9ms | ActiveRecord: 0.3ms)
11119
+  (0.1ms) rollback transaction
11120
+  (0.1ms) begin transaction
11121
+ -----------------------------------------------------------------------------------------------------------------
11122
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
11123
+ -----------------------------------------------------------------------------------------------------------------
11124
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11125
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
11126
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11127
+ Challenge failed - Request has invalid length!
11128
+ Rendered text template (0.0ms)
11129
+ Filter chain halted as :validate_length rendered or redirected
11130
+ Completed 400 Bad Request in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
11131
+  (0.1ms) rollback transaction
11132
+  (0.1ms) begin transaction
11133
+ ----------------------------------------------------------------------------------------------------------------
11134
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
11135
+ ----------------------------------------------------------------------------------------------------------------
11136
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11137
+ Parameters: {"challenge"=>"dG9rZW4="}
11138
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11139
+ Challenge failed - Request has invalid length!
11140
+ Rendered text template (0.0ms)
11141
+ Filter chain halted as :validate_length rendered or redirected
11142
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11143
+  (0.1ms) rollback transaction
11144
+  (0.1ms) begin transaction
11145
+ -------------------------------------------------------------
11146
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
11147
+ -------------------------------------------------------------
11148
+ Loading private key...
11149
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11150
+  (0.1ms) rollback transaction
11151
+  (0.1ms) begin transaction
11152
+ -----------------------------------------------------------------
11153
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
11154
+ -----------------------------------------------------------------
11155
+ Loading private key...
11156
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
11157
+  (0.1ms) rollback transaction
11158
+  (0.1ms) begin transaction
11159
+ -------------------------------------------------------------------
11160
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
11161
+ -------------------------------------------------------------------
11162
+ Loading private key...
11163
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
11164
+  (0.1ms) rollback transaction
11165
+  (0.1ms) begin transaction
11166
+ ------------------------------------
11167
+ LetsencryptPluginTest: test_register
11168
+ ------------------------------------
11169
+ Loading private key...
11170
+ Trying to register at Let's Encrypt service...
11171
+ Already registered.
11172
+  (0.1ms) rollback transaction
11173
+  (0.1ms) begin transaction
11174
+ ----------------------------------------------------------
11175
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
11176
+ ----------------------------------------------------------
11177
+ Loading private key...
11178
+  (0.0ms) rollback transaction
11179
+  (0.0ms) begin transaction
11180
+ ------------------------------------------------------------------------
11181
+ LetsencryptPluginTest: test_register_and_authorize_with_different_domain
11182
+ ------------------------------------------------------------------------
11183
+ Loading private key...
11184
+ Trying to register at Let's Encrypt service...
11185
+ Already registered.
11186
+ Sending authorization request for: other.example.com...
11187
+  (0.1ms) rollback transaction
11188
+  (0.1ms) begin transaction
11189
+ -------------------------------------------------------------------
11190
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
11191
+ -------------------------------------------------------------------
11192
+ Loading private key...
11193
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
11194
+  (0.0ms) rollback transaction
11195
+  (0.1ms) begin transaction
11196
+ ----------------------------------------------------------
11197
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
11198
+ ----------------------------------------------------------
11199
+ Loading private key...
11200
+  (0.0ms) rollback transaction
11201
+  (0.0ms) begin transaction
11202
+ --------------------------------------------------
11203
+ LetsencryptPluginTest: test_register_and_authorize
11204
+ --------------------------------------------------
11205
+ Loading private key...
11206
+ Trying to register at Let's Encrypt service...
11207
+ Already registered.
11208
+ Sending authorization request for: example.com...
11209
+  (0.1ms) rollback transaction
11210
+  (0.1ms) begin transaction
11211
+ ---------------------------------
11212
+ LetsencryptPluginTest: test_truth
11213
+ ---------------------------------
11214
+  (0.0ms) rollback transaction
11215
+  (0.0ms) begin transaction
11216
+ -----------------------------------------------------------
11217
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
11218
+ -----------------------------------------------------------
11219
+ Loading private key...
11220
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11221
+  (0.0ms) rollback transaction
11222
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11223
+  (0.1ms) begin transaction
11224
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
11225
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:30:42', '2016-01-25 20:30:42', 980190962)
11226
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-25 20:30:42', '2016-01-25 20:30:42', 298486374)
11227
+  (85.8ms) commit transaction
11228
+  (0.3ms) begin transaction
11229
+ -----------------------------------------------------------------------------------------------------------------
11230
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
11231
+ -----------------------------------------------------------------------------------------------------------------
11232
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11233
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
11234
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11235
+ Challenge failed - Request has invalid length!
11236
+ Rendered text template (0.0ms)
11237
+ Filter chain halted as :validate_length rendered or redirected
11238
+ Completed 400 Bad Request in 18ms (Views: 9.4ms | ActiveRecord: 0.3ms)
11239
+  (0.2ms) rollback transaction
11240
+  (0.1ms) begin transaction
11241
+ ----------------------------------------------------------------------------------------------------------------
11242
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
11243
+ ----------------------------------------------------------------------------------------------------------------
11244
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11245
+ Parameters: {"challenge"=>"dG9rZW4="}
11246
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11247
+ Challenge failed - Request has invalid length!
11248
+ Rendered text template (0.0ms)
11249
+ Filter chain halted as :validate_length rendered or redirected
11250
+ Completed 400 Bad Request in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11251
+  (0.1ms) rollback transaction
11252
+  (0.1ms) begin transaction
11253
+ ------------------------------------------------------------------------
11254
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
11255
+ ------------------------------------------------------------------------
11256
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11257
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
11258
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11259
+ Rendered text template (0.0ms)
11260
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
11261
+  (0.2ms) rollback transaction
11262
+  (0.1ms) begin transaction
11263
+ ---------------------------------
11264
+ LetsencryptPluginTest: test_truth
11265
+ ---------------------------------
11266
+  (0.1ms) rollback transaction
11267
+  (0.1ms) begin transaction
11268
+ --------------------------------------------------
11269
+ LetsencryptPluginTest: test_register_and_authorize
11270
+ --------------------------------------------------
11271
+ Loading private key...
11272
+ Trying to register at Let's Encrypt service...
11273
+ Already registered.
11274
+ Sending authorization request for: example.com...
11275
+  (0.1ms) rollback transaction
11276
+  (0.1ms) begin transaction
11277
+ -----------------------------------------------------------------
11278
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
11279
+ -----------------------------------------------------------------
11280
+ Loading private key...
11281
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
11282
+  (0.1ms) rollback transaction
11283
+  (0.0ms) begin transaction
11284
+ -------------------------------------------------------------
11285
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
11286
+ -------------------------------------------------------------
11287
+ Loading private key...
11288
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11289
+  (0.1ms) rollback transaction
11290
+  (0.0ms) begin transaction
11291
+ -----------------------------------------------------------
11292
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
11293
+ -----------------------------------------------------------
11294
+ Loading private key...
11295
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11296
+  (0.1ms) rollback transaction
11297
+  (0.1ms) begin transaction
11298
+ -------------------------------------------------------------------
11299
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
11300
+ -------------------------------------------------------------------
11301
+ Loading private key...
11302
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
11303
+  (0.1ms) rollback transaction
11304
+  (0.0ms) begin transaction
11305
+ ----------------------------------------------------------
11306
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
11307
+ ----------------------------------------------------------
11308
+ Loading private key...
11309
+  (0.1ms) rollback transaction
11310
+  (0.0ms) begin transaction
11311
+ -------------------------------------------------------------------
11312
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
11313
+ -------------------------------------------------------------------
11314
+ Loading private key...
11315
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
11316
+  (0.1ms) rollback transaction
11317
+  (0.0ms) begin transaction
11318
+ ----------------------------------------------------------
11319
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
11320
+ ----------------------------------------------------------
11321
+ Loading private key...
11322
+  (0.0ms) rollback transaction
11323
+  (0.0ms) begin transaction
11324
+ ------------------------------------
11325
+ LetsencryptPluginTest: test_register
11326
+ ------------------------------------
11327
+ Loading private key...
11328
+ Trying to register at Let's Encrypt service...
11329
+ Already registered.
11330
+  (0.1ms) rollback transaction
11331
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11332
+  (0.2ms) begin transaction
11333
+ Fixture Delete (0.3ms) DELETE FROM "letsencrypt_plugin_challenges"
11334
+ Fixture Insert (0.3ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:01:37', '2016-01-29 17:01:37', 980190962)
11335
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:01:37', '2016-01-29 17:01:37', 298486374)
11336
+  (73.6ms) commit transaction
11337
+  (0.2ms) begin transaction
11338
+ ------------------------------------------------------------------------
11339
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
11340
+ ------------------------------------------------------------------------
11341
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11342
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
11343
+ LetsencryptPlugin::Challenge Load (0.4ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11344
+ Rendered text template (0.1ms)
11345
+ Completed 200 OK in 40ms (Views: 28.6ms | ActiveRecord: 0.4ms)
11346
+  (0.2ms) rollback transaction
11347
+  (0.1ms) begin transaction
11348
+ -----------------------------------------------------------------------------------------------------------------
11349
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
11350
+ -----------------------------------------------------------------------------------------------------------------
11351
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11352
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
11353
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11354
+ Challenge failed - Request has invalid length!
11355
+ Rendered text template (0.0ms)
11356
+ Filter chain halted as :validate_length rendered or redirected
11357
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11358
+  (0.1ms) rollback transaction
11359
+  (0.1ms) begin transaction
11360
+ ----------------------------------------------------------------------------------------------------------------
11361
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
11362
+ ----------------------------------------------------------------------------------------------------------------
11363
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11364
+ Parameters: {"challenge"=>"dG9rZW4="}
11365
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11366
+ Challenge failed - Request has invalid length!
11367
+ Rendered text template (0.0ms)
11368
+ Filter chain halted as :validate_length rendered or redirected
11369
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11370
+  (0.1ms) rollback transaction
11371
+  (0.1ms) begin transaction
11372
+ -------------------------------------------------------------
11373
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
11374
+ -------------------------------------------------------------
11375
+ Loading private key...
11376
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11377
+  (0.1ms) rollback transaction
11378
+  (0.1ms) begin transaction
11379
+ -------------------------------------------------------------------
11380
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
11381
+ -------------------------------------------------------------------
11382
+ Loading private key...
11383
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
11384
+  (0.2ms) rollback transaction
11385
+  (0.1ms) begin transaction
11386
+ --------------------------------------------------
11387
+ LetsencryptPluginTest: test_register_and_authorize
11388
+ --------------------------------------------------
11389
+ Loading private key...
11390
+ Trying to register at Let's Encrypt service...
11391
+ Already registered.
11392
+ Sending authorization request for: example.com...
11393
+  (0.1ms) rollback transaction
11394
+  (0.1ms) begin transaction
11395
+ ---------------------------------
11396
+ LetsencryptPluginTest: test_truth
11397
+ ---------------------------------
11398
+  (0.1ms) rollback transaction
11399
+  (0.1ms) begin transaction
11400
+ ----------------------------------------------------------
11401
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
11402
+ ----------------------------------------------------------
11403
+ Loading private key...
11404
+  (0.1ms) rollback transaction
11405
+  (0.1ms) begin transaction
11406
+ -------------------------------------------------------------------
11407
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
11408
+ -------------------------------------------------------------------
11409
+ Loading private key...
11410
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
11411
+  (0.1ms) rollback transaction
11412
+  (0.1ms) begin transaction
11413
+ ------------------------------------
11414
+ LetsencryptPluginTest: test_register
11415
+ ------------------------------------
11416
+ Loading private key...
11417
+ Trying to register at Let's Encrypt service...
11418
+ Already registered.
11419
+  (0.1ms) rollback transaction
11420
+  (0.0ms) begin transaction
11421
+ -----------------------------------------------------------
11422
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
11423
+ -----------------------------------------------------------
11424
+ Loading private key...
11425
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11426
+  (0.0ms) rollback transaction
11427
+  (0.0ms) begin transaction
11428
+ -----------------------------------------------------------------
11429
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
11430
+ -----------------------------------------------------------------
11431
+ Loading private key...
11432
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
11433
+  (0.0ms) rollback transaction
11434
+  (0.0ms) begin transaction
11435
+ ----------------------------------------------------------
11436
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
11437
+ ----------------------------------------------------------
11438
+ Loading private key...
11439
+  (0.0ms) rollback transaction
11440
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11441
+  (0.1ms) begin transaction
11442
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
11443
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:02:27', '2016-01-29 17:02:27', 980190962)
11444
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:02:27', '2016-01-29 17:02:27', 298486374)
11445
+  (117.5ms) commit transaction
11446
+  (0.2ms) begin transaction
11447
+ ----------------------------------------------------------
11448
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
11449
+ ----------------------------------------------------------
11450
+ Loading private key...
11451
+  (0.2ms) rollback transaction
11452
+  (0.1ms) begin transaction
11453
+ -------------------------------------------------------------------
11454
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
11455
+ -------------------------------------------------------------------
11456
+ Loading private key...
11457
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
11458
+  (0.1ms) rollback transaction
11459
+  (0.1ms) begin transaction
11460
+ -----------------------------------------------------------------
11461
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
11462
+ -----------------------------------------------------------------
11463
+ Loading private key...
11464
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
11465
+  (0.1ms) rollback transaction
11466
+  (0.1ms) begin transaction
11467
+ -----------------------------------------------------------
11468
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
11469
+ -----------------------------------------------------------
11470
+ Loading private key...
11471
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11472
+  (0.1ms) rollback transaction
11473
+  (0.1ms) begin transaction
11474
+ -------------------------------------------------------------
11475
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
11476
+ -------------------------------------------------------------
11477
+ Loading private key...
11478
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11479
+  (0.1ms) rollback transaction
11480
+  (0.1ms) begin transaction
11481
+ ----------------------------------------------------------
11482
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
11483
+ ----------------------------------------------------------
11484
+ Loading private key...
11485
+  (0.1ms) rollback transaction
11486
+  (0.1ms) begin transaction
11487
+ --------------------------------------------------
11488
+ LetsencryptPluginTest: test_register_and_authorize
11489
+ --------------------------------------------------
11490
+ Loading private key...
11491
+ Trying to register at Let's Encrypt service...
11492
+ Already registered.
11493
+ Sending authorization request for: example.com...
11494
+  (0.1ms) rollback transaction
11495
+  (0.1ms) begin transaction
11496
+ ---------------------------------
11497
+ LetsencryptPluginTest: test_truth
11498
+ ---------------------------------
11499
+  (0.1ms) rollback transaction
11500
+  (0.1ms) begin transaction
11501
+ ------------------------------------
11502
+ LetsencryptPluginTest: test_register
11503
+ ------------------------------------
11504
+ Loading private key...
11505
+ Trying to register at Let's Encrypt service...
11506
+ Already registered.
11507
+  (0.1ms) rollback transaction
11508
+  (0.1ms) begin transaction
11509
+ -------------------------------------------------------------------
11510
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
11511
+ -------------------------------------------------------------------
11512
+ Loading private key...
11513
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
11514
+  (0.1ms) rollback transaction
11515
+  (0.1ms) begin transaction
11516
+ -----------------------------------------------------------------------------------------------------------------
11517
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
11518
+ -----------------------------------------------------------------------------------------------------------------
11519
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11520
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
11521
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11522
+ Challenge failed - Request has invalid length!
11523
+ Rendered text template (0.0ms)
11524
+ Filter chain halted as :validate_length rendered or redirected
11525
+ Completed 400 Bad Request in 9ms (Views: 4.9ms | ActiveRecord: 0.2ms)
11526
+  (0.1ms) rollback transaction
11527
+  (0.0ms) begin transaction
11528
+ ----------------------------------------------------------------------------------------------------------------
11529
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
11530
+ ----------------------------------------------------------------------------------------------------------------
11531
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11532
+ Parameters: {"challenge"=>"dG9rZW4="}
11533
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11534
+ Challenge failed - Request has invalid length!
11535
+ Rendered text template (0.0ms)
11536
+ Filter chain halted as :validate_length rendered or redirected
11537
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
11538
+  (0.1ms) rollback transaction
11539
+  (0.0ms) begin transaction
11540
+ ------------------------------------------------------------------------
11541
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
11542
+ ------------------------------------------------------------------------
11543
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11544
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
11545
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11546
+ Rendered text template (0.0ms)
11547
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
11548
+  (0.1ms) rollback transaction
11549
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11550
+  (0.1ms) begin transaction
11551
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
11552
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:03:04', '2016-01-29 17:03:04', 980190962)
11553
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:03:04', '2016-01-29 17:03:04', 298486374)
11554
+  (88.2ms) commit transaction
11555
+  (0.3ms) begin transaction
11556
+ -------------------------------------------------------------------
11557
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
11558
+ -------------------------------------------------------------------
11559
+ Loading private key...
11560
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
11561
+  (0.2ms) rollback transaction
11562
+  (0.1ms) begin transaction
11563
+ --------------------------------------------------
11564
+ LetsencryptPluginTest: test_register_and_authorize
11565
+ --------------------------------------------------
11566
+ Loading private key...
11567
+ Trying to register at Let's Encrypt service...
11568
+ Already registered.
11569
+ Sending authorization request for: example.com...
11570
+  (0.1ms) rollback transaction
11571
+  (0.1ms) begin transaction
11572
+ ----------------------------------------------------------
11573
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
11574
+ ----------------------------------------------------------
11575
+ Loading private key...
11576
+  (0.1ms) rollback transaction
11577
+  (0.1ms) begin transaction
11578
+ ---------------------------------
11579
+ LetsencryptPluginTest: test_truth
11580
+ ---------------------------------
11581
+  (0.1ms) rollback transaction
11582
+  (0.1ms) begin transaction
11583
+ -----------------------------------------------------------
11584
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
11585
+ -----------------------------------------------------------
11586
+ Loading private key...
11587
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11588
+  (0.1ms) rollback transaction
11589
+  (0.1ms) begin transaction
11590
+ -------------------------------------------------------------
11591
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
11592
+ -------------------------------------------------------------
11593
+ Loading private key...
11594
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11595
+  (0.1ms) rollback transaction
11596
+  (0.0ms) begin transaction
11597
+ ----------------------------------------------------------
11598
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
11599
+ ----------------------------------------------------------
11600
+ Loading private key...
11601
+  (0.1ms) rollback transaction
11602
+  (0.1ms) begin transaction
11603
+ -----------------------------------------------------------------
11604
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
11605
+ -----------------------------------------------------------------
11606
+ Loading private key...
11607
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
11608
+  (0.1ms) rollback transaction
11609
+  (0.1ms) begin transaction
11610
+ -------------------------------------------------------------------
11611
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
11612
+ -------------------------------------------------------------------
11613
+ Loading private key...
11614
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
11615
+  (0.1ms) rollback transaction
11616
+  (0.1ms) begin transaction
11617
+ ------------------------------------
11618
+ LetsencryptPluginTest: test_register
11619
+ ------------------------------------
11620
+ Loading private key...
11621
+ Trying to register at Let's Encrypt service...
11622
+ Already registered.
11623
+  (0.1ms) rollback transaction
11624
+  (0.1ms) begin transaction
11625
+ ------------------------------------------------------------------------
11626
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
11627
+ ------------------------------------------------------------------------
11628
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11629
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
11630
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11631
+ Rendered text template (0.0ms)
11632
+ Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.2ms)
11633
+  (0.1ms) rollback transaction
11634
+  (0.1ms) begin transaction
11635
+ -----------------------------------------------------------------------------------------------------------------
11636
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
11637
+ -----------------------------------------------------------------------------------------------------------------
11638
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11639
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
11640
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11641
+ Challenge failed - Request has invalid length!
11642
+ Rendered text template (0.0ms)
11643
+ Filter chain halted as :validate_length rendered or redirected
11644
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11645
+  (0.1ms) rollback transaction
11646
+  (0.0ms) begin transaction
11647
+ ----------------------------------------------------------------------------------------------------------------
11648
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
11649
+ ----------------------------------------------------------------------------------------------------------------
11650
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11651
+ Parameters: {"challenge"=>"dG9rZW4="}
11652
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11653
+ Challenge failed - Request has invalid length!
11654
+ Rendered text template (0.0ms)
11655
+ Filter chain halted as :validate_length rendered or redirected
11656
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
11657
+  (0.1ms) rollback transaction
11658
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11659
+  (0.1ms) begin transaction
11660
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
11661
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:03:48', '2016-01-29 17:03:48', 980190962)
11662
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:03:48', '2016-01-29 17:03:48', 298486374)
11663
+  (97.7ms) commit transaction
11664
+  (0.1ms) begin transaction
11665
+ -------------------------------------------------------------------
11666
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
11667
+ -------------------------------------------------------------------
11668
+ Loading private key...
11669
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
11670
+  (0.1ms) rollback transaction
11671
+  (0.1ms) begin transaction
11672
+ ---------------------------------
11673
+ LetsencryptPluginTest: test_truth
11674
+ ---------------------------------
11675
+  (0.1ms) rollback transaction
11676
+  (0.1ms) begin transaction
11677
+ -----------------------------------------------------------------
11678
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
11679
+ -----------------------------------------------------------------
11680
+ Loading private key...
11681
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
11682
+  (0.1ms) rollback transaction
11683
+  (0.1ms) begin transaction
11684
+ ------------------------------------
11685
+ LetsencryptPluginTest: test_register
11686
+ ------------------------------------
11687
+ Loading private key...
11688
+ Trying to register at Let's Encrypt service...
11689
+ Already registered.
11690
+  (0.1ms) rollback transaction
11691
+  (0.1ms) begin transaction
11692
+ -----------------------------------------------------------
11693
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
11694
+ -----------------------------------------------------------
11695
+ Loading private key...
11696
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11697
+  (0.1ms) rollback transaction
11698
+  (0.1ms) begin transaction
11699
+ --------------------------------------------------
11700
+ LetsencryptPluginTest: test_register_and_authorize
11701
+ --------------------------------------------------
11702
+ Loading private key...
11703
+ Trying to register at Let's Encrypt service...
11704
+ Already registered.
11705
+ Sending authorization request for: example.com...
11706
+  (0.1ms) rollback transaction
11707
+  (0.1ms) begin transaction
11708
+ -------------------------------------------------------------
11709
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
11710
+ -------------------------------------------------------------
11711
+ Loading private key...
11712
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11713
+  (0.0ms) rollback transaction
11714
+  (0.0ms) begin transaction
11715
+ ----------------------------------------------------------
11716
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
11717
+ ----------------------------------------------------------
11718
+ Loading private key...
11719
+  (0.0ms) rollback transaction
11720
+  (0.0ms) begin transaction
11721
+ -------------------------------------------------------------------
11722
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
11723
+ -------------------------------------------------------------------
11724
+ Loading private key...
11725
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
11726
+  (0.0ms) rollback transaction
11727
+  (0.0ms) begin transaction
11728
+ ----------------------------------------------------------
11729
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
11730
+ ----------------------------------------------------------
11731
+ Loading private key...
11732
+  (0.0ms) rollback transaction
11733
+  (0.0ms) begin transaction
11734
+ ------------------------------------------------------------------------
11735
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
11736
+ ------------------------------------------------------------------------
11737
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11738
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
11739
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11740
+ Rendered text template (0.0ms)
11741
+ Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 0.2ms)
11742
+  (0.1ms) rollback transaction
11743
+  (0.0ms) begin transaction
11744
+ ----------------------------------------------------------------------------------------------------------------
11745
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
11746
+ ----------------------------------------------------------------------------------------------------------------
11747
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11748
+ Parameters: {"challenge"=>"dG9rZW4="}
11749
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11750
+ Challenge failed - Request has invalid length!
11751
+ Rendered text template (0.0ms)
11752
+ Filter chain halted as :validate_length rendered or redirected
11753
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11754
+  (0.1ms) rollback transaction
11755
+  (0.0ms) begin transaction
11756
+ -----------------------------------------------------------------------------------------------------------------
11757
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
11758
+ -----------------------------------------------------------------------------------------------------------------
11759
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11760
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
11761
+ LetsencryptPlugin::Challenge Load (0.1ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11762
+ Challenge failed - Request has invalid length!
11763
+ Rendered text template (0.0ms)
11764
+ Filter chain halted as :validate_length rendered or redirected
11765
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
11766
+  (0.1ms) rollback transaction
11767
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11768
+  (0.1ms) begin transaction
11769
+ Fixture Delete (0.2ms) DELETE FROM "letsencrypt_plugin_challenges"
11770
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:07:56', '2016-01-29 17:07:56', 980190962)
11771
+ Fixture Insert (0.1ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-01-29 17:07:56', '2016-01-29 17:07:56', 298486374)
11772
+  (73.2ms) commit transaction
11773
+  (0.2ms) begin transaction
11774
+ ----------------------------------------------------------------------------------------------------------------
11775
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
11776
+ ----------------------------------------------------------------------------------------------------------------
11777
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11778
+ Parameters: {"challenge"=>"dG9rZW4="}
11779
+ LetsencryptPlugin::Challenge Load (0.3ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11780
+ Challenge failed - Request has invalid length!
11781
+ Rendered text template (0.0ms)
11782
+ Filter chain halted as :validate_length rendered or redirected
11783
+ Completed 400 Bad Request in 14ms (Views: 7.5ms | ActiveRecord: 0.3ms)
11784
+  (0.1ms) rollback transaction
11785
+  (0.1ms) begin transaction
11786
+ ------------------------------------------------------------------------
11787
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
11788
+ ------------------------------------------------------------------------
11789
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11790
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
11791
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11792
+ Rendered text template (0.0ms)
11793
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
11794
+  (0.1ms) rollback transaction
11795
+  (0.1ms) begin transaction
11796
+ -----------------------------------------------------------------------------------------------------------------
11797
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
11798
+ -----------------------------------------------------------------------------------------------------------------
11799
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11800
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
11801
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11802
+ Challenge failed - Request has invalid length!
11803
+ Rendered text template (0.0ms)
11804
+ Filter chain halted as :validate_length rendered or redirected
11805
+ Completed 400 Bad Request in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)
11806
+  (0.1ms) rollback transaction
11807
+  (0.1ms) begin transaction
11808
+ -------------------------------------------------------------------
11809
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
11810
+ -------------------------------------------------------------------
11811
+ Loading private key...
11812
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
11813
+  (0.1ms) rollback transaction
11814
+  (0.1ms) begin transaction
11815
+ -----------------------------------------------------------
11816
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
11817
+ -----------------------------------------------------------
11818
+ Loading private key...
11819
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11820
+  (0.1ms) rollback transaction
11821
+  (0.1ms) begin transaction
11822
+ --------------------------------------------------
11823
+ LetsencryptPluginTest: test_register_and_authorize
11824
+ --------------------------------------------------
11825
+ Loading private key...
11826
+ Trying to register at Let's Encrypt service...
11827
+ Already registered.
11828
+ Sending authorization request for: example.com...
11829
+  (0.1ms) rollback transaction
11830
+  (0.1ms) begin transaction
11831
+ -------------------------------------------------------------
11832
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
11833
+ -------------------------------------------------------------
11834
+ Loading private key...
11835
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11836
+  (0.1ms) rollback transaction
11837
+  (0.1ms) begin transaction
11838
+ ----------------------------------------------------------
11839
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
11840
+ ----------------------------------------------------------
11841
+ Loading private key...
11842
+  (0.1ms) rollback transaction
11843
+  (0.0ms) begin transaction
11844
+ ---------------------------------
11845
+ LetsencryptPluginTest: test_truth
11846
+ ---------------------------------
11847
+  (0.0ms) rollback transaction
11848
+  (0.0ms) begin transaction
11849
+ -----------------------------------------------------------------
11850
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
11851
+ -----------------------------------------------------------------
11852
+ Loading private key...
11853
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
11854
+  (0.0ms) rollback transaction
11855
+  (0.0ms) begin transaction
11856
+ -------------------------------------------------------------------
11857
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
11858
+ -------------------------------------------------------------------
11859
+ Loading private key...
11860
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
11861
+  (0.0ms) rollback transaction
11862
+  (0.0ms) begin transaction
11863
+ ----------------------------------------------------------
11864
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
11865
+ ----------------------------------------------------------
11866
+ Loading private key...
11867
+  (0.0ms) rollback transaction
11868
+  (0.0ms) begin transaction
11869
+ ------------------------------------
11870
+ LetsencryptPluginTest: test_register
11871
+ ------------------------------------
11872
+ Loading private key...
11873
+ Trying to register at Let's Encrypt service...
11874
+ Already registered.
11875
+  (0.1ms) rollback transaction
11876
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11877
+  (0.3ms) begin transaction
11878
+ Fixture Delete (0.4ms) DELETE FROM "letsencrypt_plugin_challenges"
11879
+ Fixture Insert (0.4ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-03-12 19:19:25', '2016-03-12 19:19:25', 980190962)
11880
+ Fixture Insert (0.2ms) INSERT INTO "letsencrypt_plugin_challenges" ("response", "created_at", "updated_at", "id") VALUES ('MyText', '2016-03-12 19:19:25', '2016-03-12 19:19:25', 298486374)
11881
+  (211.1ms) commit transaction
11882
+  (0.2ms) begin transaction
11883
+ ----------------------------------------------------------
11884
+ LetsencryptPluginTest: test_if_keysize_equal_4096_is_valid
11885
+ ----------------------------------------------------------
11886
+ Loading private key...
11887
+  (0.2ms) rollback transaction
11888
+  (0.1ms) begin transaction
11889
+ ------------------------------------
11890
+ LetsencryptPluginTest: test_register
11891
+ ------------------------------------
11892
+ Loading private key...
11893
+ Trying to register at Let's Encrypt service...
11894
+ Already registered.
11895
+  (0.2ms) rollback transaction
11896
+  (0.1ms) begin transaction
11897
+ -----------------------------------------------------------
11898
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_nil
11899
+ -----------------------------------------------------------
11900
+ Loading private key...
11901
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11902
+  (0.1ms) rollback transaction
11903
+  (0.1ms) begin transaction
11904
+ ---------------------------------
11905
+ LetsencryptPluginTest: test_truth
11906
+ ---------------------------------
11907
+  (0.1ms) rollback transaction
11908
+  (0.1ms) begin transaction
11909
+ ----------------------------------------------------------
11910
+ LetsencryptPluginTest: test_if_keysize_equal_2048_is_valid
11911
+ ----------------------------------------------------------
11912
+ Loading private key...
11913
+  (0.2ms) rollback transaction
11914
+  (0.1ms) begin transaction
11915
+ --------------------------------------------------
11916
+ LetsencryptPluginTest: test_register_and_authorize
11917
+ --------------------------------------------------
11918
+ Loading private key...
11919
+ Trying to register at Let's Encrypt service...
11920
+ Already registered.
11921
+ Sending authorization request for: example.com...
11922
+  (0.1ms) rollback transaction
11923
+  (0.1ms) begin transaction
11924
+ -------------------------------------------------------------
11925
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_empty
11926
+ -------------------------------------------------------------
11927
+ Loading private key...
11928
+ Private key is not set, please check your config/letsencrypt_plugin.yml file!
11929
+  (0.1ms) rollback transaction
11930
+  (0.1ms) begin transaction
11931
+ -------------------------------------------------------------------
11932
+ LetsencryptPluginTest: test_if_keysize_greater_than_4096_is_invalid
11933
+ -------------------------------------------------------------------
11934
+ Loading private key...
11935
+ Invalid key size: 8192. Required size is between 2048 - 4096 bits
11936
+  (0.1ms) rollback transaction
11937
+  (0.0ms) begin transaction
11938
+ -------------------------------------------------------------------
11939
+ LetsencryptPluginTest: test_if_keysize_smaller_than_2048_is_invalid
11940
+ -------------------------------------------------------------------
11941
+ Loading private key...
11942
+ Invalid key size: 1024. Required size is between 2048 - 4096 bits
11943
+  (0.1ms) rollback transaction
11944
+  (0.0ms) begin transaction
11945
+ -----------------------------------------------------------------
11946
+ LetsencryptPluginTest: test_if_fail_when_private_key_is_directory
11947
+ -----------------------------------------------------------------
11948
+ Loading private key...
11949
+ Can not open private key: /home/lgromanowski/prj/letsencrypt-plugin/test/dummy/public
11950
+  (0.1ms) rollback transaction
11951
+  (0.1ms) begin transaction
11952
+ ----------------------------------------------------------------------------------------------------------------
11953
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_when_is_smaller_than_128_bits
11954
+ ----------------------------------------------------------------------------------------------------------------
11955
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11956
+ Parameters: {"challenge"=>"dG9rZW4="}
11957
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11958
+ Challenge failed - Request has invalid length!
11959
+ Rendered text template (0.0ms)
11960
+ Filter chain halted as :validate_length rendered or redirected
11961
+ Completed 400 Bad Request in 10ms (Views: 5.1ms | ActiveRecord: 0.2ms)
11962
+  (0.1ms) rollback transaction
11963
+  (0.0ms) begin transaction
11964
+ ------------------------------------------------------------------------
11965
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_is_valid
11966
+ ------------------------------------------------------------------------
11967
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11968
+ Parameters: {"challenge"=>"rpzxDjD-8xrr5I1G_JBTEToVMYgjNjfSs-XZ62tRtgs"}
11969
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11970
+ Rendered text template (0.0ms)
11971
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11972
+  (0.1ms) rollback transaction
11973
+  (0.1ms) begin transaction
11974
+ -----------------------------------------------------------------------------------------------------------------
11975
+ LetsencryptPlugin::ApplicationControllerTest: test_if_challenge_request_is_invalid_if_it_is_larger_than_256_bytes
11976
+ -----------------------------------------------------------------------------------------------------------------
11977
+ Processing by LetsencryptPlugin::ApplicationController#index as HTML
11978
+ Parameters: {"challenge"=>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
11979
+ LetsencryptPlugin::Challenge Load (0.2ms) SELECT "letsencrypt_plugin_challenges".* FROM "letsencrypt_plugin_challenges" ORDER BY "letsencrypt_plugin_challenges"."id" ASC LIMIT 1
11980
+ Challenge failed - Request has invalid length!
11981
+ Rendered text template (0.0ms)
11982
+ Filter chain halted as :validate_length rendered or redirected
11983
+ Completed 400 Bad Request in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms)
11984
+  (0.1ms) rollback transaction