r509 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -0
- data/CONTRIBUTING.mdown +21 -0
- data/LICENSE +13 -0
- data/README.mdown +548 -0
- data/Rakefile +5 -0
- data/bin/r509 +16 -17
- data/doc/R509.html +42 -26
- data/doc/R509/ASN1.html +22 -16
- data/doc/R509/ASN1/GeneralName.html +180 -173
- data/doc/R509/ASN1/GeneralNames.html +390 -62
- data/doc/R509/CRL.html +9 -7
- data/doc/R509/CRL/Administrator.html +208 -623
- data/doc/R509/CRL/FileReaderWriter.html +856 -0
- data/doc/R509/CRL/ReaderWriter.html +524 -0
- data/doc/R509/CRL/SignedList.html +29 -42
- data/doc/R509/CSR.html +248 -333
- data/doc/R509/Cert.html +364 -491
- data/doc/R509/Cert/Extensions.html +134 -43
- data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +335 -65
- data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +201 -102
- data/doc/R509/Cert/Extensions/BasicConstraints.html +297 -68
- data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +690 -77
- data/doc/R509/Cert/Extensions/CertificatePolicies.html +293 -43
- data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +321 -173
- data/doc/R509/Cert/Extensions/GeneralNamesMixin.html +656 -0
- data/doc/R509/Cert/Extensions/InhibitAnyPolicy.html +270 -42
- data/doc/R509/Cert/Extensions/KeyUsage.html +334 -184
- data/doc/R509/Cert/Extensions/NameConstraints.html +363 -93
- data/doc/R509/{ASN1 → Cert/Extensions}/NoticeReference.html +209 -48
- data/doc/R509/Cert/Extensions/OCSPNoCheck.html +244 -17
- data/doc/R509/Cert/Extensions/PolicyConstraints.html +322 -71
- data/doc/R509/{ASN1 → Cert/Extensions}/PolicyInformation.html +204 -43
- data/doc/R509/{ASN1 → Cert/Extensions}/PolicyQualifiers.html +205 -48
- data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +348 -143
- data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +165 -13
- data/doc/R509/{ASN1 → Cert/Extensions}/UserNotice.html +204 -43
- data/doc/R509/Cert/Extensions/ValidationMixin.html +120 -0
- data/doc/R509/CertificateAuthority.html +9 -7
- data/doc/R509/CertificateAuthority/OptionsBuilder.html +475 -0
- data/doc/R509/CertificateAuthority/Signer.html +149 -198
- data/doc/R509/Config.html +10 -8
- data/doc/R509/Config/CAConfig.html +708 -625
- data/doc/R509/Config/CAConfigPool.html +179 -31
- data/doc/R509/Config/CertProfile.html +1544 -0
- data/doc/R509/Config/SubjectItemPolicy.html +437 -99
- data/doc/R509/Engine.html +14 -28
- data/doc/R509/Helpers.html +1014 -0
- data/doc/R509/MessageDigest.html +73 -25
- data/doc/R509/NameSanitizer.html +39 -39
- data/doc/R509/OCSP.html +5 -5
- data/doc/R509/OCSP/Request.html +5 -5
- data/doc/R509/OCSP/Request/Nonce.html +5 -5
- data/doc/R509/OCSP/Response.html +7 -7
- data/doc/R509/OIDMapper.html +121 -6
- data/doc/R509/PrivateKey.html +226 -227
- data/doc/R509/R509Error.html +5 -5
- data/doc/R509/SPKI.html +244 -342
- data/doc/R509/Subject.html +241 -70
- data/doc/R509/Validity.html +5 -5
- data/doc/R509/Validity/Checker.html +5 -5
- data/doc/R509/Validity/DefaultChecker.html +5 -9
- data/doc/R509/Validity/DefaultWriter.html +5 -9
- data/doc/R509/Validity/Status.html +5 -5
- data/doc/R509/Validity/Writer.html +5 -5
- data/doc/_index.html +92 -30
- data/doc/class_list.html +2 -2
- data/doc/file.CONTRIBUTING.html +96 -0
- data/doc/file.LICENSE.html +87 -0
- data/doc/file.README.html +279 -389
- data/doc/file.YAML.html +243 -0
- data/doc/file.r509.html +298 -105
- data/doc/file_list.html +11 -2
- data/doc/frames.html +1 -1
- data/doc/index.html +279 -389
- data/doc/js/full_list.js +6 -1
- data/doc/method_list.html +869 -1139
- data/doc/top-level-namespace.html +103 -5
- data/lib/r509.rb +7 -2
- data/lib/r509/asn1.rb +97 -135
- data/lib/r509/cert.rb +17 -106
- data/lib/r509/cert/extensions.rb +13 -676
- data/lib/r509/cert/extensions/authority_info_access.rb +128 -0
- data/lib/r509/cert/extensions/authority_key_identifier.rb +100 -0
- data/lib/r509/cert/extensions/base.rb +142 -0
- data/lib/r509/cert/extensions/basic_constraints.rb +119 -0
- data/lib/r509/cert/extensions/certificate_policies.rb +262 -0
- data/lib/r509/cert/extensions/crl_distribution_points.rb +98 -0
- data/lib/r509/cert/extensions/extended_key_usage.rb +189 -0
- data/lib/r509/cert/extensions/inhibit_any_policy.rb +70 -0
- data/lib/r509/cert/extensions/key_usage.rb +209 -0
- data/lib/r509/cert/extensions/name_constraints.rb +179 -0
- data/lib/r509/cert/extensions/ocsp_no_check.rb +56 -0
- data/lib/r509/cert/extensions/policy_constraints.rb +122 -0
- data/lib/r509/cert/extensions/subject_alternative_name.rb +88 -0
- data/lib/r509/cert/extensions/subject_key_identifier.rb +56 -0
- data/lib/r509/cert/extensions/validation_mixin.rb +42 -0
- data/lib/r509/certificate_authority/options_builder.rb +142 -0
- data/lib/r509/certificate_authority/signer.rb +189 -0
- data/lib/r509/config.rb +3 -600
- data/lib/r509/config/ca_config.rb +414 -0
- data/lib/r509/config/cert_profile.rb +110 -0
- data/lib/r509/config/subject_item_policy.rb +118 -0
- data/lib/r509/crl/administrator.rb +169 -0
- data/lib/r509/crl/reader_writer.rb +109 -0
- data/lib/r509/crl/signed_list.rb +135 -0
- data/lib/r509/csr.rb +35 -116
- data/lib/r509/engine.rb +21 -11
- data/lib/r509/helpers.rb +110 -0
- data/lib/r509/io_helpers.rb +18 -13
- data/lib/r509/message_digest.rb +13 -3
- data/lib/r509/oid_mapper.rb +14 -0
- data/lib/r509/private_key.rb +74 -50
- data/lib/r509/spki.rb +50 -113
- data/lib/r509/subject.rb +24 -2
- data/lib/r509/trollop.rb +788 -0
- data/lib/r509/version.rb +1 -1
- data/r509.yaml +289 -96
- data/spec/asn1_spec.rb +171 -98
- data/spec/cert/extensions/authority_info_access_spec.rb +247 -0
- data/spec/cert/extensions/authority_key_identifier_spec.rb +85 -0
- data/spec/cert/extensions/base_spec.rb +172 -0
- data/spec/cert/extensions/basic_constraints_spec.rb +185 -0
- data/spec/cert/extensions/certificate_policies_spec.rb +288 -0
- data/spec/cert/extensions/crl_distribution_points_spec.rb +149 -0
- data/spec/cert/extensions/extended_key_usage_spec.rb +174 -0
- data/spec/cert/extensions/inhibit_any_policy_spec.rb +92 -0
- data/spec/cert/extensions/key_usage_spec.rb +172 -0
- data/spec/cert/extensions/name_constraints_spec.rb +335 -0
- data/spec/cert/extensions/ocsp_no_check_spec.rb +76 -0
- data/spec/cert/extensions/policy_constraints_spec.rb +155 -0
- data/spec/cert/extensions/subject_alternative_name_spec.rb +354 -0
- data/spec/cert/extensions/subject_key_identifier_spec.rb +64 -0
- data/spec/cert_spec.rb +11 -9
- data/spec/certificate_authority/options_builder_spec.rb +307 -0
- data/spec/certificate_authority/signer_spec.rb +278 -0
- data/spec/config/ca_config_spec.rb +405 -0
- data/spec/config/cert_profile_spec.rb +88 -0
- data/spec/config/subject_item_policy_spec.rb +81 -0
- data/spec/crl/administrator_spec.rb +199 -0
- data/spec/crl/reader_writer_spec.rb +97 -0
- data/spec/crl/signed_list_spec.rb +84 -0
- data/spec/csr_spec.rb +43 -36
- data/spec/engine_spec.rb +51 -0
- data/spec/fixtures.rb +40 -40
- data/spec/fixtures/cert1.pem +1 -1
- data/spec/fixtures/config_pool_test_minimal.yaml +11 -15
- data/spec/fixtures/config_test.yaml +96 -59
- data/spec/fixtures/config_test_dsa.yaml +29 -35
- data/spec/fixtures/config_test_ec.yaml +29 -35
- data/spec/fixtures/config_test_engine_key.yaml +7 -7
- data/spec/fixtures/config_test_engine_no_key_name.yaml +6 -6
- data/spec/fixtures/config_test_minimal.yaml +3 -5
- data/spec/fixtures/config_test_password.yaml +4 -6
- data/spec/fixtures/config_test_various.yaml +147 -137
- data/spec/fixtures/crl_list_file.txt +1 -1
- data/spec/fixtures/test_ca_crl.cer +20 -0
- data/spec/fixtures/test_ca_crl.key +28 -0
- data/spec/fixtures/test_ca_crl.p12 +0 -0
- data/spec/message_digest_spec.rb +6 -0
- data/spec/oid_mapper_spec.rb +11 -0
- data/spec/private_key_spec.rb +19 -18
- data/spec/spec_helper.rb +10 -6
- data/spec/spki_spec.rb +38 -19
- data/spec/subject_spec.rb +16 -0
- metadata +108 -59
- metadata.gz.sig +0 -0
- data/README.md +0 -638
- data/doc/R509/Config/CAProfile.html +0 -1015
- data/doc/R509/IOHelpers.html +0 -564
- data/lib/r509/certificate_authority.rb +0 -407
- data/lib/r509/crl.rb +0 -351
- data/spec/cert/extensions_spec.rb +0 -1095
- data/spec/certificate_authority_spec.rb +0 -681
- data/spec/config_spec.rb +0 -562
- data/spec/crl_spec.rb +0 -226
@@ -1,59 +1,96 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
ocsp_validity_hours: 96
|
10
|
-
ocsp_start_skew_seconds: 1800
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
key_usage:
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
1
|
+
---
|
2
|
+
test_ca:
|
3
|
+
ca_cert:
|
4
|
+
cert: test_ca.cer
|
5
|
+
key: test_ca.key
|
6
|
+
crl_validity_hours: 72
|
7
|
+
crl_list_file: list_file
|
8
|
+
crl_number_file: number_file
|
9
|
+
ocsp_validity_hours: 96
|
10
|
+
ocsp_start_skew_seconds: 1800
|
11
|
+
profiles:
|
12
|
+
server:
|
13
|
+
basic_constraints:
|
14
|
+
:ca: false
|
15
|
+
key_usage:
|
16
|
+
:value:
|
17
|
+
- digitalSignature
|
18
|
+
- keyEncipherment
|
19
|
+
extended_key_usage:
|
20
|
+
:value:
|
21
|
+
- serverAuth
|
22
|
+
mds:
|
23
|
+
default_md: SHA512
|
24
|
+
allowed_mds:
|
25
|
+
- SHA512
|
26
|
+
- SHA1
|
27
|
+
aia_cdp:
|
28
|
+
authority_info_access:
|
29
|
+
:ocsp_location:
|
30
|
+
- :type: URI
|
31
|
+
:value: http://ocsp.domain.com
|
32
|
+
:ca_issuers_location:
|
33
|
+
- :type: URI
|
34
|
+
:value: http://www.domain.com/cert.cer
|
35
|
+
crl_distribution_points:
|
36
|
+
:value:
|
37
|
+
- :type: URI
|
38
|
+
:value: http://crl.domain.com/something.crl
|
39
|
+
ocsp_delegate_with_no_check:
|
40
|
+
ocsp_no_check:
|
41
|
+
:value: true
|
42
|
+
inhibit_policy:
|
43
|
+
inhibit_any_policy:
|
44
|
+
:value: 2
|
45
|
+
policy_constraints:
|
46
|
+
policy_constraints:
|
47
|
+
:require_explicit_policy: 1
|
48
|
+
:inhibit_policy_mapping: 0
|
49
|
+
name_constraints:
|
50
|
+
name_constraints:
|
51
|
+
:permitted:
|
52
|
+
- :type: IP
|
53
|
+
:value: 192.168.0.0/255.255.0.0
|
54
|
+
- :type: dirName
|
55
|
+
:value:
|
56
|
+
:CN: myCN
|
57
|
+
:O: Org
|
58
|
+
:excluded:
|
59
|
+
- :type: email
|
60
|
+
:value: domain.com
|
61
|
+
- :type: URI
|
62
|
+
:value: .net
|
63
|
+
- :type: DNS
|
64
|
+
:value: test.us
|
65
|
+
client:
|
66
|
+
basic_constraints:
|
67
|
+
:ca: false
|
68
|
+
key_usage:
|
69
|
+
:value:
|
70
|
+
- digitalSignature
|
71
|
+
- keyEncipherment
|
72
|
+
extended_key_usage:
|
73
|
+
:value:
|
74
|
+
- clientAuth
|
75
|
+
server_with_subject_item_policy:
|
76
|
+
basic_constraints:
|
77
|
+
:ca: false
|
78
|
+
key_usage:
|
79
|
+
:value:
|
80
|
+
- digitalSignature
|
81
|
+
- keyEncipherment
|
82
|
+
extended_key_usage:
|
83
|
+
:value:
|
84
|
+
- serverAuth
|
85
|
+
subject_item_policy:
|
86
|
+
CN:
|
87
|
+
:policy: required
|
88
|
+
O:
|
89
|
+
:policy: optional
|
90
|
+
ST:
|
91
|
+
:policy: required
|
92
|
+
C:
|
93
|
+
:policy: required
|
94
|
+
OU:
|
95
|
+
:policy: optional
|
96
|
+
config_is_string: this is bogus
|
@@ -1,35 +1,29 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"ST" : "required",
|
31
|
-
"C" : "required",
|
32
|
-
"OU" : "optional" }
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
1
|
+
---
|
2
|
+
test_ca_dsa:
|
3
|
+
ca_cert:
|
4
|
+
cert: dsa_root.cer
|
5
|
+
key: dsa_root.key
|
6
|
+
crl_validity_hours: 72
|
7
|
+
ocsp_validity_hours: 96
|
8
|
+
ocsp_start_skew_seconds: 1800
|
9
|
+
profiles:
|
10
|
+
server:
|
11
|
+
basic_constraints:
|
12
|
+
:ca: false
|
13
|
+
key_usage:
|
14
|
+
:value:
|
15
|
+
- digitalSignature
|
16
|
+
- keyEncipherment
|
17
|
+
extended_key_usage:
|
18
|
+
:value:
|
19
|
+
- serverAuth
|
20
|
+
client:
|
21
|
+
basic_constraints:
|
22
|
+
:ca: false
|
23
|
+
key_usage:
|
24
|
+
:value:
|
25
|
+
- digitalSignature
|
26
|
+
- keyEncipherment
|
27
|
+
extended_key_usage:
|
28
|
+
:value:
|
29
|
+
- clientAuth
|
@@ -1,35 +1,29 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"ST" : "required",
|
31
|
-
"C" : "required",
|
32
|
-
"OU" : "optional" }
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
1
|
+
---
|
2
|
+
test_ca_ec:
|
3
|
+
ca_cert:
|
4
|
+
cert: test_ca_ec.cer
|
5
|
+
key: test_ca_ec.key
|
6
|
+
crl_validity_hours: 72
|
7
|
+
ocsp_validity_hours: 96
|
8
|
+
ocsp_start_skew_seconds: 1800
|
9
|
+
profiles:
|
10
|
+
server:
|
11
|
+
basic_constraints:
|
12
|
+
:ca: false
|
13
|
+
key_usage:
|
14
|
+
:value:
|
15
|
+
- digitalSignature
|
16
|
+
- keyEncipherment
|
17
|
+
extended_key_usage:
|
18
|
+
:value:
|
19
|
+
- serverAuth
|
20
|
+
client:
|
21
|
+
basic_constraints:
|
22
|
+
:ca: false
|
23
|
+
key_usage:
|
24
|
+
:value:
|
25
|
+
- digitalSignature
|
26
|
+
- keyEncipherment
|
27
|
+
extended_key_usage:
|
28
|
+
:value:
|
29
|
+
- clientAuth
|
@@ -1,7 +1,7 @@
|
|
1
|
-
engine_and_key:
|
2
|
-
ca_cert:
|
3
|
-
cert: 'test_ca.cer'
|
4
|
-
key: 'test_ca.key'
|
5
|
-
engine:
|
6
|
-
|
7
|
-
|
1
|
+
engine_and_key:
|
2
|
+
ca_cert:
|
3
|
+
cert: 'test_ca.cer'
|
4
|
+
key: 'test_ca.key'
|
5
|
+
engine:
|
6
|
+
:so_path: '/path'
|
7
|
+
:id: chil
|
@@ -1,6 +1,6 @@
|
|
1
|
-
engine_no_key_name:
|
2
|
-
ca_cert:
|
3
|
-
cert: 'test_ca.cer'
|
4
|
-
engine:
|
5
|
-
|
6
|
-
|
1
|
+
engine_no_key_name:
|
2
|
+
ca_cert:
|
3
|
+
cert: 'test_ca.cer'
|
4
|
+
engine:
|
5
|
+
:so_path: '/path'
|
6
|
+
:id: chil
|
@@ -1,138 +1,148 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
cert:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
cert:
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
cert:
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
ca_cert:
|
112
|
-
cert:
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
1
|
+
---
|
2
|
+
pkcs12_ca:
|
3
|
+
ca_cert:
|
4
|
+
pkcs12: test_ca.p12
|
5
|
+
password: r509
|
6
|
+
pkcs12_key_ca:
|
7
|
+
ca_cert:
|
8
|
+
pkcs12: test_ca.p12
|
9
|
+
password: r509
|
10
|
+
key: test_ca.cer
|
11
|
+
pkcs12_cert_ca:
|
12
|
+
ca_cert:
|
13
|
+
pkcs12: test_ca.p12
|
14
|
+
password: r509
|
15
|
+
cert: test_ca.cer
|
16
|
+
pkcs12_engine_ca:
|
17
|
+
ca_cert:
|
18
|
+
pkcs12: test_ca.p12
|
19
|
+
password: r509
|
20
|
+
engine:
|
21
|
+
:so_path: '/some/path'
|
22
|
+
:id: chil
|
23
|
+
key_name: r509_key
|
24
|
+
cert_no_key_ca:
|
25
|
+
ca_cert:
|
26
|
+
cert: test_ca.cer
|
27
|
+
missing_key_identifier_ca:
|
28
|
+
ca_cert:
|
29
|
+
cert: missing_key_identifier_ca.cer
|
30
|
+
key: missing_key_identifier_ca.key
|
31
|
+
profiles:
|
32
|
+
server:
|
33
|
+
basic_constraints:
|
34
|
+
ca: false
|
35
|
+
key_usage:
|
36
|
+
- digitalSignature
|
37
|
+
- keyEncipherment
|
38
|
+
extended_key_usage:
|
39
|
+
- serverAuth
|
40
|
+
multi_policy_ca:
|
41
|
+
ca_cert:
|
42
|
+
cert: test_ca.cer
|
43
|
+
key: test_ca.key
|
44
|
+
profiles:
|
45
|
+
server:
|
46
|
+
basic_constraints:
|
47
|
+
:ca: false
|
48
|
+
key_usage:
|
49
|
+
- digitalSignature
|
50
|
+
- keyEncipherment
|
51
|
+
extended_key_usage:
|
52
|
+
- serverAuth
|
53
|
+
certificate_policies:
|
54
|
+
- :policy_identifier: 2.16.840.1.99999.21.234
|
55
|
+
:cps_uris:
|
56
|
+
- http://example.com/cps
|
57
|
+
- http://haha.com
|
58
|
+
:user_notices:
|
59
|
+
- :explicit_text: this is a great thing
|
60
|
+
:organization: my org
|
61
|
+
:notice_numbers: '1,2,3'
|
62
|
+
- :policy_identifier: 2.16.840.1.99999.21.235
|
63
|
+
:cps_uris:
|
64
|
+
- http://example.com/cps2
|
65
|
+
:user_notices:
|
66
|
+
- :explicit_text: this is a bad thing
|
67
|
+
:organization: another org
|
68
|
+
:notice_numbers: '3,2,1'
|
69
|
+
- :explicit_text: another user notice
|
70
|
+
- :policy_identifier: 2.16.840.1.99999.0
|
71
|
+
ocsp_delegate_ca:
|
72
|
+
ca_cert:
|
73
|
+
cert: test_ca.cer
|
74
|
+
ocsp_cert:
|
75
|
+
cert: test_ca_ocsp.cer
|
76
|
+
key: test_ca_ocsp.key
|
77
|
+
ocsp_chain_ca:
|
78
|
+
ca_cert:
|
79
|
+
cert: test_ca.cer
|
80
|
+
ocsp_cert:
|
81
|
+
cert: test_ca_ocsp.cer
|
82
|
+
key: test_ca_ocsp.key
|
83
|
+
ocsp_chain: test_ca_ocsp_chain.txt
|
84
|
+
ocsp_pkcs12_ca:
|
85
|
+
ca_cert:
|
86
|
+
cert: test_ca.cer
|
87
|
+
ocsp_cert:
|
88
|
+
pkcs12: test_ca_ocsp.p12
|
89
|
+
password: r509
|
90
|
+
ocsp_engine_ca:
|
91
|
+
ca_cert:
|
92
|
+
cert: test_ca.cer
|
93
|
+
ocsp_cert:
|
94
|
+
cert: test_ca_ocsp.cer
|
95
|
+
engine:
|
96
|
+
:so_path: '/some/path'
|
97
|
+
:id: chil
|
98
|
+
crl_delegate_ca:
|
99
|
+
ca_cert:
|
100
|
+
cert: test_ca.cer
|
101
|
+
crl_cert:
|
102
|
+
cert: test_ca_crl.cer
|
103
|
+
key: test_ca_crl.key
|
104
|
+
crl_pkcs12_ca:
|
105
|
+
ca_cert:
|
106
|
+
cert: test_ca.cer
|
107
|
+
crl_cert:
|
108
|
+
pkcs12: test_ca_crl.p12
|
109
|
+
password: r509
|
110
|
+
crl_engine_ca:
|
111
|
+
ca_cert:
|
112
|
+
cert: test_ca.cer
|
113
|
+
crl_cert:
|
114
|
+
cert: test_ca_crl.cer
|
115
|
+
engine:
|
116
|
+
:so_path: '/some/path'
|
117
|
+
:id: chil
|
118
|
+
all_eku_ca:
|
119
|
+
ca_cert:
|
120
|
+
cert: test_ca.cer
|
121
|
+
key: test_ca.key
|
122
|
+
profiles:
|
123
|
+
smorgasbord:
|
124
|
+
basic_constraints:
|
125
|
+
:ca: false
|
126
|
+
key_usage:
|
127
|
+
- digitalSignature
|
128
|
+
- keyEncipherment
|
129
|
+
extended_key_usage:
|
130
|
+
- serverAuth
|
131
|
+
- clientAuth
|
132
|
+
- codeSigning
|
133
|
+
- emailProtection
|
134
|
+
- OCSPSigning
|
135
|
+
- timeStamping
|
136
|
+
ocsp_no_check_ca:
|
137
|
+
ca_cert:
|
138
|
+
cert: test_ca.cer
|
139
|
+
key: test_ca.key
|
140
|
+
profiles:
|
141
|
+
ocsp_no_check_delegate:
|
142
|
+
basic_constraints:
|
143
|
+
:ca: false
|
144
|
+
key_usage:
|
145
|
+
- digitalSignature
|
146
|
+
extended_key_usage:
|
147
|
+
- OCSPSigning
|
135
148
|
ocsp_no_check: true
|
136
|
-
}
|
137
|
-
}
|
138
|
-
}
|