sus-fixtures-openssl 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36794229edbdabba437a99a67421f8f986bb6492000697855047556b26bc400e
4
- data.tar.gz: e8af0f9ca4310e18780457220b11ad5618b9d898de6680bd48efcdca9aa9ef45
3
+ metadata.gz: e391503d0c07a6041da6e9646e9b0e2b0a0abc538e76a7ef6b40faf32ae116e6
4
+ data.tar.gz: bab7eec2efbaad9fb0b37c5f748f579c5caad2f814b4408dbecb3476e6a477ef
5
5
  SHA512:
6
- metadata.gz: 543d9dcdc89a4ce34788a6d3db553957382dd4b1c48b759379d8176025af57d7e0a8e4fbfc8ef4b6e8da2b3a5dc2c23d7a870781f5270a855bc417111109e2c0
7
- data.tar.gz: ccb5dd75795f33098acc61115ff99487184b69d3f44e4bd2226f38bff28fbd4030acf4519c1f291ae770d9b8764da0e1c908a35af26eb77a7f8f92f73b0f70d8
6
+ metadata.gz: a0f2d73894c4e9bdf3b9a1815279c7772c2d3acb6b4c5c4c784aa6a481d3a5cc3bc35019bcce49750981e9ef8bc2cb1b40604b9d0a4a80c5727391dd1d841707
7
+ data.tar.gz: 27b8e3626c841541a31fc7a217c67c08aa1288346fd7e1ca13346bb894e06c82087d22879a39f6ae7242d4d5df939470baf8441adccd4d2e145926d16417c111
checksums.yaml.gz.sig CHANGED
Binary file
@@ -30,7 +30,7 @@ module Sus
30
30
  certificate.serial = 1
31
31
  certificate.version = 2
32
32
 
33
- certificate.not_before = Time.now
33
+ certificate.not_before = Time.now - 10
34
34
  certificate.not_after = Time.now + 3600
35
35
 
36
36
  extension_factory = ::OpenSSL::X509::ExtensionFactory.new
@@ -8,9 +8,14 @@ require_relative 'certificate_authority_context'
8
8
  module Sus
9
9
  module Fixtures
10
10
  module OpenSSL
11
- module HostCertificatesContext
11
+ module HostsCertificatesContext
12
12
  include CertificateAuthorityContext
13
-
13
+
14
+ # Override this to provide a list of host names.
15
+ def hosts
16
+ []
17
+ end
18
+
14
19
  def keys
15
20
  @keys ||= Hash[
16
21
  hosts.collect{|name| [name, ::OpenSSL::PKey::RSA.new(2048)]}
@@ -32,7 +37,7 @@ module Sus
32
37
  certificate.serial = 2
33
38
  certificate.version = 2
34
39
 
35
- certificate.not_before = Time.now
40
+ certificate.not_before = Time.now - 10
36
41
  certificate.not_after = Time.now + 3600
37
42
 
38
43
  extension_factory = ::OpenSSL::X509::ExtensionFactory.new
@@ -28,7 +28,7 @@ module Sus
28
28
 
29
29
  # We set the validity period to the past, so the certificate is invalid:
30
30
  certificate.not_before = Time.now - 3600
31
- certificate.not_after = Time.now
31
+ certificate.not_after = Time.now - 10
32
32
 
33
33
  extension_factory = ::OpenSSL::X509::ExtensionFactory.new()
34
34
  extension_factory.subject_certificate = certificate
@@ -32,7 +32,7 @@ module Sus
32
32
  certificate.version = 2
33
33
 
34
34
  # The certificate is valid for one hour:
35
- certificate.not_before = Time.now
35
+ certificate.not_before = Time.now - 10
36
36
  certificate.not_after = Time.now + 3600
37
37
 
38
38
  extension_factory = ::OpenSSL::X509::ExtensionFactory.new()
@@ -6,7 +6,7 @@
6
6
  module Sus
7
7
  module Fixtures
8
8
  module OpenSSL
9
- VERSION = "0.1.0"
9
+ VERSION = "0.2.1"
10
10
  end
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@
6
6
  require_relative 'openssl/version'
7
7
 
8
8
  require_relative 'openssl/certificate_authority_context'
9
- require_relative 'openssl/host_certificates_context'
9
+ require_relative 'openssl/hosts_certificates_context'
10
10
  require_relative 'openssl/valid_certificate_context'
11
11
  require_relative 'openssl/invalid_certificate_context'
12
12
  require_relative 'openssl/verified_certificate_context'
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- %mU*la�5#6f���\c��"v傯GO賆7�,{ě���
2
- or�-϶4*�D9�r��k���f��l����Sz��7�l6��� ��E������:�/.�'���3���y��ۉŃǤ9D�nH�{�,m�t #��ߴ(7HbO�N����ݫ ��w���d�id�P�UT��<�,�
1
+ {%叏�E�/�FJ%=�}��K���G'n�������s�7Bh��t�3Q�=�r�) T5߆��|3�F ͞�8�͸�my� �S�����X>��z���{ B��Q4��g���Մ��M��'����vX�yl���S�$��]�G�K1{a妨T�@��yn�L�@SC~��f�x=���l�i϶;`g�M=:��#a_G�[�&>l"[�~�^~ѡRҞՍ\�ϣ��š���%ⴹ�Q %��f1���C&�$����,V el]B<�-�vZ��ѿ��4���a��"y����Cg�3�,�\�E���tl�dټ��`���o��1f���^��}�Y�w�:(z;o'q|Q���S����[��
2
+ h��,�����
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus-fixtures-openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2023-08-26 00:00:00.000000000 Z
40
+ date: 2024-04-22 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: openssl
@@ -75,7 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - lib/sus/fixtures/openssl.rb
77
77
  - lib/sus/fixtures/openssl/certificate_authority_context.rb
78
- - lib/sus/fixtures/openssl/host_certificates_context.rb
78
+ - lib/sus/fixtures/openssl/hosts_certificates_context.rb
79
79
  - lib/sus/fixtures/openssl/invalid_certificate_context.rb
80
80
  - lib/sus/fixtures/openssl/valid_certificate_context.rb
81
81
  - lib/sus/fixtures/openssl/verified_certificate_context.rb
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.4.10
105
+ rubygems_version: 3.5.3
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Test fixtures for running with OpenSSL.
metadata.gz.sig CHANGED
Binary file