r509 0.10.0 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.mdown +2 -2
- data/Rakefile +2 -3
- data/bin/r509 +77 -80
- data/bin/r509-parse +4 -4
- data/doc/R509.html +60 -60
- data/doc/R509/ASN1.html +158 -48
- data/doc/R509/ASN1/GeneralName.html +157 -154
- data/doc/R509/ASN1/GeneralNames.html +246 -237
- data/doc/R509/CRL.html +41 -39
- data/doc/R509/CRL/Administrator.html +105 -100
- data/doc/R509/CRL/FileReaderWriter.html +146 -98
- data/doc/R509/CRL/ReaderWriter.html +57 -54
- data/doc/R509/CRL/SQLiteReaderWriter.html +727 -0
- data/doc/R509/CRL/SignedList.html +83 -80
- data/doc/R509/CSR.html +184 -162
- data/doc/R509/Cert.html +271 -269
- data/doc/R509/Cert/Extensions.html +62 -63
- data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +138 -108
- data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +100 -84
- data/doc/R509/Cert/Extensions/BasicConstraints.html +89 -88
- data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +87 -83
- data/doc/R509/Cert/Extensions/CertificatePolicies.html +78 -76
- data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +128 -125
- data/doc/R509/Cert/Extensions/GeneralNamesMixin.html +83 -78
- data/doc/R509/Cert/Extensions/InhibitAnyPolicy.html +69 -67
- data/doc/R509/Cert/Extensions/KeyUsage.html +138 -135
- data/doc/R509/Cert/Extensions/NameConstraints.html +82 -81
- data/doc/R509/Cert/Extensions/NoticeReference.html +59 -56
- data/doc/R509/Cert/Extensions/OCSPNoCheck.html +70 -69
- data/doc/R509/Cert/Extensions/PolicyConstraints.html +71 -69
- data/doc/R509/Cert/Extensions/PolicyInformation.html +63 -60
- data/doc/R509/Cert/Extensions/PolicyQualifiers.html +60 -57
- data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +91 -87
- data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +72 -71
- data/doc/R509/Cert/Extensions/UserNotice.html +60 -57
- data/doc/R509/Cert/Extensions/ValidationMixin.html +43 -40
- data/doc/R509/CertificateAuthority.html +39 -37
- data/doc/R509/CertificateAuthority/OptionsBuilder.html +58 -55
- data/doc/R509/CertificateAuthority/Signer.html +277 -60
- data/doc/R509/Config.html +40 -38
- data/doc/R509/Config/CAConfig.html +255 -188
- data/doc/R509/Config/CAConfigPool.html +64 -61
- data/doc/R509/Config/CertProfile.html +119 -116
- data/doc/R509/Config/SubjectItemPolicy.html +94 -93
- data/doc/R509/Engine.html +60 -56
- data/doc/R509/Helpers.html +99 -96
- data/doc/R509/MessageDigest.html +69 -68
- data/doc/R509/NameSanitizer.html +51 -48
- data/doc/R509/OCSP.html +39 -37
- data/doc/R509/OCSP/Request.html +39 -37
- data/doc/R509/OCSP/Request/Nonce.html +67 -67
- data/doc/R509/OCSP/Response.html +93 -90
- data/doc/R509/OIDMapper.html +48 -46
- data/doc/R509/PrivateKey.html +170 -169
- data/doc/R509/R509Error.html +45 -42
- data/doc/R509/SPKI.html +99 -89
- data/doc/R509/Subject.html +86 -83
- data/doc/R509/Validity.html +57 -57
- data/doc/R509/Validity/Checker.html +63 -93
- data/doc/R509/Validity/DefaultChecker.html +58 -55
- data/doc/R509/Validity/DefaultWriter.html +62 -59
- data/doc/R509/Validity/Status.html +77 -74
- data/doc/R509/Validity/Writer.html +75 -123
- data/doc/_index.html +37 -31
- data/doc/class_list.html +25 -27
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +221 -78
- data/doc/file.CONTRIBUTING.html +29 -30
- data/doc/file.LICENSE.html +29 -30
- data/doc/file.README.html +31 -32
- data/doc/file.YAML.html +33 -34
- data/doc/file.r509.html +39 -48
- data/doc/file_list.html +39 -30
- data/doc/frames.html +10 -21
- data/doc/index.html +31 -32
- data/doc/js/app.js +100 -71
- data/doc/js/full_list.js +168 -130
- data/doc/method_list.html +1788 -1119
- data/doc/top-level-namespace.html +45 -49
- data/lib/r509.rb +21 -7
- data/lib/r509/asn1.rb +45 -32
- data/lib/r509/cert.rb +45 -51
- data/lib/r509/cert/extensions/authority_info_access.rb +49 -23
- data/lib/r509/cert/extensions/authority_key_identifier.rb +16 -11
- data/lib/r509/cert/extensions/base.rb +22 -23
- data/lib/r509/cert/extensions/basic_constraints.rb +11 -12
- data/lib/r509/cert/extensions/certificate_policies.rb +26 -26
- data/lib/r509/cert/extensions/crl_distribution_points.rb +5 -7
- data/lib/r509/cert/extensions/extended_key_usage.rb +5 -5
- data/lib/r509/cert/extensions/inhibit_any_policy.rb +4 -3
- data/lib/r509/cert/extensions/key_usage.rb +5 -5
- data/lib/r509/cert/extensions/name_constraints.rb +16 -16
- data/lib/r509/cert/extensions/ocsp_no_check.rb +3 -3
- data/lib/r509/cert/extensions/policy_constraints.rb +8 -8
- data/lib/r509/cert/extensions/subject_alternative_name.rb +5 -4
- data/lib/r509/cert/extensions/subject_key_identifier.rb +5 -5
- data/lib/r509/cert/extensions/validation_mixin.rb +11 -10
- data/lib/r509/certificate_authority/options_builder.rb +19 -21
- data/lib/r509/certificate_authority/signer.rb +26 -27
- data/lib/r509/config.rb +1 -0
- data/lib/r509/config/ca_config.rb +70 -75
- data/lib/r509/config/cert_profile.rb +9 -8
- data/lib/r509/config/subject_item_policy.rb +25 -28
- data/lib/r509/crl/administrator.rb +19 -20
- data/lib/r509/crl/reader_writer.rb +10 -8
- data/lib/r509/crl/signed_list.rb +4 -4
- data/lib/r509/crl/sqlite_reader_writer.rb +75 -0
- data/lib/r509/csr.rb +54 -60
- data/lib/r509/ec-hack.rb +3 -2
- data/lib/r509/engine.rb +5 -6
- data/lib/r509/exceptions.rb +1 -1
- data/lib/r509/helpers.rb +11 -14
- data/lib/r509/io_helpers.rb +7 -7
- data/lib/r509/message_digest.rb +5 -6
- data/lib/r509/ocsp.rb +11 -13
- data/lib/r509/oid_mapper.rb +2 -2
- data/lib/r509/private_key.rb +28 -32
- data/lib/r509/spki.rb +17 -20
- data/lib/r509/subject.rb +26 -27
- data/lib/r509/trollop.rb +1 -0
- data/lib/r509/validity.rb +30 -21
- data/lib/r509/version.rb +4 -2
- data/r509.yaml +9 -17
- data/spec/asn1_spec.rb +145 -146
- data/spec/cert/extensions/authority_info_access_spec.rb +41 -41
- data/spec/cert/extensions/authority_key_identifier_spec.rb +29 -23
- data/spec/cert/extensions/base_spec.rb +38 -34
- data/spec/cert/extensions/basic_constraints_spec.rb +21 -21
- data/spec/cert/extensions/certificate_policies_spec.rb +99 -87
- data/spec/cert/extensions/crl_distribution_points_spec.rb +24 -25
- data/spec/cert/extensions/extended_key_usage_spec.rb +40 -36
- data/spec/cert/extensions/inhibit_any_policy_spec.rb +12 -12
- data/spec/cert/extensions/key_usage_spec.rb +44 -39
- data/spec/cert/extensions/name_constraints_spec.rb +83 -83
- data/spec/cert/extensions/ocsp_no_check_spec.rb +10 -10
- data/spec/cert/extensions/policy_constraints_spec.rb +19 -19
- data/spec/cert/extensions/subject_alternative_name_spec.rb +46 -47
- data/spec/cert/extensions/subject_key_identifier_spec.rb +10 -10
- data/spec/cert_spec.rb +105 -101
- data/spec/certificate_authority/options_builder_spec.rb +90 -90
- data/spec/certificate_authority/signer_spec.rb +41 -41
- data/spec/config/ca_config_spec.rb +169 -119
- data/spec/config/cert_profile_spec.rb +33 -33
- data/spec/config/subject_item_policy_spec.rb +22 -22
- data/spec/crl/administrator_spec.rb +65 -65
- data/spec/crl/reader_writer_spec.rb +20 -19
- data/spec/crl/signed_list_spec.rb +26 -26
- data/spec/crl/sqlite_reader_writer_spec.rb +42 -0
- data/spec/csr_spec.rb +149 -145
- data/spec/engine_spec.rb +14 -14
- data/spec/fixtures.rb +56 -39
- data/spec/fixtures/crl_list.sql +13 -0
- data/spec/fixtures/csr1.der +0 -0
- data/spec/fixtures/csr1.pem +6 -6
- data/spec/message_digest_spec.rb +43 -43
- data/spec/ocsp_spec.rb +25 -25
- data/spec/oid_mapper_spec.rb +18 -19
- data/spec/private_key_spec.rb +79 -81
- data/spec/r509_spec.rb +16 -16
- data/spec/spec_helper.rb +3 -3
- data/spec/spki_spec.rb +94 -94
- data/spec/subject_spec.rb +107 -107
- data/spec/validity_spec.rb +25 -25
- metadata +113 -111
- metadata.gz.sig +0 -0
data/spec/validity_spec.rb
CHANGED
@@ -6,54 +6,54 @@ describe R509::Validity do
|
|
6
6
|
context "status" do
|
7
7
|
it "has no status" do
|
8
8
|
status = R509::Validity::Status.new
|
9
|
-
status.status.
|
10
|
-
status.ocsp_status.
|
9
|
+
expect(status.status).to be_nil
|
10
|
+
expect(status.ocsp_status).to eq(OpenSSL::OCSP::V_CERTSTATUS_UNKNOWN)
|
11
11
|
end
|
12
12
|
it "has a valid status" do
|
13
13
|
status = R509::Validity::Status.new(:status => R509::Validity::VALID)
|
14
|
-
status.status.
|
15
|
-
status.ocsp_status.
|
14
|
+
expect(status.status).to eq(R509::Validity::VALID)
|
15
|
+
expect(status.ocsp_status).to eq(OpenSSL::OCSP::V_CERTSTATUS_GOOD)
|
16
16
|
end
|
17
17
|
it "has a revoked status" do
|
18
18
|
status = R509::Validity::Status.new(:status => R509::Validity::REVOKED)
|
19
|
-
status.status.
|
20
|
-
status.ocsp_status.
|
21
|
-
status.revocation_time.
|
22
|
-
status.revocation_reason.
|
19
|
+
expect(status.status).to eq(R509::Validity::REVOKED)
|
20
|
+
expect(status.ocsp_status).to eq(OpenSSL::OCSP::V_CERTSTATUS_REVOKED)
|
21
|
+
expect(status.revocation_time).not_to be_nil
|
22
|
+
expect(status.revocation_reason).to eq(0)
|
23
23
|
end
|
24
24
|
it "has an unknown status" do
|
25
25
|
status = R509::Validity::Status.new(:status => R509::Validity::UNKNOWN)
|
26
|
-
status.status.
|
27
|
-
status.ocsp_status.
|
26
|
+
expect(status.status).to eq(R509::Validity::UNKNOWN)
|
27
|
+
expect(status.ocsp_status).to eq(OpenSSL::OCSP::V_CERTSTATUS_UNKNOWN)
|
28
28
|
end
|
29
29
|
it "has some other status that we don't know about" do
|
30
30
|
status = R509::Validity::Status.new(:status => 10101010101)
|
31
|
-
status.status.
|
32
|
-
status.ocsp_status.
|
31
|
+
expect(status.status).to eq(10101010101)
|
32
|
+
expect(status.ocsp_status).to eq(OpenSSL::OCSP::V_CERTSTATUS_UNKNOWN)
|
33
33
|
end
|
34
34
|
it "has no revocation time or reason specified (and isn't revoked)" do
|
35
35
|
status = R509::Validity::Status.new
|
36
|
-
status.revocation_time.
|
37
|
-
status.revocation_reason.
|
36
|
+
expect(status.revocation_time).to be_nil
|
37
|
+
expect(status.revocation_reason).to eq(0)
|
38
38
|
end
|
39
39
|
it "specifies a revocation time" do
|
40
40
|
time = Time.now.to_i
|
41
41
|
status = R509::Validity::Status.new(:revocation_time => time)
|
42
|
-
status.revocation_time.
|
42
|
+
expect(status.revocation_time).to eq(time)
|
43
43
|
end
|
44
44
|
it "specifies a revocation reason" do
|
45
45
|
status = R509::Validity::Status.new(:revocation_reason => 2)
|
46
|
-
status.revocation_reason.
|
46
|
+
expect(status.revocation_reason).to eq(2)
|
47
47
|
end
|
48
48
|
end
|
49
49
|
context "writer base" do
|
50
50
|
it "calls issue" do
|
51
51
|
writer = R509::Validity::Writer.new
|
52
|
-
expect { writer.issue("a",1) }.to raise_error(NotImplementedError, "You must call #issue on a subclass of Writer")
|
52
|
+
expect { writer.issue("a", 1) }.to raise_error(NotImplementedError, "You must call #issue on a subclass of Writer")
|
53
53
|
end
|
54
54
|
it "calls revoke" do
|
55
55
|
writer = R509::Validity::Writer.new
|
56
|
-
expect { writer.revoke("a",1, 1) }.to raise_error(NotImplementedError, "You must call #revoke on a subclass of Writer")
|
56
|
+
expect { writer.revoke("a", 1, 1) }.to raise_error(NotImplementedError, "You must call #revoke on a subclass of Writer")
|
57
57
|
end
|
58
58
|
it "calls is_available?" do
|
59
59
|
writer = R509::Validity::Writer.new
|
@@ -63,7 +63,7 @@ describe R509::Validity do
|
|
63
63
|
context "checker base" do
|
64
64
|
it "calls check" do
|
65
65
|
checker = R509::Validity::Checker.new
|
66
|
-
expect { checker.check("a",1) }.to raise_error(NotImplementedError, "You must call #check on a subclass of Checker")
|
66
|
+
expect { checker.check("a", 1) }.to raise_error(NotImplementedError, "You must call #check on a subclass of Checker")
|
67
67
|
end
|
68
68
|
it "calls is_available?" do
|
69
69
|
checker = R509::Validity::Checker.new
|
@@ -73,26 +73,26 @@ describe R509::Validity do
|
|
73
73
|
context "writer default" do
|
74
74
|
it "calls issue" do
|
75
75
|
writer = R509::Validity::DefaultWriter.new
|
76
|
-
writer.issue("a",1)
|
76
|
+
writer.issue("a", 1)
|
77
77
|
end
|
78
78
|
it "calls revoke" do
|
79
79
|
writer = R509::Validity::DefaultWriter.new
|
80
|
-
writer.revoke("a",1, 1)
|
80
|
+
writer.revoke("a", 1, 1)
|
81
81
|
end
|
82
82
|
it "calls is_available?" do
|
83
83
|
writer = R509::Validity::DefaultWriter.new
|
84
|
-
writer.is_available
|
84
|
+
expect(writer.is_available?).to eq(true)
|
85
85
|
end
|
86
86
|
end
|
87
87
|
context "checker default" do
|
88
88
|
it "calls check" do
|
89
89
|
checker = R509::Validity::DefaultChecker.new
|
90
|
-
status = checker.check("a",1)
|
91
|
-
status.status.
|
90
|
+
status = checker.check("a", 1)
|
91
|
+
expect(status.status).to eq(R509::Validity::VALID)
|
92
92
|
end
|
93
93
|
it "calls is_available?" do
|
94
94
|
checker = R509::Validity::DefaultChecker.new
|
95
|
-
checker.is_available
|
95
|
+
expect(checker.is_available?).to eq(true)
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r509
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '1.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Kehrer
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDPDCCAiSgAwIBAgIBAzANBgkqhkiG9w0BAQUFADBEMRYwFAYDVQQDDA1wYXVs
|
14
14
|
Lmwua2VocmVyMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
|
15
|
-
|
15
|
+
FgNjb20wHhcNMTYxMjA2MTUzMDAyWhcNMTcxMjA2MTUzMDAyWjBEMRYwFAYDVQQD
|
16
16
|
DA1wYXVsLmwua2VocmVyMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJ
|
17
17
|
k/IsZAEZFgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLVC6U
|
18
18
|
0ZyX4C4HllJxHW0Uq39bvRvfNXc0RXMSvIRklxjupx3EICVATpAJzg4qBxbpxRTe
|
@@ -20,58 +20,57 @@ cert_chain:
|
|
20
20
|
7pc1ObprB4pM2j3O6JtPVzmJ/PGACjtyg4bys6bx7JQJW5liunK26mS6w6mAAcAV
|
21
21
|
scAz7oh6fmOI0OSS45l3ycOEh5sb42cZzs7TNzcvVmEppTRa4wBP4/eDTuohxlPH
|
22
22
|
skuIPWcdU6YTo2LWwqEaGgUItj8lRqXGDcEZ1FhKyZ6HUD3l1zPGxojW8BKr0Svj
|
23
|
-
/cMP+y0YH5OeoD+
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
lYMLMTFSyjE66v5QiUlZ9V4oV6O/MPS9fXPxog3TCsYpgfsgA+RlO8I=
|
23
|
+
/cMP+y0YH5OeoD+vAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0G
|
24
|
+
A1UdDgQWBBRG/XG7L1orNzHDGQaIv97hRgJYajANBgkqhkiG9w0BAQUFAAOCAQEA
|
25
|
+
nhyFPJjIrxxka6vXSxaeSSLAJ6q/oeRqHxoJtT46JYPWeeT7j/vjFwS96oY5gWJk
|
26
|
+
STjSuGp+wFKKrdttswO2+GzpoTrOabQMw6kg1Y0hYXjJ5O52EDHmDPFKXK+yOYkK
|
27
|
+
GOAQZ8KXEnczOXTWiigLkwkEI5eH+vCMYSSvVpYlSmsgj6nYjl0K+XxWfXseBLv2
|
28
|
+
rLKOPJOyqpW2fuOxutEfQ3ZvgjeuzUnjXSuOuwZNrQSOODC2sYXyebd7UbjU+AsD
|
29
|
+
eJKxcHs4mnzJUqy/5FZbS/i8lMYMDy0elcc44zd+qDsY7zreRzpoB2XinMWV99vd
|
30
|
+
rHOwDzJDt8KFQ4zf0Bsrvg==
|
32
31
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
32
|
+
date: 2016-12-06 00:00:00.000000000 Z
|
34
33
|
dependencies:
|
35
34
|
- !ruby/object:Gem::Dependency
|
36
35
|
name: rspec
|
37
36
|
requirement: !ruby/object:Gem::Requirement
|
38
37
|
requirements:
|
39
|
-
- -
|
38
|
+
- - "~>"
|
40
39
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
40
|
+
version: '3.0'
|
42
41
|
type: :development
|
43
42
|
prerelease: false
|
44
43
|
version_requirements: !ruby/object:Gem::Requirement
|
45
44
|
requirements:
|
46
|
-
- -
|
45
|
+
- - "~>"
|
47
46
|
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
47
|
+
version: '3.0'
|
49
48
|
- !ruby/object:Gem::Dependency
|
50
49
|
name: rake
|
51
50
|
requirement: !ruby/object:Gem::Requirement
|
52
51
|
requirements:
|
53
|
-
- -
|
52
|
+
- - ">="
|
54
53
|
- !ruby/object:Gem::Version
|
55
54
|
version: '0'
|
56
55
|
type: :development
|
57
56
|
prerelease: false
|
58
57
|
version_requirements: !ruby/object:Gem::Requirement
|
59
58
|
requirements:
|
60
|
-
- -
|
59
|
+
- - ">="
|
61
60
|
- !ruby/object:Gem::Version
|
62
61
|
version: '0'
|
63
62
|
- !ruby/object:Gem::Dependency
|
64
63
|
name: simplecov
|
65
64
|
requirement: !ruby/object:Gem::Requirement
|
66
65
|
requirements:
|
67
|
-
- -
|
66
|
+
- - ">="
|
68
67
|
- !ruby/object:Gem::Version
|
69
68
|
version: '0'
|
70
69
|
type: :development
|
71
70
|
prerelease: false
|
72
71
|
version_requirements: !ruby/object:Gem::Requirement
|
73
72
|
requirements:
|
74
|
-
- -
|
73
|
+
- - ">="
|
75
74
|
- !ruby/object:Gem::Version
|
76
75
|
version: '0'
|
77
76
|
description: A module that allows you to create CSRs, issue certs off a CA, view the
|
@@ -83,12 +82,93 @@ executables:
|
|
83
82
|
extensions: []
|
84
83
|
extra_rdoc_files: []
|
85
84
|
files:
|
86
|
-
- README.mdown
|
87
85
|
- CONTRIBUTING.mdown
|
88
86
|
- LICENSE
|
89
|
-
-
|
87
|
+
- README.mdown
|
90
88
|
- Rakefile
|
89
|
+
- bin/r509
|
90
|
+
- bin/r509-parse
|
91
|
+
- doc/R509.html
|
92
|
+
- doc/R509/ASN1.html
|
93
|
+
- doc/R509/ASN1/GeneralName.html
|
94
|
+
- doc/R509/ASN1/GeneralNames.html
|
95
|
+
- doc/R509/CRL.html
|
96
|
+
- doc/R509/CRL/Administrator.html
|
97
|
+
- doc/R509/CRL/FileReaderWriter.html
|
98
|
+
- doc/R509/CRL/ReaderWriter.html
|
99
|
+
- doc/R509/CRL/SQLiteReaderWriter.html
|
100
|
+
- doc/R509/CRL/SignedList.html
|
101
|
+
- doc/R509/CSR.html
|
102
|
+
- doc/R509/Cert.html
|
103
|
+
- doc/R509/Cert/Extensions.html
|
104
|
+
- doc/R509/Cert/Extensions/AuthorityInfoAccess.html
|
105
|
+
- doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html
|
106
|
+
- doc/R509/Cert/Extensions/BasicConstraints.html
|
107
|
+
- doc/R509/Cert/Extensions/CRLDistributionPoints.html
|
108
|
+
- doc/R509/Cert/Extensions/CertificatePolicies.html
|
109
|
+
- doc/R509/Cert/Extensions/ExtendedKeyUsage.html
|
110
|
+
- doc/R509/Cert/Extensions/GeneralNamesMixin.html
|
111
|
+
- doc/R509/Cert/Extensions/InhibitAnyPolicy.html
|
112
|
+
- doc/R509/Cert/Extensions/KeyUsage.html
|
113
|
+
- doc/R509/Cert/Extensions/NameConstraints.html
|
114
|
+
- doc/R509/Cert/Extensions/NoticeReference.html
|
115
|
+
- doc/R509/Cert/Extensions/OCSPNoCheck.html
|
116
|
+
- doc/R509/Cert/Extensions/PolicyConstraints.html
|
117
|
+
- doc/R509/Cert/Extensions/PolicyInformation.html
|
118
|
+
- doc/R509/Cert/Extensions/PolicyQualifiers.html
|
119
|
+
- doc/R509/Cert/Extensions/SubjectAlternativeName.html
|
120
|
+
- doc/R509/Cert/Extensions/SubjectKeyIdentifier.html
|
121
|
+
- doc/R509/Cert/Extensions/UserNotice.html
|
122
|
+
- doc/R509/Cert/Extensions/ValidationMixin.html
|
123
|
+
- doc/R509/CertificateAuthority.html
|
124
|
+
- doc/R509/CertificateAuthority/OptionsBuilder.html
|
125
|
+
- doc/R509/CertificateAuthority/Signer.html
|
126
|
+
- doc/R509/Config.html
|
127
|
+
- doc/R509/Config/CAConfig.html
|
128
|
+
- doc/R509/Config/CAConfigPool.html
|
129
|
+
- doc/R509/Config/CertProfile.html
|
130
|
+
- doc/R509/Config/SubjectItemPolicy.html
|
131
|
+
- doc/R509/Engine.html
|
132
|
+
- doc/R509/Helpers.html
|
133
|
+
- doc/R509/MessageDigest.html
|
134
|
+
- doc/R509/NameSanitizer.html
|
135
|
+
- doc/R509/OCSP.html
|
136
|
+
- doc/R509/OCSP/Request.html
|
137
|
+
- doc/R509/OCSP/Request/Nonce.html
|
138
|
+
- doc/R509/OCSP/Response.html
|
139
|
+
- doc/R509/OIDMapper.html
|
140
|
+
- doc/R509/PrivateKey.html
|
141
|
+
- doc/R509/R509Error.html
|
142
|
+
- doc/R509/SPKI.html
|
143
|
+
- doc/R509/Subject.html
|
144
|
+
- doc/R509/Validity.html
|
145
|
+
- doc/R509/Validity/Checker.html
|
146
|
+
- doc/R509/Validity/DefaultChecker.html
|
147
|
+
- doc/R509/Validity/DefaultWriter.html
|
148
|
+
- doc/R509/Validity/Status.html
|
149
|
+
- doc/R509/Validity/Writer.html
|
150
|
+
- doc/_index.html
|
151
|
+
- doc/class_list.html
|
152
|
+
- doc/css/common.css
|
153
|
+
- doc/css/full_list.css
|
154
|
+
- doc/css/style.css
|
155
|
+
- doc/file.CONTRIBUTING.html
|
156
|
+
- doc/file.LICENSE.html
|
157
|
+
- doc/file.README.html
|
158
|
+
- doc/file.YAML.html
|
159
|
+
- doc/file.r509.html
|
160
|
+
- doc/file_list.html
|
161
|
+
- doc/frames.html
|
162
|
+
- doc/index.html
|
163
|
+
- doc/js/app.js
|
164
|
+
- doc/js/full_list.js
|
165
|
+
- doc/js/jquery.js
|
166
|
+
- doc/method_list.html
|
167
|
+
- doc/top-level-namespace.html
|
168
|
+
- lib/r509.rb
|
91
169
|
- lib/r509/asn1.rb
|
170
|
+
- lib/r509/cert.rb
|
171
|
+
- lib/r509/cert/extensions.rb
|
92
172
|
- lib/r509/cert/extensions/authority_info_access.rb
|
93
173
|
- lib/r509/cert/extensions/authority_key_identifier.rb
|
94
174
|
- lib/r509/cert/extensions/base.rb
|
@@ -104,17 +184,16 @@ files:
|
|
104
184
|
- lib/r509/cert/extensions/subject_alternative_name.rb
|
105
185
|
- lib/r509/cert/extensions/subject_key_identifier.rb
|
106
186
|
- lib/r509/cert/extensions/validation_mixin.rb
|
107
|
-
- lib/r509/cert/extensions.rb
|
108
|
-
- lib/r509/cert.rb
|
109
187
|
- lib/r509/certificate_authority/options_builder.rb
|
110
188
|
- lib/r509/certificate_authority/signer.rb
|
189
|
+
- lib/r509/config.rb
|
111
190
|
- lib/r509/config/ca_config.rb
|
112
191
|
- lib/r509/config/cert_profile.rb
|
113
192
|
- lib/r509/config/subject_item_policy.rb
|
114
|
-
- lib/r509/config.rb
|
115
193
|
- lib/r509/crl/administrator.rb
|
116
194
|
- lib/r509/crl/reader_writer.rb
|
117
195
|
- lib/r509/crl/signed_list.rb
|
196
|
+
- lib/r509/crl/sqlite_reader_writer.rb
|
118
197
|
- lib/r509/csr.rb
|
119
198
|
- lib/r509/ec-hack.rb
|
120
199
|
- lib/r509/engine.rb
|
@@ -130,9 +209,7 @@ files:
|
|
130
209
|
- lib/r509/trollop.rb
|
131
210
|
- lib/r509/validity.rb
|
132
211
|
- lib/r509/version.rb
|
133
|
-
-
|
134
|
-
- bin/r509
|
135
|
-
- bin/r509-parse
|
212
|
+
- r509.yaml
|
136
213
|
- spec/asn1_spec.rb
|
137
214
|
- spec/cert/extensions/authority_info_access_spec.rb
|
138
215
|
- spec/cert/extensions/authority_key_identifier_spec.rb
|
@@ -157,8 +234,10 @@ files:
|
|
157
234
|
- spec/crl/administrator_spec.rb
|
158
235
|
- spec/crl/reader_writer_spec.rb
|
159
236
|
- spec/crl/signed_list_spec.rb
|
237
|
+
- spec/crl/sqlite_reader_writer_spec.rb
|
160
238
|
- spec/csr_spec.rb
|
161
239
|
- spec/engine_spec.rb
|
240
|
+
- spec/fixtures.rb
|
162
241
|
- spec/fixtures/cert1.der
|
163
242
|
- spec/fixtures/cert1.pem
|
164
243
|
- spec/fixtures/cert1_public_key_modulus.txt
|
@@ -187,6 +266,7 @@ files:
|
|
187
266
|
- spec/fixtures/config_test_minimal.yaml
|
188
267
|
- spec/fixtures/config_test_password.yaml
|
189
268
|
- spec/fixtures/config_test_various.yaml
|
269
|
+
- spec/fixtures/crl_list.sql
|
190
270
|
- spec/fixtures/crl_list_file.txt
|
191
271
|
- spec/fixtures/crl_with_reason.pem
|
192
272
|
- spec/fixtures/csr1.der
|
@@ -255,7 +335,6 @@ files:
|
|
255
335
|
- spec/fixtures/test_ca_subroot_ocsp.key
|
256
336
|
- spec/fixtures/test_ca_subroot_ocsp_response.der
|
257
337
|
- spec/fixtures/unknown_oid.csr
|
258
|
-
- spec/fixtures.rb
|
259
338
|
- spec/message_digest_spec.rb
|
260
339
|
- spec/ocsp_spec.rb
|
261
340
|
- spec/oid_mapper_spec.rb
|
@@ -265,85 +344,9 @@ files:
|
|
265
344
|
- spec/spki_spec.rb
|
266
345
|
- spec/subject_spec.rb
|
267
346
|
- spec/validity_spec.rb
|
268
|
-
- doc/_index.html
|
269
|
-
- doc/class_list.html
|
270
|
-
- doc/css/common.css
|
271
|
-
- doc/css/full_list.css
|
272
|
-
- doc/css/style.css
|
273
|
-
- doc/file.CONTRIBUTING.html
|
274
|
-
- doc/file.LICENSE.html
|
275
|
-
- doc/file.r509.html
|
276
|
-
- doc/file.README.html
|
277
|
-
- doc/file.YAML.html
|
278
|
-
- doc/file_list.html
|
279
|
-
- doc/frames.html
|
280
|
-
- doc/index.html
|
281
|
-
- doc/js/app.js
|
282
|
-
- doc/js/full_list.js
|
283
|
-
- doc/js/jquery.js
|
284
|
-
- doc/method_list.html
|
285
|
-
- doc/R509/ASN1/GeneralName.html
|
286
|
-
- doc/R509/ASN1/GeneralNames.html
|
287
|
-
- doc/R509/ASN1.html
|
288
|
-
- doc/R509/Cert/Extensions/AuthorityInfoAccess.html
|
289
|
-
- doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html
|
290
|
-
- doc/R509/Cert/Extensions/BasicConstraints.html
|
291
|
-
- doc/R509/Cert/Extensions/CertificatePolicies.html
|
292
|
-
- doc/R509/Cert/Extensions/CRLDistributionPoints.html
|
293
|
-
- doc/R509/Cert/Extensions/ExtendedKeyUsage.html
|
294
|
-
- doc/R509/Cert/Extensions/GeneralNamesMixin.html
|
295
|
-
- doc/R509/Cert/Extensions/InhibitAnyPolicy.html
|
296
|
-
- doc/R509/Cert/Extensions/KeyUsage.html
|
297
|
-
- doc/R509/Cert/Extensions/NameConstraints.html
|
298
|
-
- doc/R509/Cert/Extensions/NoticeReference.html
|
299
|
-
- doc/R509/Cert/Extensions/OCSPNoCheck.html
|
300
|
-
- doc/R509/Cert/Extensions/PolicyConstraints.html
|
301
|
-
- doc/R509/Cert/Extensions/PolicyInformation.html
|
302
|
-
- doc/R509/Cert/Extensions/PolicyQualifiers.html
|
303
|
-
- doc/R509/Cert/Extensions/SubjectAlternativeName.html
|
304
|
-
- doc/R509/Cert/Extensions/SubjectKeyIdentifier.html
|
305
|
-
- doc/R509/Cert/Extensions/UserNotice.html
|
306
|
-
- doc/R509/Cert/Extensions/ValidationMixin.html
|
307
|
-
- doc/R509/Cert/Extensions.html
|
308
|
-
- doc/R509/Cert.html
|
309
|
-
- doc/R509/CertificateAuthority/OptionsBuilder.html
|
310
|
-
- doc/R509/CertificateAuthority/Signer.html
|
311
|
-
- doc/R509/CertificateAuthority.html
|
312
|
-
- doc/R509/Config/CAConfig.html
|
313
|
-
- doc/R509/Config/CAConfigPool.html
|
314
|
-
- doc/R509/Config/CertProfile.html
|
315
|
-
- doc/R509/Config/SubjectItemPolicy.html
|
316
|
-
- doc/R509/Config.html
|
317
|
-
- doc/R509/CRL/Administrator.html
|
318
|
-
- doc/R509/CRL/FileReaderWriter.html
|
319
|
-
- doc/R509/CRL/ReaderWriter.html
|
320
|
-
- doc/R509/CRL/SignedList.html
|
321
|
-
- doc/R509/CRL.html
|
322
|
-
- doc/R509/CSR.html
|
323
|
-
- doc/R509/Engine.html
|
324
|
-
- doc/R509/Helpers.html
|
325
|
-
- doc/R509/MessageDigest.html
|
326
|
-
- doc/R509/NameSanitizer.html
|
327
|
-
- doc/R509/OCSP/Request/Nonce.html
|
328
|
-
- doc/R509/OCSP/Request.html
|
329
|
-
- doc/R509/OCSP/Response.html
|
330
|
-
- doc/R509/OCSP.html
|
331
|
-
- doc/R509/OIDMapper.html
|
332
|
-
- doc/R509/PrivateKey.html
|
333
|
-
- doc/R509/R509Error.html
|
334
|
-
- doc/R509/SPKI.html
|
335
|
-
- doc/R509/Subject.html
|
336
|
-
- doc/R509/Validity/Checker.html
|
337
|
-
- doc/R509/Validity/DefaultChecker.html
|
338
|
-
- doc/R509/Validity/DefaultWriter.html
|
339
|
-
- doc/R509/Validity/Status.html
|
340
|
-
- doc/R509/Validity/Writer.html
|
341
|
-
- doc/R509/Validity.html
|
342
|
-
- doc/R509.html
|
343
|
-
- doc/top-level-namespace.html
|
344
347
|
homepage: http://r509.org
|
345
348
|
licenses:
|
346
|
-
- Apache
|
349
|
+
- Apache-2.0
|
347
350
|
metadata: {}
|
348
351
|
post_install_message:
|
349
352
|
rdoc_options: []
|
@@ -351,17 +354,17 @@ require_paths:
|
|
351
354
|
- lib
|
352
355
|
required_ruby_version: !ruby/object:Gem::Requirement
|
353
356
|
requirements:
|
354
|
-
- -
|
357
|
+
- - ">="
|
355
358
|
- !ruby/object:Gem::Version
|
356
359
|
version: 1.9.3
|
357
360
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
358
361
|
requirements:
|
359
|
-
- -
|
362
|
+
- - ">="
|
360
363
|
- !ruby/object:Gem::Version
|
361
364
|
version: '0'
|
362
365
|
requirements: []
|
363
366
|
rubyforge_project:
|
364
|
-
rubygems_version: 2.
|
367
|
+
rubygems_version: 2.6.8
|
365
368
|
signing_key:
|
366
369
|
specification_version: 4
|
367
370
|
summary: A (relatively) simple X.509 certification authority API
|
@@ -378,4 +381,3 @@ test_files:
|
|
378
381
|
- spec/spki_spec.rb
|
379
382
|
- spec/subject_spec.rb
|
380
383
|
- spec/validity_spec.rb
|
381
|
-
has_rdoc:
|