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/doc/R509/Config.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Module: R509::Config
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "R509::Config";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,63 +27,65 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (C)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../R509.html" title="R509 (module)">R509</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Config</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
62
|
+
<iframe id="search_frame" src="../class_list.html"></iframe>
|
65
63
|
|
66
|
-
|
64
|
+
<div id="content"><h1>Module: R509::Config
|
67
65
|
|
68
66
|
|
69
67
|
|
70
68
|
</h1>
|
69
|
+
<div class="box_info">
|
70
|
+
|
71
71
|
|
72
|
-
<dl class="box">
|
73
72
|
|
74
73
|
|
75
|
-
|
76
74
|
|
77
|
-
|
78
75
|
|
79
76
|
|
77
|
+
|
78
|
+
|
79
|
+
|
80
80
|
|
81
|
-
|
82
|
-
<
|
83
|
-
|
81
|
+
<dl>
|
82
|
+
<dt>Defined in:</dt>
|
83
|
+
<dd>lib/r509/config.rb<span class="defines">,<br />
|
84
|
+
lib/r509/config/ca_config.rb,<br /> lib/r509/config/cert_profile.rb,<br /> lib/r509/config/subject_item_policy.rb</span>
|
84
85
|
</dd>
|
86
|
+
</dl>
|
85
87
|
|
86
|
-
</
|
87
|
-
<div class="clear"></div>
|
88
|
+
</div>
|
88
89
|
|
89
90
|
<h2>Overview</h2><div class="docstring">
|
90
91
|
<div class="discussion">
|
@@ -119,11 +120,12 @@ CertProfile, SubjectItemPolicy)</p>
|
|
119
120
|
|
120
121
|
</div>
|
121
122
|
|
122
|
-
|
123
|
-
Generated on
|
123
|
+
<div id="footer">
|
124
|
+
Generated on Tue Dec 6 17:27:39 2016 by
|
124
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
125
|
-
0.
|
126
|
+
0.9.5 (ruby-2.4.0).
|
126
127
|
</div>
|
127
128
|
|
129
|
+
</div>
|
128
130
|
</body>
|
129
131
|
</html>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: R509::Config::CAConfig
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "R509::Config::CAConfig";
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,50 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../../_index.html">Index (C)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../R509.html" title="R509 (module)">R509</a></span></span> » <span class='title'><span class='object_link'><a href="../Config.html" title="R509::Config (module)">Config</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">CAConfig</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
62
|
+
<iframe id="search_frame" src="../../class_list.html"></iframe>
|
65
63
|
|
66
|
-
|
64
|
+
<div id="content"><h1>Class: R509::Config::CAConfig
|
67
65
|
|
68
66
|
|
69
67
|
|
70
68
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
69
|
+
<div class="box_info">
|
73
70
|
|
74
|
-
|
75
|
-
<
|
71
|
+
<dl>
|
72
|
+
<dt>Inherits:</dt>
|
73
|
+
<dd>
|
76
74
|
<span class="inheritName">Object</span>
|
77
75
|
|
78
76
|
<ul class="fullTree">
|
@@ -83,21 +81,25 @@
|
|
83
81
|
</ul>
|
84
82
|
<a href="#" class="inheritanceTree">show all</a>
|
85
83
|
|
86
|
-
|
87
|
-
|
84
|
+
</dd>
|
85
|
+
</dl>
|
88
86
|
|
87
|
+
|
89
88
|
|
90
|
-
|
91
89
|
|
92
|
-
|
93
90
|
|
94
91
|
|
95
92
|
|
96
|
-
|
97
|
-
<dd class="r2 last">lib/r509/config/ca_config.rb</dd>
|
93
|
+
|
98
94
|
|
99
|
-
|
100
|
-
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/r509/config/ca_config.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
101
103
|
|
102
104
|
<h2>Overview</h2><div class="docstring">
|
103
105
|
<div class="discussion">
|
@@ -112,11 +114,10 @@
|
|
112
114
|
|
113
115
|
</div>
|
114
116
|
<h2>Constant Summary</h2>
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
<
|
119
|
-
<div class="docstring">
|
117
|
+
<dl class="constants">
|
118
|
+
|
119
|
+
<dt id="DEFAULT_OCSP_START_SKEW_SECONDS-constant" class="">DEFAULT_OCSP_START_SKEW_SECONDS =
|
120
|
+
<div class="docstring">
|
120
121
|
<div class="discussion">
|
121
122
|
|
122
123
|
<p>Default number of seconds to subtract from now when calculating the signing
|
@@ -129,11 +130,11 @@ time of an OCSP response</p>
|
|
129
130
|
|
130
131
|
|
131
132
|
</div>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
133
|
+
</dt>
|
134
|
+
<dd><pre class="code"><span class='int'>3600</span></pre></dd>
|
135
|
+
|
136
|
+
<dt id="DEFAULT_OCSP_VALIDITY_HOURS-constant" class="">DEFAULT_OCSP_VALIDITY_HOURS =
|
137
|
+
<div class="docstring">
|
137
138
|
<div class="discussion">
|
138
139
|
|
139
140
|
<p>Default number of hours an OCSP response should be valid for</p>
|
@@ -145,11 +146,11 @@ time of an OCSP response</p>
|
|
145
146
|
|
146
147
|
|
147
148
|
</div>
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
149
|
+
</dt>
|
150
|
+
<dd><pre class="code"><span class='int'>168</span></pre></dd>
|
151
|
+
|
152
|
+
<dt id="DEFAULT_CRL_VALIDITY_HOURS-constant" class="">DEFAULT_CRL_VALIDITY_HOURS =
|
153
|
+
<div class="docstring">
|
153
154
|
<div class="discussion">
|
154
155
|
|
155
156
|
<p>Default number of hours a CRL should be valid for</p>
|
@@ -161,11 +162,11 @@ time of an OCSP response</p>
|
|
161
162
|
|
162
163
|
|
163
164
|
</div>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
165
|
+
</dt>
|
166
|
+
<dd><pre class="code"><span class='int'>168</span></pre></dd>
|
167
|
+
|
168
|
+
<dt id="DEFAULT_CRL_START_SKEW_SECONDS-constant" class="">DEFAULT_CRL_START_SKEW_SECONDS =
|
169
|
+
<div class="docstring">
|
169
170
|
<div class="discussion">
|
170
171
|
|
171
172
|
<p>Default number of seconds to subtract from now when calculating the signing
|
@@ -178,22 +179,21 @@ time of a CRL</p>
|
|
178
179
|
|
179
180
|
|
180
181
|
</div>
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
182
|
+
</dt>
|
183
|
+
<dd><pre class="code"><span class='int'>3600</span></pre></dd>
|
184
|
+
|
185
|
+
</dl>
|
186
186
|
|
187
187
|
|
188
188
|
|
189
189
|
|
190
|
-
<h2>Instance Attribute Summary <small
|
190
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
191
191
|
<ul class="summary">
|
192
192
|
|
193
193
|
<li class="public ">
|
194
194
|
<span class="summary_signature">
|
195
195
|
|
196
|
-
<a href="#ca_cert-instance_method" title="#ca_cert (instance method)"
|
196
|
+
<a href="#ca_cert-instance_method" title="#ca_cert (instance method)">#<strong>ca_cert</strong> ⇒ Object </a>
|
197
197
|
|
198
198
|
|
199
199
|
|
@@ -222,7 +222,7 @@ time of a CRL</p>
|
|
222
222
|
<li class="public ">
|
223
223
|
<span class="summary_signature">
|
224
224
|
|
225
|
-
<a href="#crl_list_file-instance_method" title="#crl_list_file (instance method)"
|
225
|
+
<a href="#crl_list_file-instance_method" title="#crl_list_file (instance method)">#<strong>crl_list_file</strong> ⇒ Object </a>
|
226
226
|
|
227
227
|
|
228
228
|
|
@@ -251,7 +251,7 @@ time of a CRL</p>
|
|
251
251
|
<li class="public ">
|
252
252
|
<span class="summary_signature">
|
253
253
|
|
254
|
-
<a href="#crl_md-instance_method" title="#crl_md (instance method)"
|
254
|
+
<a href="#crl_md-instance_method" title="#crl_md (instance method)">#<strong>crl_md</strong> ⇒ Object </a>
|
255
255
|
|
256
256
|
|
257
257
|
|
@@ -280,7 +280,7 @@ time of a CRL</p>
|
|
280
280
|
<li class="public ">
|
281
281
|
<span class="summary_signature">
|
282
282
|
|
283
|
-
<a href="#crl_number_file-instance_method" title="#crl_number_file (instance method)"
|
283
|
+
<a href="#crl_number_file-instance_method" title="#crl_number_file (instance method)">#<strong>crl_number_file</strong> ⇒ Object </a>
|
284
284
|
|
285
285
|
|
286
286
|
|
@@ -309,7 +309,7 @@ time of a CRL</p>
|
|
309
309
|
<li class="public ">
|
310
310
|
<span class="summary_signature">
|
311
311
|
|
312
|
-
<a href="#crl_start_skew_seconds-instance_method" title="#crl_start_skew_seconds (instance method)"
|
312
|
+
<a href="#crl_start_skew_seconds-instance_method" title="#crl_start_skew_seconds (instance method)">#<strong>crl_start_skew_seconds</strong> ⇒ Object </a>
|
313
313
|
|
314
314
|
|
315
315
|
|
@@ -338,7 +338,7 @@ time of a CRL</p>
|
|
338
338
|
<li class="public ">
|
339
339
|
<span class="summary_signature">
|
340
340
|
|
341
|
-
<a href="#crl_validity_hours-instance_method" title="#crl_validity_hours (instance method)"
|
341
|
+
<a href="#crl_validity_hours-instance_method" title="#crl_validity_hours (instance method)">#<strong>crl_validity_hours</strong> ⇒ Object </a>
|
342
342
|
|
343
343
|
|
344
344
|
|
@@ -367,7 +367,7 @@ time of a CRL</p>
|
|
367
367
|
<li class="public ">
|
368
368
|
<span class="summary_signature">
|
369
369
|
|
370
|
-
<a href="#ocsp_chain-instance_method" title="#ocsp_chain (instance method)"
|
370
|
+
<a href="#ocsp_chain-instance_method" title="#ocsp_chain (instance method)">#<strong>ocsp_chain</strong> ⇒ Object </a>
|
371
371
|
|
372
372
|
|
373
373
|
|
@@ -396,7 +396,7 @@ time of a CRL</p>
|
|
396
396
|
<li class="public ">
|
397
397
|
<span class="summary_signature">
|
398
398
|
|
399
|
-
<a href="#ocsp_start_skew_seconds-instance_method" title="#ocsp_start_skew_seconds (instance method)"
|
399
|
+
<a href="#ocsp_start_skew_seconds-instance_method" title="#ocsp_start_skew_seconds (instance method)">#<strong>ocsp_start_skew_seconds</strong> ⇒ Object </a>
|
400
400
|
|
401
401
|
|
402
402
|
|
@@ -425,7 +425,7 @@ time of a CRL</p>
|
|
425
425
|
<li class="public ">
|
426
426
|
<span class="summary_signature">
|
427
427
|
|
428
|
-
<a href="#ocsp_validity_hours-instance_method" title="#ocsp_validity_hours (instance method)"
|
428
|
+
<a href="#ocsp_validity_hours-instance_method" title="#ocsp_validity_hours (instance method)">#<strong>ocsp_validity_hours</strong> ⇒ Object </a>
|
429
429
|
|
430
430
|
|
431
431
|
|
@@ -459,7 +459,7 @@ time of a CRL</p>
|
|
459
459
|
|
460
460
|
<h2>
|
461
461
|
Class Method Summary
|
462
|
-
<small
|
462
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
463
463
|
</h2>
|
464
464
|
|
465
465
|
<ul class="summary">
|
@@ -467,7 +467,7 @@ time of a CRL</p>
|
|
467
467
|
<li class="public ">
|
468
468
|
<span class="summary_signature">
|
469
469
|
|
470
|
-
<a href="#from_yaml-class_method" title="from_yaml (class method)"
|
470
|
+
<a href="#from_yaml-class_method" title="from_yaml (class method)">.<strong>from_yaml</strong>(conf_name, yaml_data, opts = {}) ⇒ Object </a>
|
471
471
|
|
472
472
|
|
473
473
|
|
@@ -491,7 +491,7 @@ time of a CRL</p>
|
|
491
491
|
<li class="public ">
|
492
492
|
<span class="summary_signature">
|
493
493
|
|
494
|
-
<a href="#load_from_hash-class_method" title="load_from_hash (class method)"
|
494
|
+
<a href="#load_from_hash-class_method" title="load_from_hash (class method)">.<strong>load_from_hash</strong>(conf, opts = {}) ⇒ Object </a>
|
495
495
|
|
496
496
|
|
497
497
|
|
@@ -515,7 +515,7 @@ time of a CRL</p>
|
|
515
515
|
<li class="public ">
|
516
516
|
<span class="summary_signature">
|
517
517
|
|
518
|
-
<a href="#load_profiles-class_method" title="load_profiles (class method)"
|
518
|
+
<a href="#load_profiles-class_method" title="load_profiles (class method)">.<strong>load_profiles</strong>(profiles) ⇒ Hash </a>
|
519
519
|
|
520
520
|
|
521
521
|
|
@@ -539,7 +539,7 @@ time of a CRL</p>
|
|
539
539
|
<li class="public ">
|
540
540
|
<span class="summary_signature">
|
541
541
|
|
542
|
-
<a href="#load_yaml-class_method" title="load_yaml (class method)"
|
542
|
+
<a href="#load_yaml-class_method" title="load_yaml (class method)">.<strong>load_yaml</strong>(conf_name, yaml_file, opts = {}) ⇒ Object </a>
|
543
543
|
|
544
544
|
|
545
545
|
|
@@ -564,7 +564,7 @@ time of a CRL</p>
|
|
564
564
|
|
565
565
|
<h2>
|
566
566
|
Instance Method Summary
|
567
|
-
<small
|
567
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
568
568
|
</h2>
|
569
569
|
|
570
570
|
<ul class="summary">
|
@@ -572,7 +572,7 @@ time of a CRL</p>
|
|
572
572
|
<li class="public ">
|
573
573
|
<span class="summary_signature">
|
574
574
|
|
575
|
-
<a href="#crl_cert-instance_method" title="#crl_cert (instance method)"
|
575
|
+
<a href="#crl_cert-instance_method" title="#crl_cert (instance method)">#<strong>crl_cert</strong> ⇒ R509::Cert </a>
|
576
576
|
|
577
577
|
|
578
578
|
|
@@ -596,7 +596,7 @@ time of a CRL</p>
|
|
596
596
|
<li class="public ">
|
597
597
|
<span class="summary_signature">
|
598
598
|
|
599
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
599
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) ⇒ CAConfig </a>
|
600
600
|
|
601
601
|
|
602
602
|
|
@@ -622,7 +622,7 @@ time of a CRL</p>
|
|
622
622
|
<li class="public ">
|
623
623
|
<span class="summary_signature">
|
624
624
|
|
625
|
-
<a href="#num_profiles-instance_method" title="#num_profiles (instance method)"
|
625
|
+
<a href="#num_profiles-instance_method" title="#num_profiles (instance method)">#<strong>num_profiles</strong> ⇒ Integer </a>
|
626
626
|
|
627
627
|
|
628
628
|
|
@@ -646,7 +646,7 @@ time of a CRL</p>
|
|
646
646
|
<li class="public ">
|
647
647
|
<span class="summary_signature">
|
648
648
|
|
649
|
-
<a href="#ocsp_cert-instance_method" title="#ocsp_cert (instance method)"
|
649
|
+
<a href="#ocsp_cert-instance_method" title="#ocsp_cert (instance method)">#<strong>ocsp_cert</strong> ⇒ R509::Cert </a>
|
650
650
|
|
651
651
|
|
652
652
|
|
@@ -670,7 +670,7 @@ time of a CRL</p>
|
|
670
670
|
<li class="public ">
|
671
671
|
<span class="summary_signature">
|
672
672
|
|
673
|
-
<a href="#profile-instance_method" title="#profile (instance method)"
|
673
|
+
<a href="#profile-instance_method" title="#profile (instance method)">#<strong>profile</strong>(prof) ⇒ R509::Config::CertProfile </a>
|
674
674
|
|
675
675
|
|
676
676
|
|
@@ -694,7 +694,7 @@ time of a CRL</p>
|
|
694
694
|
<li class="public ">
|
695
695
|
<span class="summary_signature">
|
696
696
|
|
697
|
-
<a href="#set_profile-instance_method" title="#set_profile (instance method)"
|
697
|
+
<a href="#set_profile-instance_method" title="#set_profile (instance method)">#<strong>set_profile</strong>(name, prof) ⇒ Object </a>
|
698
698
|
|
699
699
|
|
700
700
|
|
@@ -716,7 +716,7 @@ time of a CRL</p>
|
|
716
716
|
<li class="public ">
|
717
717
|
<span class="summary_signature">
|
718
718
|
|
719
|
-
<a href="#to_h-instance_method" title="#to_h (instance method)"
|
719
|
+
<a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Hash </a>
|
720
720
|
|
721
721
|
|
722
722
|
|
@@ -738,7 +738,7 @@ time of a CRL</p>
|
|
738
738
|
<li class="public ">
|
739
739
|
<span class="summary_signature">
|
740
740
|
|
741
|
-
<a href="#to_yaml-instance_method" title="#to_yaml (instance method)"
|
741
|
+
<a href="#to_yaml-instance_method" title="#to_yaml (instance method)">#<strong>to_yaml</strong> ⇒ YAML </a>
|
742
742
|
|
743
743
|
|
744
744
|
|
@@ -768,7 +768,7 @@ time of a CRL</p>
|
|
768
768
|
<div class="method_details first">
|
769
769
|
<h3 class="signature first" id="initialize-instance_method">
|
770
770
|
|
771
|
-
|
771
|
+
#<strong>initialize</strong>(opts = {}) ⇒ <tt><span class='object_link'><a href="" title="R509::Config::CAConfig (class)">CAConfig</a></span></tt>
|
772
772
|
|
773
773
|
|
774
774
|
|
@@ -777,7 +777,7 @@ time of a CRL</p>
|
|
777
777
|
</h3><div class="docstring">
|
778
778
|
<div class="discussion">
|
779
779
|
|
780
|
-
<p>
|
780
|
+
<p>Returns a new instance of CAConfig</p>
|
781
781
|
|
782
782
|
|
783
783
|
</div>
|
@@ -812,6 +812,72 @@ time of a CRL</p>
|
|
812
812
|
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
813
813
|
<ul class="option">
|
814
814
|
|
815
|
+
<li>
|
816
|
+
<span class="name">:ca_cert</span>
|
817
|
+
<span class="type">(<tt><span class='object_link'><a href="../Cert.html" title="R509::Cert (class)">R509::Cert</a></span></tt>)</span>
|
818
|
+
<span class="default">
|
819
|
+
|
820
|
+
</span>
|
821
|
+
|
822
|
+
— <div class='inline'>
|
823
|
+
<p>Cert+Key pair</p>
|
824
|
+
</div>
|
825
|
+
|
826
|
+
</li>
|
827
|
+
|
828
|
+
<li>
|
829
|
+
<span class="name">:crl_validity_hours</span>
|
830
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
831
|
+
<span class="default">
|
832
|
+
|
833
|
+
— default:
|
834
|
+
<tt>168</tt>
|
835
|
+
|
836
|
+
</span>
|
837
|
+
|
838
|
+
— <div class='inline'>
|
839
|
+
<p>The number of hours that a CRL will be valid. Defaults to 7 days.</p>
|
840
|
+
</div>
|
841
|
+
|
842
|
+
</li>
|
843
|
+
|
844
|
+
<li>
|
845
|
+
<span class="name">:profiles</span>
|
846
|
+
<span class="type">(<tt>Hash<String, <span class='object_link'><a href="CertProfile.html" title="R509::Config::CertProfile (class)">R509::Config::CertProfile</a></span>></tt>)</span>
|
847
|
+
<span class="default">
|
848
|
+
|
849
|
+
</span>
|
850
|
+
|
851
|
+
</li>
|
852
|
+
|
853
|
+
<li>
|
854
|
+
<span class="name">:crl_number_file</span>
|
855
|
+
<span class="type">(<tt>String</tt>)</span>
|
856
|
+
<span class="default">
|
857
|
+
|
858
|
+
</span>
|
859
|
+
|
860
|
+
— <div class='inline'>
|
861
|
+
<p>A file to save the CRL number into. This is only used if you use the
|
862
|
+
default FileReaderWriter in CRL::Administrator</p>
|
863
|
+
</div>
|
864
|
+
|
865
|
+
</li>
|
866
|
+
|
867
|
+
<li>
|
868
|
+
<span class="name">:crl_md</span>
|
869
|
+
<span class="type">(<tt>String</tt>)</span>
|
870
|
+
<span class="default">
|
871
|
+
|
872
|
+
</span>
|
873
|
+
|
874
|
+
— <div class='inline'>
|
875
|
+
<p>Optional digest for signing CRLs. sha1, sha224, sha256, sha384, sha512,
|
876
|
+
md5. Defaults to R509::MessageDigest::DEFAULT_MD</p>
|
877
|
+
</div>
|
878
|
+
|
879
|
+
</li>
|
880
|
+
|
815
881
|
<li>
|
816
882
|
<span class="name">:crl_list_file</span>
|
817
883
|
<span class="type">(<tt>String</tt>)</span>
|
@@ -948,21 +1014,19 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
948
1014
|
114
|
949
1015
|
115
|
950
1016
|
116
|
951
|
-
117
|
952
|
-
118
|
953
|
-
119</pre>
|
1017
|
+
117</pre>
|
954
1018
|
</td>
|
955
1019
|
<td>
|
956
1020
|
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 99</span>
|
957
1021
|
|
958
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span
|
959
|
-
<span class='kw'>
|
1022
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1023
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:ca_cert</span><span class='rparen'>)</span>
|
960
1024
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Config object requires that you pass :ca_cert</span><span class='tstring_end'>'</span></span>
|
961
1025
|
<span class='kw'>end</span>
|
962
1026
|
|
963
1027
|
<span class='ivar'>@ca_cert</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:ca_cert</span><span class='rbracket'>]</span>
|
964
1028
|
|
965
|
-
<span class='kw'>
|
1029
|
+
<span class='kw'>unless</span> <span class='ivar'>@ca_cert</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='rparen'>)</span>
|
966
1030
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>:ca_cert must be of type R509::Cert</span><span class='tstring_end'>'</span></span>
|
967
1031
|
<span class='kw'>end</span>
|
968
1032
|
|
@@ -970,11 +1034,9 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
970
1034
|
<span class='id identifier rubyid_parse_crl_data'>parse_crl_data</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
971
1035
|
|
972
1036
|
<span class='ivar'>@profiles</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
973
|
-
<span class='
|
974
|
-
<span class='id identifier
|
975
|
-
|
976
|
-
<span class='kw'>end</span>
|
977
|
-
<span class='kw'>end</span>
|
1037
|
+
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:profiles</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_prof'>prof</span><span class='op'>|</span>
|
1038
|
+
<span class='id identifier rubyid_set_profile'>set_profile</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
|
1039
|
+
<span class='kw'>end</span> <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:profiles</span><span class='rbracket'>]</span>
|
978
1040
|
<span class='kw'>end</span></pre>
|
979
1041
|
</td>
|
980
1042
|
</tr>
|
@@ -991,7 +1053,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
991
1053
|
<div class="method_details first">
|
992
1054
|
<h3 class="signature first" id="ca_cert-instance_method">
|
993
1055
|
|
994
|
-
|
1056
|
+
#<strong>ca_cert</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
995
1057
|
|
996
1058
|
|
997
1059
|
|
@@ -1034,7 +1096,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
1034
1096
|
<div class="method_details ">
|
1035
1097
|
<h3 class="signature " id="crl_list_file-instance_method">
|
1036
1098
|
|
1037
|
-
|
1099
|
+
#<strong>crl_list_file</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1038
1100
|
|
1039
1101
|
|
1040
1102
|
|
@@ -1077,7 +1139,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
1077
1139
|
<div class="method_details ">
|
1078
1140
|
<h3 class="signature " id="crl_md-instance_method">
|
1079
1141
|
|
1080
|
-
|
1142
|
+
#<strong>crl_md</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1081
1143
|
|
1082
1144
|
|
1083
1145
|
|
@@ -1120,7 +1182,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
1120
1182
|
<div class="method_details ">
|
1121
1183
|
<h3 class="signature " id="crl_number_file-instance_method">
|
1122
1184
|
|
1123
|
-
|
1185
|
+
#<strong>crl_number_file</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1124
1186
|
|
1125
1187
|
|
1126
1188
|
|
@@ -1163,7 +1225,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
1163
1225
|
<div class="method_details ">
|
1164
1226
|
<h3 class="signature " id="crl_start_skew_seconds-instance_method">
|
1165
1227
|
|
1166
|
-
|
1228
|
+
#<strong>crl_start_skew_seconds</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1167
1229
|
|
1168
1230
|
|
1169
1231
|
|
@@ -1206,7 +1268,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
1206
1268
|
<div class="method_details ">
|
1207
1269
|
<h3 class="signature " id="crl_validity_hours-instance_method">
|
1208
1270
|
|
1209
|
-
|
1271
|
+
#<strong>crl_validity_hours</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1210
1272
|
|
1211
1273
|
|
1212
1274
|
|
@@ -1249,7 +1311,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
1249
1311
|
<div class="method_details ">
|
1250
1312
|
<h3 class="signature " id="ocsp_chain-instance_method">
|
1251
1313
|
|
1252
|
-
|
1314
|
+
#<strong>ocsp_chain</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1253
1315
|
|
1254
1316
|
|
1255
1317
|
|
@@ -1292,7 +1354,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
1292
1354
|
<div class="method_details ">
|
1293
1355
|
<h3 class="signature " id="ocsp_start_skew_seconds-instance_method">
|
1294
1356
|
|
1295
|
-
|
1357
|
+
#<strong>ocsp_start_skew_seconds</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1296
1358
|
|
1297
1359
|
|
1298
1360
|
|
@@ -1335,7 +1397,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
1335
1397
|
<div class="method_details ">
|
1336
1398
|
<h3 class="signature " id="ocsp_validity_hours-instance_method">
|
1337
1399
|
|
1338
|
-
|
1400
|
+
#<strong>ocsp_validity_hours</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
1339
1401
|
|
1340
1402
|
|
1341
1403
|
|
@@ -1383,7 +1445,7 @@ signing time of a CRL. This is important to handle bad user clocks.</p>
|
|
1383
1445
|
<div class="method_details first">
|
1384
1446
|
<h3 class="signature first" id="from_yaml-class_method">
|
1385
1447
|
|
1386
|
-
|
1448
|
+
.<strong>from_yaml</strong>(conf_name, yaml_data, opts = {}) ⇒ <tt>Object</tt>
|
1387
1449
|
|
1388
1450
|
|
1389
1451
|
|
@@ -1463,7 +1525,7 @@ contain more than one configuration.</p>
|
|
1463
1525
|
<div class="method_details ">
|
1464
1526
|
<h3 class="signature " id="load_from_hash-class_method">
|
1465
1527
|
|
1466
|
-
|
1528
|
+
.<strong>load_from_hash</strong>(conf, opts = {}) ⇒ <tt>Object</tt>
|
1467
1529
|
|
1468
1530
|
|
1469
1531
|
|
@@ -1549,6 +1611,8 @@ when loading from a YAML file.</p>
|
|
1549
1611
|
<pre class="lines">
|
1550
1612
|
|
1551
1613
|
|
1614
|
+
182
|
1615
|
+
183
|
1552
1616
|
184
|
1553
1617
|
185
|
1554
1618
|
186
|
@@ -1592,18 +1656,16 @@ when loading from a YAML file.</p>
|
|
1592
1656
|
224
|
1593
1657
|
225
|
1594
1658
|
226
|
1595
|
-
227
|
1596
|
-
228
|
1597
|
-
229</pre>
|
1659
|
+
227</pre>
|
1598
1660
|
</td>
|
1599
1661
|
<td>
|
1600
|
-
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line
|
1662
|
+
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 182</span>
|
1601
1663
|
|
1602
1664
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_from_hash'>load_from_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1603
1665
|
<span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1604
1666
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>conf not found</span><span class='tstring_end'>"</span></span>
|
1605
1667
|
<span class='kw'>end</span>
|
1606
|
-
<span class='kw'>unless</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier
|
1668
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
|
1607
1669
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>conf must be a Hash</span><span class='tstring_end'>"</span></span>
|
1608
1670
|
<span class='kw'>end</span>
|
1609
1671
|
|
@@ -1613,13 +1675,13 @@ when loading from a YAML file.</p>
|
|
1613
1675
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>R509Error</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ca_root_path is not a directory: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
1614
1676
|
<span class='kw'>end</span>
|
1615
1677
|
|
1616
|
-
<span class='id identifier rubyid_ca_cert'>ca_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ca_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span
|
1678
|
+
<span class='id identifier rubyid_ca_cert'>ca_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ca_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
|
1617
1679
|
|
1618
|
-
<span class='id identifier rubyid_ocsp_cert'>ocsp_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span
|
1680
|
+
<span class='id identifier rubyid_ocsp_cert'>ocsp_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
|
1619
1681
|
|
1620
|
-
<span class='id identifier rubyid_crl_cert'>crl_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span
|
1682
|
+
<span class='id identifier rubyid_crl_cert'>crl_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
|
1621
1683
|
|
1622
|
-
<span class='id identifier rubyid_ocsp_chain'>ocsp_chain</span> <span class='op'>=</span> <span class='id identifier rubyid_build_ocsp_chain'>build_ocsp_chain</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_chain</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span
|
1684
|
+
<span class='id identifier rubyid_ocsp_chain'>ocsp_chain</span> <span class='op'>=</span> <span class='id identifier rubyid_build_ocsp_chain'>build_ocsp_chain</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_chain</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
|
1623
1685
|
|
1624
1686
|
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
1625
1687
|
<span class='symbol'>:ca_cert</span> <span class='op'>=></span> <span class='id identifier rubyid_ca_cert'>ca_cert</span><span class='comma'>,</span>
|
@@ -1629,14 +1691,14 @@ when loading from a YAML file.</p>
|
|
1629
1691
|
<span class='symbol'>:crl_validity_hours</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_validity_hours</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1630
1692
|
<span class='symbol'>:ocsp_validity_hours</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_validity_hours</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1631
1693
|
<span class='symbol'>:ocsp_start_skew_seconds</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_start_skew_seconds</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1632
|
-
<span class='symbol'>:crl_md</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_md</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span
|
1694
|
+
<span class='symbol'>:crl_md</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_md</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1633
1695
|
<span class='rbrace'>}</span>
|
1634
1696
|
|
1635
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier
|
1697
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_list_file</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1636
1698
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:crl_list_file</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span> <span class='op'>+</span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_list_file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
1637
1699
|
<span class='kw'>end</span>
|
1638
1700
|
|
1639
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier
|
1701
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_number_file</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1640
1702
|
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:crl_number_file</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span> <span class='op'>+</span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_number_file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
1641
1703
|
<span class='kw'>end</span>
|
1642
1704
|
|
@@ -1653,7 +1715,7 @@ when loading from a YAML file.</p>
|
|
1653
1715
|
<div class="method_details ">
|
1654
1716
|
<h3 class="signature " id="load_profiles-class_method">
|
1655
1717
|
|
1656
|
-
|
1718
|
+
.<strong>load_profiles</strong>(profiles) ⇒ <tt>Hash</tt>
|
1657
1719
|
|
1658
1720
|
|
1659
1721
|
|
@@ -1714,6 +1776,8 @@ when loading from a YAML file.</p>
|
|
1714
1776
|
<pre class="lines">
|
1715
1777
|
|
1716
1778
|
|
1779
|
+
233
|
1780
|
+
234
|
1717
1781
|
235
|
1718
1782
|
236
|
1719
1783
|
237
|
@@ -1738,27 +1802,29 @@ when loading from a YAML file.</p>
|
|
1738
1802
|
256</pre>
|
1739
1803
|
</td>
|
1740
1804
|
<td>
|
1741
|
-
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line
|
1805
|
+
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 233</span>
|
1742
1806
|
|
1743
1807
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_profiles'>load_profiles</span><span class='lparen'>(</span><span class='id identifier rubyid_profiles'>profiles</span><span class='rparen'>)</span>
|
1744
1808
|
<span class='id identifier rubyid_profs'>profs</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
1745
|
-
<span class='id identifier rubyid_profiles'>profiles</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_profile'>profile</span><span class='comma'>,</span
|
1746
|
-
<span class='kw'>
|
1809
|
+
<span class='id identifier rubyid_profiles'>profiles</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_profile'>profile</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='op'>|</span>
|
1810
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>subject_item_policy</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1747
1811
|
<span class='id identifier rubyid_subject_item_policy'>subject_item_policy</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Config</span><span class='op'>::</span><span class='const'>SubjectItemPolicy</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>subject_item_policy</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1748
1812
|
<span class='kw'>end</span>
|
1749
|
-
<span class='id identifier rubyid_profs'>profs</span><span class='lbracket'>[</span><span class='id identifier rubyid_profile'>profile</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Config</span><span class='op'>::</span><span class='const'>CertProfile</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1813
|
+
<span class='id identifier rubyid_profs'>profs</span><span class='lbracket'>[</span><span class='id identifier rubyid_profile'>profile</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Config</span><span class='op'>::</span><span class='const'>CertProfile</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
1814
|
+
<span class='symbol'>:key_usage</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>key_usage</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1815
|
+
<span class='symbol'>:extended_key_usage</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>extended_key_usage</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1816
|
+
<span class='symbol'>:basic_constraints</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>basic_constraints</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1817
|
+
<span class='symbol'>:certificate_policies</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>certificate_policies</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1818
|
+
<span class='symbol'>:ocsp_no_check</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ocsp_no_check</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1819
|
+
<span class='symbol'>:inhibit_any_policy</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>inhibit_any_policy</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1820
|
+
<span class='symbol'>:policy_constraints</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>policy_constraints</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1821
|
+
<span class='symbol'>:name_constraints</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>name_constraints</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1822
|
+
<span class='symbol'>:crl_distribution_points</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_distribution_points</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1823
|
+
<span class='symbol'>:authority_info_access</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>authority_info_access</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1824
|
+
<span class='symbol'>:default_md</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default_md</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1825
|
+
<span class='symbol'>:allowed_mds</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>allowed_mds</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
|
1826
|
+
<span class='symbol'>:subject_item_policy</span> <span class='op'>=></span> <span class='id identifier rubyid_subject_item_policy'>subject_item_policy</span>
|
1827
|
+
<span class='rparen'>)</span>
|
1762
1828
|
<span class='kw'>end</span> <span class='kw'>unless</span> <span class='id identifier rubyid_profiles'>profiles</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1763
1829
|
<span class='id identifier rubyid_profs'>profs</span>
|
1764
1830
|
<span class='kw'>end</span></pre>
|
@@ -1770,7 +1836,7 @@ when loading from a YAML file.</p>
|
|
1770
1836
|
<div class="method_details ">
|
1771
1837
|
<h3 class="signature " id="load_yaml-class_method">
|
1772
1838
|
|
1773
|
-
|
1839
|
+
.<strong>load_yaml</strong>(conf_name, yaml_file, opts = {}) ⇒ <tt>Object</tt>
|
1774
1840
|
|
1775
1841
|
|
1776
1842
|
|
@@ -1856,7 +1922,7 @@ contain more than one configuration.</p>
|
|
1856
1922
|
<div class="method_details first">
|
1857
1923
|
<h3 class="signature first" id="crl_cert-instance_method">
|
1858
1924
|
|
1859
|
-
|
1925
|
+
#<strong>crl_cert</strong> ⇒ <tt><span class='object_link'><a href="../Cert.html" title="R509::Cert (class)">R509::Cert</a></span></tt>
|
1860
1926
|
|
1861
1927
|
|
1862
1928
|
|
@@ -1865,7 +1931,7 @@ contain more than one configuration.</p>
|
|
1865
1931
|
</h3><div class="docstring">
|
1866
1932
|
<div class="discussion">
|
1867
1933
|
|
1868
|
-
<p>
|
1934
|
+
<p>Returns either a custom CRL cert or the ca_cert</p>
|
1869
1935
|
|
1870
1936
|
|
1871
1937
|
</div>
|
@@ -1897,15 +1963,15 @@ contain more than one configuration.</p>
|
|
1897
1963
|
<pre class="lines">
|
1898
1964
|
|
1899
1965
|
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1966
|
+
125
|
1967
|
+
126
|
1968
|
+
127</pre>
|
1903
1969
|
</td>
|
1904
1970
|
<td>
|
1905
|
-
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line
|
1971
|
+
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 125</span>
|
1906
1972
|
|
1907
1973
|
<span class='kw'>def</span> <span class='id identifier rubyid_crl_cert'>crl_cert</span>
|
1908
|
-
<span class='
|
1974
|
+
<span class='lparen'>(</span><span class='ivar'>@crl_cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='ivar'>@ca_cert</span> <span class='op'>:</span> <span class='ivar'>@crl_cert</span>
|
1909
1975
|
<span class='kw'>end</span></pre>
|
1910
1976
|
</td>
|
1911
1977
|
</tr>
|
@@ -1915,7 +1981,7 @@ contain more than one configuration.</p>
|
|
1915
1981
|
<div class="method_details ">
|
1916
1982
|
<h3 class="signature " id="num_profiles-instance_method">
|
1917
1983
|
|
1918
|
-
|
1984
|
+
#<strong>num_profiles</strong> ⇒ <tt>Integer</tt>
|
1919
1985
|
|
1920
1986
|
|
1921
1987
|
|
@@ -1924,7 +1990,7 @@ contain more than one configuration.</p>
|
|
1924
1990
|
</h3><div class="docstring">
|
1925
1991
|
<div class="discussion">
|
1926
1992
|
|
1927
|
-
<p>The number of profiles</p>
|
1993
|
+
<p>Returns The number of profiles</p>
|
1928
1994
|
|
1929
1995
|
|
1930
1996
|
</div>
|
@@ -1956,12 +2022,12 @@ contain more than one configuration.</p>
|
|
1956
2022
|
<pre class="lines">
|
1957
2023
|
|
1958
2024
|
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
2025
|
+
148
|
2026
|
+
149
|
2027
|
+
150</pre>
|
1962
2028
|
</td>
|
1963
2029
|
<td>
|
1964
|
-
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line
|
2030
|
+
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 148</span>
|
1965
2031
|
|
1966
2032
|
<span class='kw'>def</span> <span class='id identifier rubyid_num_profiles'>num_profiles</span>
|
1967
2033
|
<span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span>
|
@@ -1974,7 +2040,7 @@ contain more than one configuration.</p>
|
|
1974
2040
|
<div class="method_details ">
|
1975
2041
|
<h3 class="signature " id="ocsp_cert-instance_method">
|
1976
2042
|
|
1977
|
-
|
2043
|
+
#<strong>ocsp_cert</strong> ⇒ <tt><span class='object_link'><a href="../Cert.html" title="R509::Cert (class)">R509::Cert</a></span></tt>
|
1978
2044
|
|
1979
2045
|
|
1980
2046
|
|
@@ -1983,7 +2049,7 @@ contain more than one configuration.</p>
|
|
1983
2049
|
</h3><div class="docstring">
|
1984
2050
|
<div class="discussion">
|
1985
2051
|
|
1986
|
-
<p>
|
2052
|
+
<p>Returns either a custom OCSP cert or the ca_cert</p>
|
1987
2053
|
|
1988
2054
|
|
1989
2055
|
</div>
|
@@ -2015,15 +2081,15 @@ contain more than one configuration.</p>
|
|
2015
2081
|
<pre class="lines">
|
2016
2082
|
|
2017
2083
|
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2084
|
+
120
|
2085
|
+
121
|
2086
|
+
122</pre>
|
2021
2087
|
</td>
|
2022
2088
|
<td>
|
2023
|
-
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line
|
2089
|
+
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 120</span>
|
2024
2090
|
|
2025
2091
|
<span class='kw'>def</span> <span class='id identifier rubyid_ocsp_cert'>ocsp_cert</span>
|
2026
|
-
<span class='
|
2092
|
+
<span class='lparen'>(</span><span class='ivar'>@ocsp_cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='ivar'>@ca_cert</span> <span class='op'>:</span> <span class='ivar'>@ocsp_cert</span>
|
2027
2093
|
<span class='kw'>end</span></pre>
|
2028
2094
|
</td>
|
2029
2095
|
</tr>
|
@@ -2033,7 +2099,7 @@ contain more than one configuration.</p>
|
|
2033
2099
|
<div class="method_details ">
|
2034
2100
|
<h3 class="signature " id="profile-instance_method">
|
2035
2101
|
|
2036
|
-
|
2102
|
+
#<strong>profile</strong>(prof) ⇒ <tt><span class='object_link'><a href="CertProfile.html" title="R509::Config::CertProfile (class)">R509::Config::CertProfile</a></span></tt>
|
2037
2103
|
|
2038
2104
|
|
2039
2105
|
|
@@ -2042,7 +2108,7 @@ contain more than one configuration.</p>
|
|
2042
2108
|
</h3><div class="docstring">
|
2043
2109
|
<div class="discussion">
|
2044
2110
|
|
2045
|
-
<p>The config profile.</p>
|
2111
|
+
<p>Returns The config profile.</p>
|
2046
2112
|
|
2047
2113
|
|
2048
2114
|
</div>
|
@@ -2089,18 +2155,18 @@ contain more than one configuration.</p>
|
|
2089
2155
|
<pre class="lines">
|
2090
2156
|
|
2091
2157
|
|
2158
|
+
140
|
2159
|
+
141
|
2092
2160
|
142
|
2093
2161
|
143
|
2094
2162
|
144
|
2095
|
-
145
|
2096
|
-
146
|
2097
|
-
147</pre>
|
2163
|
+
145</pre>
|
2098
2164
|
</td>
|
2099
2165
|
<td>
|
2100
|
-
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line
|
2166
|
+
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 140</span>
|
2101
2167
|
|
2102
2168
|
<span class='kw'>def</span> <span class='id identifier rubyid_profile'>profile</span><span class='lparen'>(</span><span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
|
2103
|
-
<span class='kw'>
|
2169
|
+
<span class='kw'>unless</span> <span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
|
2104
2170
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>R509Error</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>unknown profile '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_prof'>prof</span><span class='embexpr_end'>}</span><span class='tstring_content'>'</span><span class='tstring_end'>"</span></span>
|
2105
2171
|
<span class='kw'>end</span>
|
2106
2172
|
<span class='ivar'>@profiles</span><span class='lbracket'>[</span><span class='id identifier rubyid_prof'>prof</span><span class='rbracket'>]</span>
|
@@ -2113,7 +2179,7 @@ contain more than one configuration.</p>
|
|
2113
2179
|
<div class="method_details ">
|
2114
2180
|
<h3 class="signature " id="set_profile-instance_method">
|
2115
2181
|
|
2116
|
-
|
2182
|
+
#<strong>set_profile</strong>(name, prof) ⇒ <tt>Object</tt>
|
2117
2183
|
|
2118
2184
|
|
2119
2185
|
|
@@ -2170,15 +2236,15 @@ contain more than one configuration.</p>
|
|
2170
2236
|
<pre class="lines">
|
2171
2237
|
|
2172
2238
|
|
2239
|
+
131
|
2240
|
+
132
|
2173
2241
|
133
|
2174
2242
|
134
|
2175
2243
|
135
|
2176
|
-
136
|
2177
|
-
137
|
2178
|
-
138</pre>
|
2244
|
+
136</pre>
|
2179
2245
|
</td>
|
2180
2246
|
<td>
|
2181
|
-
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line
|
2247
|
+
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 131</span>
|
2182
2248
|
|
2183
2249
|
<span class='kw'>def</span> <span class='id identifier rubyid_set_profile'>set_profile</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
|
2184
2250
|
<span class='kw'>unless</span> <span class='id identifier rubyid_prof'>prof</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Config</span><span class='op'>::</span><span class='const'>CertProfile</span><span class='rparen'>)</span>
|
@@ -2194,7 +2260,7 @@ contain more than one configuration.</p>
|
|
2194
2260
|
<div class="method_details ">
|
2195
2261
|
<h3 class="signature " id="to_h-instance_method">
|
2196
2262
|
|
2197
|
-
|
2263
|
+
#<strong>to_h</strong> ⇒ <tt>Hash</tt>
|
2198
2264
|
|
2199
2265
|
|
2200
2266
|
|
@@ -2228,6 +2294,8 @@ contain more than one configuration.</p>
|
|
2228
2294
|
<pre class="lines">
|
2229
2295
|
|
2230
2296
|
|
2297
|
+
153
|
2298
|
+
154
|
2231
2299
|
155
|
2232
2300
|
156
|
2233
2301
|
157
|
@@ -2241,12 +2309,10 @@ contain more than one configuration.</p>
|
|
2241
2309
|
165
|
2242
2310
|
166
|
2243
2311
|
167
|
2244
|
-
168
|
2245
|
-
169
|
2246
|
-
170</pre>
|
2312
|
+
168</pre>
|
2247
2313
|
</td>
|
2248
2314
|
<td>
|
2249
|
-
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line
|
2315
|
+
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 153</span>
|
2250
2316
|
|
2251
2317
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
2252
2318
|
<span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -2261,7 +2327,7 @@ contain more than one configuration.</p>
|
|
2261
2327
|
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_list_file</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@crl_list_file</span> <span class='kw'>unless</span> <span class='ivar'>@crl_list_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
2262
2328
|
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_number_file</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@crl_number_file</span> <span class='kw'>unless</span> <span class='ivar'>@crl_number_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
2263
2329
|
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_md</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@crl_md</span>
|
2264
|
-
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>profiles</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='ivar'>@profiles</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier
|
2330
|
+
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>profiles</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='ivar'>@profiles</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid__k'>_k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='rbrace'>}</span> <span class='kw'>unless</span> <span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
2265
2331
|
<span class='id identifier rubyid_hash'>hash</span>
|
2266
2332
|
<span class='kw'>end</span></pre>
|
2267
2333
|
</td>
|
@@ -2272,7 +2338,7 @@ contain more than one configuration.</p>
|
|
2272
2338
|
<div class="method_details ">
|
2273
2339
|
<h3 class="signature " id="to_yaml-instance_method">
|
2274
2340
|
|
2275
|
-
|
2341
|
+
#<strong>to_yaml</strong> ⇒ <tt>YAML</tt>
|
2276
2342
|
|
2277
2343
|
|
2278
2344
|
|
@@ -2306,12 +2372,12 @@ contain more than one configuration.</p>
|
|
2306
2372
|
<pre class="lines">
|
2307
2373
|
|
2308
2374
|
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2375
|
+
171
|
2376
|
+
172
|
2377
|
+
173</pre>
|
2312
2378
|
</td>
|
2313
2379
|
<td>
|
2314
|
-
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line
|
2380
|
+
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 171</span>
|
2315
2381
|
|
2316
2382
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_yaml'>to_yaml</span>
|
2317
2383
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span><span class='period'>.</span><span class='id identifier rubyid_to_yaml'>to_yaml</span>
|
@@ -2325,11 +2391,12 @@ contain more than one configuration.</p>
|
|
2325
2391
|
|
2326
2392
|
</div>
|
2327
2393
|
|
2328
|
-
|
2329
|
-
Generated on
|
2394
|
+
<div id="footer">
|
2395
|
+
Generated on Tue Dec 6 17:27:40 2016 by
|
2330
2396
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2331
|
-
0.
|
2397
|
+
0.9.5 (ruby-2.4.0).
|
2332
2398
|
</div>
|
2333
2399
|
|
2400
|
+
</div>
|
2334
2401
|
</body>
|
2335
2402
|
</html>
|