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/CRL.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::CRL
|
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::CRL";
|
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">CRL</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::CRL
|
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/crl/signed_list.rb<span class="defines">,<br />
|
84
|
+
lib/r509/crl/administrator.rb,<br /> lib/r509/crl/reader_writer.rb,<br /> lib/r509/crl/sqlite_reader_writer.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">
|
@@ -103,7 +104,7 @@
|
|
103
104
|
|
104
105
|
|
105
106
|
|
106
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="CRL/Administrator.html" title="R509::CRL::Administrator (class)">Administrator</a></span>, <span class='object_link'><a href="CRL/FileReaderWriter.html" title="R509::CRL::FileReaderWriter (class)">FileReaderWriter</a></span>, <span class='object_link'><a href="CRL/ReaderWriter.html" title="R509::CRL::ReaderWriter (class)">ReaderWriter</a></span>, <span class='object_link'><a href="CRL/SignedList.html" title="R509::CRL::SignedList (class)">SignedList</a></span>
|
107
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="CRL/Administrator.html" title="R509::CRL::Administrator (class)">Administrator</a></span>, <span class='object_link'><a href="CRL/FileReaderWriter.html" title="R509::CRL::FileReaderWriter (class)">FileReaderWriter</a></span>, <span class='object_link'><a href="CRL/ReaderWriter.html" title="R509::CRL::ReaderWriter (class)">ReaderWriter</a></span>, <span class='object_link'><a href="CRL/SQLiteReaderWriter.html" title="R509::CRL::SQLiteReaderWriter (class)">SQLiteReaderWriter</a></span>, <span class='object_link'><a href="CRL/SignedList.html" title="R509::CRL::SignedList (class)">SignedList</a></span>
|
107
108
|
|
108
109
|
|
109
110
|
</p>
|
@@ -118,11 +119,12 @@
|
|
118
119
|
|
119
120
|
</div>
|
120
121
|
|
121
|
-
|
122
|
-
Generated on
|
122
|
+
<div id="footer">
|
123
|
+
Generated on Tue Dec 6 17:27:39 2016 by
|
123
124
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
124
|
-
0.
|
125
|
+
0.9.5 (ruby-2.4.0).
|
125
126
|
</div>
|
126
127
|
|
128
|
+
</div>
|
127
129
|
</body>
|
128
130
|
</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::CRL::Administrator
|
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::CRL::Administrator";
|
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 (A)</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="../CRL.html" title="R509::CRL (module)">CRL</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Administrator</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::CRL::Administrator
|
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>
|
86
|
+
|
87
|
+
|
88
|
+
|
88
89
|
|
89
90
|
|
90
|
-
|
91
91
|
|
92
|
-
|
93
92
|
|
93
|
+
|
94
94
|
|
95
|
+
|
95
96
|
|
96
|
-
|
97
|
-
<
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/r509/crl/administrator.rb</dd>
|
100
|
+
</dl>
|
98
101
|
|
99
|
-
</
|
100
|
-
<div class="clear"></div>
|
102
|
+
</div>
|
101
103
|
|
102
104
|
<h2>Overview</h2><div class="docstring">
|
103
105
|
<div class="discussion">
|
@@ -114,13 +116,13 @@
|
|
114
116
|
|
115
117
|
|
116
118
|
|
117
|
-
<h2>Instance Attribute Summary <small
|
119
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
118
120
|
<ul class="summary">
|
119
121
|
|
120
122
|
<li class="public ">
|
121
123
|
<span class="summary_signature">
|
122
124
|
|
123
|
-
<a href="#config-instance_method" title="#config (instance method)"
|
125
|
+
<a href="#config-instance_method" title="#config (instance method)">#<strong>config</strong> ⇒ Object </a>
|
124
126
|
|
125
127
|
|
126
128
|
|
@@ -149,7 +151,7 @@
|
|
149
151
|
<li class="public ">
|
150
152
|
<span class="summary_signature">
|
151
153
|
|
152
|
-
<a href="#crl_number-instance_method" title="#crl_number (instance method)"
|
154
|
+
<a href="#crl_number-instance_method" title="#crl_number (instance method)">#<strong>crl_number</strong> ⇒ Object </a>
|
153
155
|
|
154
156
|
|
155
157
|
|
@@ -183,7 +185,7 @@
|
|
183
185
|
|
184
186
|
<h2>
|
185
187
|
Instance Method Summary
|
186
|
-
<small
|
188
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
187
189
|
</h2>
|
188
190
|
|
189
191
|
<ul class="summary">
|
@@ -191,7 +193,7 @@
|
|
191
193
|
<li class="public ">
|
192
194
|
<span class="summary_signature">
|
193
195
|
|
194
|
-
<a href="#generate_crl-instance_method" title="#generate_crl (instance method)"
|
196
|
+
<a href="#generate_crl-instance_method" title="#generate_crl (instance method)">#<strong>generate_crl</strong>(last_update = Time.at(Time.now.to_i) - @config.crl_start_skew_seconds, next_update = Time.at(Time.now) + @config.crl_validity_hours * 3600) ⇒ R509::CRL::SignedList </a>
|
195
197
|
|
196
198
|
|
197
199
|
|
@@ -215,7 +217,7 @@
|
|
215
217
|
<li class="public ">
|
216
218
|
<span class="summary_signature">
|
217
219
|
|
218
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
220
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(config, reader_writer = R509::CRL::FileReaderWriter.new) ⇒ Administrator </a>
|
219
221
|
|
220
222
|
|
221
223
|
|
@@ -241,7 +243,7 @@
|
|
241
243
|
<li class="public ">
|
242
244
|
<span class="summary_signature">
|
243
245
|
|
244
|
-
<a href="#revoke_cert-instance_method" title="#revoke_cert (instance method)"
|
246
|
+
<a href="#revoke_cert-instance_method" title="#revoke_cert (instance method)">#<strong>revoke_cert</strong>(serial, reason = nil, revoke_time = Time.now.to_i, write = true) ⇒ Object </a>
|
245
247
|
|
246
248
|
|
247
249
|
|
@@ -265,7 +267,7 @@
|
|
265
267
|
<li class="public ">
|
266
268
|
<span class="summary_signature">
|
267
269
|
|
268
|
-
<a href="#revoked%3F-instance_method" title="#revoked? (instance method)"
|
270
|
+
<a href="#revoked%3F-instance_method" title="#revoked? (instance method)">#<strong>revoked?</strong>(serial) ⇒ Boolean </a>
|
269
271
|
|
270
272
|
|
271
273
|
|
@@ -289,7 +291,7 @@
|
|
289
291
|
<li class="public ">
|
290
292
|
<span class="summary_signature">
|
291
293
|
|
292
|
-
<a href="#revoked_cert-instance_method" title="#revoked_cert (instance method)"
|
294
|
+
<a href="#revoked_cert-instance_method" title="#revoked_cert (instance method)">#<strong>revoked_cert</strong>(serial) ⇒ Array </a>
|
293
295
|
|
294
296
|
|
295
297
|
|
@@ -313,7 +315,7 @@
|
|
313
315
|
<li class="public ">
|
314
316
|
<span class="summary_signature">
|
315
317
|
|
316
|
-
<a href="#revoked_certs-instance_method" title="#revoked_certs (instance method)"
|
318
|
+
<a href="#revoked_certs-instance_method" title="#revoked_certs (instance method)">#<strong>revoked_certs</strong> ⇒ Array<Array> </a>
|
317
319
|
|
318
320
|
|
319
321
|
|
@@ -337,7 +339,7 @@
|
|
337
339
|
<li class="public ">
|
338
340
|
<span class="summary_signature">
|
339
341
|
|
340
|
-
<a href="#unrevoke_cert-instance_method" title="#unrevoke_cert (instance method)"
|
342
|
+
<a href="#unrevoke_cert-instance_method" title="#unrevoke_cert (instance method)">#<strong>unrevoke_cert</strong>(serial) ⇒ Object </a>
|
341
343
|
|
342
344
|
|
343
345
|
|
@@ -369,7 +371,7 @@
|
|
369
371
|
<div class="method_details first">
|
370
372
|
<h3 class="signature first" id="initialize-instance_method">
|
371
373
|
|
372
|
-
|
374
|
+
#<strong>initialize</strong>(config, reader_writer = R509::CRL::FileReaderWriter.new) ⇒ <tt><span class='object_link'><a href="" title="R509::CRL::Administrator (class)">Administrator</a></span></tt>
|
373
375
|
|
374
376
|
|
375
377
|
|
@@ -378,7 +380,7 @@
|
|
378
380
|
</h3><div class="docstring">
|
379
381
|
<div class="discussion">
|
380
382
|
|
381
|
-
<p>
|
383
|
+
<p>Returns a new instance of Administrator</p>
|
382
384
|
|
383
385
|
|
384
386
|
</div>
|
@@ -444,29 +446,31 @@ R509::CRL::FileReaderWriter.</p>
|
|
444
446
|
32
|
445
447
|
33
|
446
448
|
34
|
447
|
-
35
|
449
|
+
35
|
450
|
+
36</pre>
|
448
451
|
</td>
|
449
452
|
<td>
|
450
453
|
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line 17</span>
|
451
454
|
|
452
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='comma'>,</span
|
455
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='comma'>,</span> <span class='id identifier rubyid_reader_writer'>reader_writer</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>CRL</span><span class='op'>::</span><span class='const'>FileReaderWriter</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='rparen'>)</span>
|
453
456
|
<span class='ivar'>@config</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span>
|
454
|
-
<span class='kw'>unless</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier
|
457
|
+
<span class='kw'>unless</span> <span class='ivar'>@config</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'>CAConfig</span><span class='rparen'>)</span>
|
455
458
|
<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'>config must be a kind of R509::Config::CAConfig</span><span class='tstring_end'>"</span></span>
|
456
459
|
<span class='kw'>end</span>
|
457
460
|
|
458
|
-
<span class='kw'>
|
461
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_reader_writer'>reader_writer</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'>CRL</span><span class='op'>::</span><span class='const'>ReaderWriter</span><span class='rparen'>)</span>
|
459
462
|
<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'>argument reader_writer must be a subclass of R509::CRL::ReaderWriter</span><span class='tstring_end'>"</span></span>
|
460
463
|
<span class='kw'>end</span>
|
461
464
|
<span class='ivar'>@rw</span> <span class='op'>=</span> <span class='id identifier rubyid_reader_writer'>reader_writer</span>
|
462
|
-
<span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_crl_list_file'>crl_list_file</span> <span class='op'>=</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_crl_list_file'>crl_list_file</span> <span class='kw'>
|
463
|
-
<span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_crl_number_file'>crl_number_file</span> <span class='op'>=</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_crl_number_file'>crl_number_file</span> <span class='kw'>
|
465
|
+
<span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_crl_list_file'>crl_list_file</span> <span class='op'>=</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_crl_list_file'>crl_list_file</span> <span class='kw'>if</span> <span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:crl_list_file=</span><span class='rparen'>)</span>
|
466
|
+
<span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_crl_number_file'>crl_number_file</span> <span class='op'>=</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_crl_number_file'>crl_number_file</span> <span class='kw'>if</span> <span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:crl_number_file=</span><span class='rparen'>)</span>
|
464
467
|
<span class='ivar'>@crl_number</span> <span class='op'>=</span> <span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_read_number'>read_number</span>
|
465
468
|
<span class='ivar'>@revoked_certs</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
466
|
-
<span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_read_list'>read_list</span><span class='
|
469
|
+
<span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_read_list'>read_list</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_revoke_time'>revoke_time</span><span class='op'>|</span>
|
470
|
+
<span class='id identifier rubyid_revoke_cert'>revoke_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_revoke_time'>revoke_time</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
471
|
+
<span class='kw'>end</span>
|
467
472
|
|
468
473
|
<span class='ivar'>@crl_md</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>MessageDigest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_crl_md'>crl_md</span><span class='rparen'>)</span>
|
469
|
-
<span class='ivar'>@crl</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
470
474
|
<span class='kw'>end</span></pre>
|
471
475
|
</td>
|
472
476
|
</tr>
|
@@ -483,7 +487,7 @@ R509::CRL::FileReaderWriter.</p>
|
|
483
487
|
<div class="method_details first">
|
484
488
|
<h3 class="signature first" id="config-instance_method">
|
485
489
|
|
486
|
-
|
490
|
+
#<strong>config</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
487
491
|
|
488
492
|
|
489
493
|
|
@@ -526,7 +530,7 @@ R509::CRL::FileReaderWriter.</p>
|
|
526
530
|
<div class="method_details ">
|
527
531
|
<h3 class="signature " id="crl_number-instance_method">
|
528
532
|
|
529
|
-
|
533
|
+
#<strong>crl_number</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
530
534
|
|
531
535
|
|
532
536
|
|
@@ -574,7 +578,7 @@ R509::CRL::FileReaderWriter.</p>
|
|
574
578
|
<div class="method_details first">
|
575
579
|
<h3 class="signature first" id="generate_crl-instance_method">
|
576
580
|
|
577
|
-
- (<tt><span class='object_link'><a href="SignedList.html" title="R509::CRL::SignedList (class)">R509::CRL::SignedList</a></span></tt>
|
581
|
+
#<strong>generate_crl</strong>(last_update = Time.at(Time.now.to_i) - @config.crl_start_skew_seconds, next_update = Time.at(Time.now) + @config.crl_validity_hours * 3600) ⇒ <tt><span class='object_link'><a href="SignedList.html" title="R509::CRL::SignedList (class)">R509::CRL::SignedList</a></span></tt>
|
578
582
|
|
579
583
|
|
580
584
|
|
@@ -600,7 +604,7 @@ R509::CRL::FileReaderWriter.</p>
|
|
600
604
|
<span class='type'>(<tt>Time</tt>)</span>
|
601
605
|
|
602
606
|
|
603
|
-
<em class="default">(defaults to: <tt>Time.at(Time.now.to_i)
|
607
|
+
<em class="default">(defaults to: <tt>Time.at(Time.now.to_i) - @config.crl_start_skew_seconds</tt>)</em>
|
604
608
|
|
605
609
|
|
606
610
|
—
|
@@ -618,7 +622,7 @@ R509::CRL::FileReaderWriter.</p>
|
|
618
622
|
<span class='type'>(<tt>Time</tt>)</span>
|
619
623
|
|
620
624
|
|
621
|
-
<em class="default">(defaults to: <tt>Time.at(Time.now)
|
625
|
+
<em class="default">(defaults to: <tt>Time.at(Time.now) + @config.crl_validity_hours * 3600</tt>)</em>
|
622
626
|
|
623
627
|
|
624
628
|
—
|
@@ -655,7 +659,6 @@ R509::CRL::FileReaderWriter.</p>
|
|
655
659
|
<pre class="lines">
|
656
660
|
|
657
661
|
|
658
|
-
103
|
659
662
|
104
|
660
663
|
105
|
661
664
|
106
|
@@ -675,21 +678,22 @@ R509::CRL::FileReaderWriter.</p>
|
|
675
678
|
120
|
676
679
|
121
|
677
680
|
122
|
678
|
-
123
|
681
|
+
123
|
682
|
+
124</pre>
|
679
683
|
</td>
|
680
684
|
<td>
|
681
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line
|
685
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line 104</span>
|
682
686
|
|
683
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_generate_crl'>generate_crl</span><span class='lparen'>(</span><span class='id identifier rubyid_last_update'>last_update</span
|
687
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_generate_crl'>generate_crl</span><span class='lparen'>(</span><span class='id identifier rubyid_last_update'>last_update</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_at'>at</span><span class='lparen'>(</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_crl_start_skew_seconds'>crl_start_skew_seconds</span><span class='comma'>,</span> <span class='id identifier rubyid_next_update'>next_update</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_at'>at</span><span class='lparen'>(</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_crl_validity_hours'>crl_validity_hours</span> <span class='op'>*</span> <span class='int'>3600</span><span class='rparen'>)</span>
|
684
688
|
<span class='comment'># Time.at(Time.now.to_i) removes sub-second precision. Subsecond precision is irrelevant
|
685
689
|
</span> <span class='comment'># for CRL update times and makes testing harder.
|
686
|
-
</span> <span class='id identifier rubyid_crl'>crl</span> <span class='op'>=</span> <span class='id identifier rubyid_create_crl_object'>create_crl_object</span><span class='lparen'>(</span><span class='id identifier rubyid_last_update'>last_update</span><span class='comma'>,</span
|
690
|
+
</span> <span class='id identifier rubyid_crl'>crl</span> <span class='op'>=</span> <span class='id identifier rubyid_create_crl_object'>create_crl_object</span><span class='lparen'>(</span><span class='id identifier rubyid_last_update'>last_update</span><span class='comma'>,</span> <span class='id identifier rubyid_next_update'>next_update</span><span class='rparen'>)</span>
|
687
691
|
|
688
692
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_revoked_certs'>revoked_certs</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_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_revoke_time'>revoke_time</span><span class='op'>|</span>
|
689
693
|
<span class='id identifier rubyid_revoked'>revoked</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>X509</span><span class='op'>::</span><span class='const'>Revoked</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
690
694
|
<span class='id identifier rubyid_revoked'>revoked</span><span class='period'>.</span><span class='id identifier rubyid_serial'>serial</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>BN</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_serial'>serial</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
691
695
|
<span class='id identifier rubyid_revoked'>revoked</span><span class='period'>.</span><span class='id identifier rubyid_time'>time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_at'>at</span><span class='lparen'>(</span><span class='id identifier rubyid_revoke_time'>revoke_time</span><span class='rparen'>)</span>
|
692
|
-
<span class='kw'>
|
696
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_reason'>reason</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
693
697
|
<span class='id identifier rubyid_enum'>enum</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>ASN1</span><span class='op'>::</span><span class='const'>Enumerated</span><span class='lparen'>(</span><span class='id identifier rubyid_reason'>reason</span><span class='rparen'>)</span>
|
694
698
|
<span class='id identifier rubyid_ext'>ext</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>X509</span><span class='op'>::</span><span class='const'>Extension</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>CRLReason</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_enum'>enum</span><span class='rparen'>)</span>
|
695
699
|
<span class='id identifier rubyid_revoked'>revoked</span><span class='period'>.</span><span class='id identifier rubyid_add_extension'>add_extension</span><span class='lparen'>(</span><span class='id identifier rubyid_ext'>ext</span><span class='rparen'>)</span>
|
@@ -709,7 +713,7 @@ R509::CRL::FileReaderWriter.</p>
|
|
709
713
|
<div class="method_details ">
|
710
714
|
<h3 class="signature " id="revoke_cert-instance_method">
|
711
715
|
|
712
|
-
|
716
|
+
#<strong>revoke_cert</strong>(serial, reason = nil, revoke_time = Time.now.to_i, write = true) ⇒ <tt>Object</tt>
|
713
717
|
|
714
718
|
|
715
719
|
|
@@ -818,7 +822,6 @@ you're doing an initial load</p>
|
|
818
822
|
<pre class="lines">
|
819
823
|
|
820
824
|
|
821
|
-
70
|
822
825
|
71
|
823
826
|
72
|
824
827
|
73
|
@@ -835,14 +838,15 @@ you're doing an initial load</p>
|
|
835
838
|
84
|
836
839
|
85
|
837
840
|
86
|
838
|
-
87
|
841
|
+
87
|
842
|
+
88</pre>
|
839
843
|
</td>
|
840
844
|
<td>
|
841
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line
|
845
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line 71</span>
|
842
846
|
|
843
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_revoke_cert'>revoke_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span
|
844
|
-
<span class='kw'>
|
845
|
-
<span class='kw'>if</span> <span class='
|
847
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_revoke_cert'>revoke_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_revoke_time'>revoke_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='comma'>,</span> <span class='id identifier rubyid_write'>write</span> <span class='op'>=</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
848
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_reason'>reason</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
849
|
+
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_reason'>reason</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Integer</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_reason'>reason</span><span class='period'>.</span><span class='id identifier rubyid_between?'>between?</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='int'>10</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_reason'>reason</span> <span class='op'>==</span> <span class='int'>7</span>
|
846
850
|
<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'>Revocation reason must be integer 0-10 (excluding 7) or nil</span><span class='tstring_end'>"</span></span>
|
847
851
|
<span class='kw'>end</span>
|
848
852
|
<span class='kw'>end</span>
|
@@ -852,7 +856,7 @@ you're doing an initial load</p>
|
|
852
856
|
<span class='kw'>if</span> <span class='id identifier rubyid_revoked?'>revoked?</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
853
857
|
<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'>Cannot revoke a previously revoked certificate</span><span class='tstring_end'>"</span></span>
|
854
858
|
<span class='kw'>end</span>
|
855
|
-
<span class='ivar'>@revoked_certs</span><span class='lbracket'>[</span><span class='id identifier rubyid_serial'>serial</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span
|
859
|
+
<span class='ivar'>@revoked_certs</span><span class='lbracket'>[</span><span class='id identifier rubyid_serial'>serial</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='symbol'>:reason</span> <span class='op'>=></span> <span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='symbol'>:revoke_time</span> <span class='op'>=></span> <span class='id identifier rubyid_revoke_time'>revoke_time</span> <span class='rbrace'>}</span>
|
856
860
|
<span class='kw'>if</span> <span class='id identifier rubyid_write'>write</span> <span class='op'>==</span> <span class='kw'>true</span>
|
857
861
|
<span class='ivar'>@rw</span><span class='period'>.</span><span class='id identifier rubyid_write_list_entry'>write_list_entry</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_revoke_time'>revoke_time</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='rparen'>)</span>
|
858
862
|
<span class='kw'>end</span>
|
@@ -866,7 +870,7 @@ you're doing an initial load</p>
|
|
866
870
|
<div class="method_details ">
|
867
871
|
<h3 class="signature " id="revoked?-instance_method">
|
868
872
|
|
869
|
-
|
873
|
+
#<strong>revoked?</strong>(serial) ⇒ <tt>Boolean</tt>
|
870
874
|
|
871
875
|
|
872
876
|
|
@@ -927,15 +931,15 @@ you're doing an initial load</p>
|
|
927
931
|
<pre class="lines">
|
928
932
|
|
929
933
|
|
930
|
-
41
|
931
934
|
42
|
932
|
-
43
|
935
|
+
43
|
936
|
+
44</pre>
|
933
937
|
</td>
|
934
938
|
<td>
|
935
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line
|
939
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line 42</span>
|
936
940
|
|
937
941
|
<span class='kw'>def</span> <span class='id identifier rubyid_revoked?'>revoked?</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
938
|
-
<span class='ivar'>@revoked_certs</span><span class='period'>.</span><span class='id identifier
|
942
|
+
<span class='ivar'>@revoked_certs</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='rparen'>)</span>
|
939
943
|
<span class='kw'>end</span></pre>
|
940
944
|
</td>
|
941
945
|
</tr>
|
@@ -945,7 +949,7 @@ you're doing an initial load</p>
|
|
945
949
|
<div class="method_details ">
|
946
950
|
<h3 class="signature " id="revoked_cert-instance_method">
|
947
951
|
|
948
|
-
|
952
|
+
#<strong>revoked_cert</strong>(serial) ⇒ <tt>Array</tt>
|
949
953
|
|
950
954
|
|
951
955
|
|
@@ -954,7 +958,7 @@ you're doing an initial load</p>
|
|
954
958
|
</h3><div class="docstring">
|
955
959
|
<div class="discussion">
|
956
960
|
|
957
|
-
<p>
|
961
|
+
<p>Returns serial, reason, revoke_time tuple</p>
|
958
962
|
|
959
963
|
|
960
964
|
</div>
|
@@ -986,12 +990,12 @@ you're doing an initial load</p>
|
|
986
990
|
<pre class="lines">
|
987
991
|
|
988
992
|
|
989
|
-
46
|
990
993
|
47
|
991
|
-
48
|
994
|
+
48
|
995
|
+
49</pre>
|
992
996
|
</td>
|
993
997
|
<td>
|
994
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line
|
998
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line 47</span>
|
995
999
|
|
996
1000
|
<span class='kw'>def</span> <span class='id identifier rubyid_revoked_cert'>revoked_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
997
1001
|
<span class='ivar'>@revoked_certs</span><span class='lbracket'>[</span><span class='id identifier rubyid_serial'>serial</span><span class='rbracket'>]</span>
|
@@ -1004,7 +1008,7 @@ you're doing an initial load</p>
|
|
1004
1008
|
<div class="method_details ">
|
1005
1009
|
<h3 class="signature " id="revoked_certs-instance_method">
|
1006
1010
|
|
1007
|
-
|
1011
|
+
#<strong>revoked_certs</strong> ⇒ <tt>Array<Array></tt>
|
1008
1012
|
|
1009
1013
|
|
1010
1014
|
|
@@ -1045,16 +1049,16 @@ you're doing an initial load</p>
|
|
1045
1049
|
<pre class="lines">
|
1046
1050
|
|
1047
1051
|
|
1048
|
-
127
|
1049
1052
|
128
|
1050
1053
|
129
|
1051
1054
|
130
|
1052
1055
|
131
|
1053
1056
|
132
|
1054
|
-
133
|
1057
|
+
133
|
1058
|
+
134</pre>
|
1055
1059
|
</td>
|
1056
1060
|
<td>
|
1057
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line
|
1061
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line 128</span>
|
1058
1062
|
|
1059
1063
|
<span class='kw'>def</span> <span class='id identifier rubyid_revoked_certs'>revoked_certs</span>
|
1060
1064
|
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -1071,7 +1075,7 @@ you're doing an initial load</p>
|
|
1071
1075
|
<div class="method_details ">
|
1072
1076
|
<h3 class="signature " id="unrevoke_cert-instance_method">
|
1073
1077
|
|
1074
|
-
|
1078
|
+
#<strong>unrevoke_cert</strong>(serial) ⇒ <tt>Object</tt>
|
1075
1079
|
|
1076
1080
|
|
1077
1081
|
|
@@ -1115,14 +1119,14 @@ generate_crl to sign a new CRL</p>
|
|
1115
1119
|
<pre class="lines">
|
1116
1120
|
|
1117
1121
|
|
1118
|
-
92
|
1119
1122
|
93
|
1120
1123
|
94
|
1121
1124
|
95
|
1122
|
-
96
|
1125
|
+
96
|
1126
|
+
97</pre>
|
1123
1127
|
</td>
|
1124
1128
|
<td>
|
1125
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line
|
1129
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/administrator.rb', line 93</span>
|
1126
1130
|
|
1127
1131
|
<span class='kw'>def</span> <span class='id identifier rubyid_unrevoke_cert'>unrevoke_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
1128
1132
|
<span class='ivar'>@revoked_certs</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
@@ -1138,11 +1142,12 @@ generate_crl to sign a new CRL</p>
|
|
1138
1142
|
|
1139
1143
|
</div>
|
1140
1144
|
|
1141
|
-
|
1142
|
-
Generated on
|
1145
|
+
<div id="footer">
|
1146
|
+
Generated on Tue Dec 6 17:27:40 2016 by
|
1143
1147
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1144
|
-
0.
|
1148
|
+
0.9.5 (ruby-2.4.0).
|
1145
1149
|
</div>
|
1146
1150
|
|
1151
|
+
</div>
|
1147
1152
|
</body>
|
1148
1153
|
</html>
|