r509 0.10.0 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/README.mdown +2 -2
  5. data/Rakefile +2 -3
  6. data/bin/r509 +77 -80
  7. data/bin/r509-parse +4 -4
  8. data/doc/R509.html +60 -60
  9. data/doc/R509/ASN1.html +158 -48
  10. data/doc/R509/ASN1/GeneralName.html +157 -154
  11. data/doc/R509/ASN1/GeneralNames.html +246 -237
  12. data/doc/R509/CRL.html +41 -39
  13. data/doc/R509/CRL/Administrator.html +105 -100
  14. data/doc/R509/CRL/FileReaderWriter.html +146 -98
  15. data/doc/R509/CRL/ReaderWriter.html +57 -54
  16. data/doc/R509/CRL/SQLiteReaderWriter.html +727 -0
  17. data/doc/R509/CRL/SignedList.html +83 -80
  18. data/doc/R509/CSR.html +184 -162
  19. data/doc/R509/Cert.html +271 -269
  20. data/doc/R509/Cert/Extensions.html +62 -63
  21. data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +138 -108
  22. data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +100 -84
  23. data/doc/R509/Cert/Extensions/BasicConstraints.html +89 -88
  24. data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +87 -83
  25. data/doc/R509/Cert/Extensions/CertificatePolicies.html +78 -76
  26. data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +128 -125
  27. data/doc/R509/Cert/Extensions/GeneralNamesMixin.html +83 -78
  28. data/doc/R509/Cert/Extensions/InhibitAnyPolicy.html +69 -67
  29. data/doc/R509/Cert/Extensions/KeyUsage.html +138 -135
  30. data/doc/R509/Cert/Extensions/NameConstraints.html +82 -81
  31. data/doc/R509/Cert/Extensions/NoticeReference.html +59 -56
  32. data/doc/R509/Cert/Extensions/OCSPNoCheck.html +70 -69
  33. data/doc/R509/Cert/Extensions/PolicyConstraints.html +71 -69
  34. data/doc/R509/Cert/Extensions/PolicyInformation.html +63 -60
  35. data/doc/R509/Cert/Extensions/PolicyQualifiers.html +60 -57
  36. data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +91 -87
  37. data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +72 -71
  38. data/doc/R509/Cert/Extensions/UserNotice.html +60 -57
  39. data/doc/R509/Cert/Extensions/ValidationMixin.html +43 -40
  40. data/doc/R509/CertificateAuthority.html +39 -37
  41. data/doc/R509/CertificateAuthority/OptionsBuilder.html +58 -55
  42. data/doc/R509/CertificateAuthority/Signer.html +277 -60
  43. data/doc/R509/Config.html +40 -38
  44. data/doc/R509/Config/CAConfig.html +255 -188
  45. data/doc/R509/Config/CAConfigPool.html +64 -61
  46. data/doc/R509/Config/CertProfile.html +119 -116
  47. data/doc/R509/Config/SubjectItemPolicy.html +94 -93
  48. data/doc/R509/Engine.html +60 -56
  49. data/doc/R509/Helpers.html +99 -96
  50. data/doc/R509/MessageDigest.html +69 -68
  51. data/doc/R509/NameSanitizer.html +51 -48
  52. data/doc/R509/OCSP.html +39 -37
  53. data/doc/R509/OCSP/Request.html +39 -37
  54. data/doc/R509/OCSP/Request/Nonce.html +67 -67
  55. data/doc/R509/OCSP/Response.html +93 -90
  56. data/doc/R509/OIDMapper.html +48 -46
  57. data/doc/R509/PrivateKey.html +170 -169
  58. data/doc/R509/R509Error.html +45 -42
  59. data/doc/R509/SPKI.html +99 -89
  60. data/doc/R509/Subject.html +86 -83
  61. data/doc/R509/Validity.html +57 -57
  62. data/doc/R509/Validity/Checker.html +63 -93
  63. data/doc/R509/Validity/DefaultChecker.html +58 -55
  64. data/doc/R509/Validity/DefaultWriter.html +62 -59
  65. data/doc/R509/Validity/Status.html +77 -74
  66. data/doc/R509/Validity/Writer.html +75 -123
  67. data/doc/_index.html +37 -31
  68. data/doc/class_list.html +25 -27
  69. data/doc/css/full_list.css +32 -31
  70. data/doc/css/style.css +221 -78
  71. data/doc/file.CONTRIBUTING.html +29 -30
  72. data/doc/file.LICENSE.html +29 -30
  73. data/doc/file.README.html +31 -32
  74. data/doc/file.YAML.html +33 -34
  75. data/doc/file.r509.html +39 -48
  76. data/doc/file_list.html +39 -30
  77. data/doc/frames.html +10 -21
  78. data/doc/index.html +31 -32
  79. data/doc/js/app.js +100 -71
  80. data/doc/js/full_list.js +168 -130
  81. data/doc/method_list.html +1788 -1119
  82. data/doc/top-level-namespace.html +45 -49
  83. data/lib/r509.rb +21 -7
  84. data/lib/r509/asn1.rb +45 -32
  85. data/lib/r509/cert.rb +45 -51
  86. data/lib/r509/cert/extensions/authority_info_access.rb +49 -23
  87. data/lib/r509/cert/extensions/authority_key_identifier.rb +16 -11
  88. data/lib/r509/cert/extensions/base.rb +22 -23
  89. data/lib/r509/cert/extensions/basic_constraints.rb +11 -12
  90. data/lib/r509/cert/extensions/certificate_policies.rb +26 -26
  91. data/lib/r509/cert/extensions/crl_distribution_points.rb +5 -7
  92. data/lib/r509/cert/extensions/extended_key_usage.rb +5 -5
  93. data/lib/r509/cert/extensions/inhibit_any_policy.rb +4 -3
  94. data/lib/r509/cert/extensions/key_usage.rb +5 -5
  95. data/lib/r509/cert/extensions/name_constraints.rb +16 -16
  96. data/lib/r509/cert/extensions/ocsp_no_check.rb +3 -3
  97. data/lib/r509/cert/extensions/policy_constraints.rb +8 -8
  98. data/lib/r509/cert/extensions/subject_alternative_name.rb +5 -4
  99. data/lib/r509/cert/extensions/subject_key_identifier.rb +5 -5
  100. data/lib/r509/cert/extensions/validation_mixin.rb +11 -10
  101. data/lib/r509/certificate_authority/options_builder.rb +19 -21
  102. data/lib/r509/certificate_authority/signer.rb +26 -27
  103. data/lib/r509/config.rb +1 -0
  104. data/lib/r509/config/ca_config.rb +70 -75
  105. data/lib/r509/config/cert_profile.rb +9 -8
  106. data/lib/r509/config/subject_item_policy.rb +25 -28
  107. data/lib/r509/crl/administrator.rb +19 -20
  108. data/lib/r509/crl/reader_writer.rb +10 -8
  109. data/lib/r509/crl/signed_list.rb +4 -4
  110. data/lib/r509/crl/sqlite_reader_writer.rb +75 -0
  111. data/lib/r509/csr.rb +54 -60
  112. data/lib/r509/ec-hack.rb +3 -2
  113. data/lib/r509/engine.rb +5 -6
  114. data/lib/r509/exceptions.rb +1 -1
  115. data/lib/r509/helpers.rb +11 -14
  116. data/lib/r509/io_helpers.rb +7 -7
  117. data/lib/r509/message_digest.rb +5 -6
  118. data/lib/r509/ocsp.rb +11 -13
  119. data/lib/r509/oid_mapper.rb +2 -2
  120. data/lib/r509/private_key.rb +28 -32
  121. data/lib/r509/spki.rb +17 -20
  122. data/lib/r509/subject.rb +26 -27
  123. data/lib/r509/trollop.rb +1 -0
  124. data/lib/r509/validity.rb +30 -21
  125. data/lib/r509/version.rb +4 -2
  126. data/r509.yaml +9 -17
  127. data/spec/asn1_spec.rb +145 -146
  128. data/spec/cert/extensions/authority_info_access_spec.rb +41 -41
  129. data/spec/cert/extensions/authority_key_identifier_spec.rb +29 -23
  130. data/spec/cert/extensions/base_spec.rb +38 -34
  131. data/spec/cert/extensions/basic_constraints_spec.rb +21 -21
  132. data/spec/cert/extensions/certificate_policies_spec.rb +99 -87
  133. data/spec/cert/extensions/crl_distribution_points_spec.rb +24 -25
  134. data/spec/cert/extensions/extended_key_usage_spec.rb +40 -36
  135. data/spec/cert/extensions/inhibit_any_policy_spec.rb +12 -12
  136. data/spec/cert/extensions/key_usage_spec.rb +44 -39
  137. data/spec/cert/extensions/name_constraints_spec.rb +83 -83
  138. data/spec/cert/extensions/ocsp_no_check_spec.rb +10 -10
  139. data/spec/cert/extensions/policy_constraints_spec.rb +19 -19
  140. data/spec/cert/extensions/subject_alternative_name_spec.rb +46 -47
  141. data/spec/cert/extensions/subject_key_identifier_spec.rb +10 -10
  142. data/spec/cert_spec.rb +105 -101
  143. data/spec/certificate_authority/options_builder_spec.rb +90 -90
  144. data/spec/certificate_authority/signer_spec.rb +41 -41
  145. data/spec/config/ca_config_spec.rb +169 -119
  146. data/spec/config/cert_profile_spec.rb +33 -33
  147. data/spec/config/subject_item_policy_spec.rb +22 -22
  148. data/spec/crl/administrator_spec.rb +65 -65
  149. data/spec/crl/reader_writer_spec.rb +20 -19
  150. data/spec/crl/signed_list_spec.rb +26 -26
  151. data/spec/crl/sqlite_reader_writer_spec.rb +42 -0
  152. data/spec/csr_spec.rb +149 -145
  153. data/spec/engine_spec.rb +14 -14
  154. data/spec/fixtures.rb +56 -39
  155. data/spec/fixtures/crl_list.sql +13 -0
  156. data/spec/fixtures/csr1.der +0 -0
  157. data/spec/fixtures/csr1.pem +6 -6
  158. data/spec/message_digest_spec.rb +43 -43
  159. data/spec/ocsp_spec.rb +25 -25
  160. data/spec/oid_mapper_spec.rb +18 -19
  161. data/spec/private_key_spec.rb +79 -81
  162. data/spec/r509_spec.rb +16 -16
  163. data/spec/spec_helper.rb +3 -3
  164. data/spec/spki_spec.rb +94 -94
  165. data/spec/subject_spec.rb +107 -107
  166. data/spec/validity_spec.rb +25 -25
  167. metadata +113 -111
  168. metadata.gz.sig +0 -0
@@ -1,12 +1,12 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  Class: R509::Cert
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "R509::Cert";
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 id="header">
32
- <div id="menu">
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> &raquo;
35
40
  <span class='title'><span class='object_link'><a href="../R509.html" title="R509 (module)">R509</a></span></span>
36
41
  &raquo;
37
42
  <span class="title">Cert</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
- <div id="search">
46
+ <div id="search">
44
47
 
45
48
  <a class="full_list_link" id="class_list_link"
46
49
  href="../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../method_list.html">
52
- Method List
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
- <div class="clear"></div>
62
- </div>
59
+ <div class="clear"></div>
60
+ </div>
63
61
 
64
- <iframe id="search_frame"></iframe>
62
+ <iframe id="search_frame" src="../class_list.html"></iframe>
65
63
 
66
- <div id="content"><h1>Class: R509::Cert
64
+ <div id="content"><h1>Class: R509::Cert
67
65
 
68
66
 
69
67
 
70
68
  </h1>
71
-
72
- <dl class="box">
69
+ <div class="box_info">
73
70
 
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
71
+ <dl>
72
+ <dt>Inherits:</dt>
73
+ <dd>
76
74
  <span class="inheritName">Object</span>
77
75
 
78
76
  <ul class="fullTree">
@@ -83,27 +81,32 @@
83
81
  </ul>
84
82
  <a href="#" class="inheritanceTree">show all</a>
85
83
 
86
- </dd>
87
-
84
+ </dd>
85
+ </dl>
88
86
 
87
+
89
88
 
90
-
91
89
 
92
-
93
- <dt class="r2">Includes:</dt>
94
- <dd class="r2"><span class='object_link'><a href="Helpers.html" title="R509::Helpers (module)">Helpers</a></span></dd>
95
-
96
-
97
90
 
98
91
 
92
+ <dl>
93
+ <dt>Includes:</dt>
94
+ <dd><span class='object_link'><a href="Helpers.html" title="R509::Helpers (module)">Helpers</a></span></dd>
95
+ </dl>
99
96
 
100
- <dt class="r1 last">Defined in:</dt>
101
- <dd class="r1 last">lib/r509/cert.rb<span class="defines">,<br />
102
- lib/r509/cert/extensions/base.rb,<br /> lib/r509/cert/extensions/key_usage.rb,<br /> lib/r509/cert/extensions/ocsp_no_check.rb,<br /> lib/r509/cert/extensions/name_constraints.rb,<br /> lib/r509/cert/extensions/validation_mixin.rb,<br /> lib/r509/cert/extensions/basic_constraints.rb,<br /> lib/r509/cert/extensions/extended_key_usage.rb,<br /> lib/r509/cert/extensions/policy_constraints.rb,<br /> lib/r509/cert/extensions/inhibit_any_policy.rb,<br /> lib/r509/cert/extensions/certificate_policies.rb,<br /> lib/r509/cert/extensions/authority_info_access.rb,<br /> lib/r509/cert/extensions/subject_key_identifier.rb,<br /> lib/r509/cert/extensions/crl_distribution_points.rb,<br /> lib/r509/cert/extensions/subject_alternative_name.rb,<br /> lib/r509/cert/extensions/authority_key_identifier.rb</span>
97
+
98
+
99
+
100
+
101
+
102
+ <dl>
103
+ <dt>Defined in:</dt>
104
+ <dd>lib/r509/cert.rb<span class="defines">,<br />
105
+ lib/r509/cert/extensions/base.rb,<br /> lib/r509/cert/extensions/key_usage.rb,<br /> lib/r509/cert/extensions/ocsp_no_check.rb,<br /> lib/r509/cert/extensions/name_constraints.rb,<br /> lib/r509/cert/extensions/validation_mixin.rb,<br /> lib/r509/cert/extensions/basic_constraints.rb,<br /> lib/r509/cert/extensions/policy_constraints.rb,<br /> lib/r509/cert/extensions/inhibit_any_policy.rb,<br /> lib/r509/cert/extensions/extended_key_usage.rb,<br /> lib/r509/cert/extensions/certificate_policies.rb,<br /> lib/r509/cert/extensions/authority_info_access.rb,<br /> lib/r509/cert/extensions/subject_key_identifier.rb,<br /> lib/r509/cert/extensions/crl_distribution_points.rb,<br /> lib/r509/cert/extensions/authority_key_identifier.rb,<br /> lib/r509/cert/extensions/subject_alternative_name.rb</span>
103
106
  </dd>
107
+ </dl>
104
108
 
105
- </dl>
106
- <div class="clear"></div>
109
+ </div>
107
110
 
108
111
  <h2>Overview</h2><div class="docstring">
109
112
  <div class="discussion">
@@ -130,16 +133,18 @@
130
133
 
131
134
 
132
135
 
133
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
136
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
134
137
  <ul class="summary">
135
138
 
136
139
  <li class="public ">
137
140
  <span class="summary_signature">
138
141
 
139
- <a href="#cert-instance_method" title="#cert (instance method)">- (Object) <strong>cert</strong> </a>
142
+ <a href="#cert-instance_method" title="#cert (instance method)">#<strong>cert</strong> &#x21d2; Object </a>
140
143
 
141
144
 
142
145
 
146
+ (also: #internal_obj)
147
+
143
148
  </span>
144
149
 
145
150
 
@@ -165,7 +170,7 @@
165
170
  <li class="public ">
166
171
  <span class="summary_signature">
167
172
 
168
- <a href="#issuer-instance_method" title="#issuer (instance method)">- (Object) <strong>issuer</strong> </a>
173
+ <a href="#issuer-instance_method" title="#issuer (instance method)">#<strong>issuer</strong> &#x21d2; Object </a>
169
174
 
170
175
 
171
176
 
@@ -194,7 +199,7 @@
194
199
  <li class="public ">
195
200
  <span class="summary_signature">
196
201
 
197
- <a href="#key-instance_method" title="#key (instance method)">- (Object) <strong>key</strong> </a>
202
+ <a href="#key-instance_method" title="#key (instance method)">#<strong>key</strong> &#x21d2; Object </a>
198
203
 
199
204
 
200
205
 
@@ -223,7 +228,7 @@
223
228
  <li class="public ">
224
229
  <span class="summary_signature">
225
230
 
226
- <a href="#subject-instance_method" title="#subject (instance method)">- (Object) <strong>subject</strong> </a>
231
+ <a href="#subject-instance_method" title="#subject (instance method)">#<strong>subject</strong> &#x21d2; Object </a>
227
232
 
228
233
 
229
234
 
@@ -257,7 +262,7 @@
257
262
 
258
263
  <h2>
259
264
  Class Method Summary
260
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
265
+ <small><a href="#" class="summary_toggle">collapse</a></small>
261
266
  </h2>
262
267
 
263
268
  <ul class="summary">
@@ -265,7 +270,7 @@
265
270
  <li class="public ">
266
271
  <span class="summary_signature">
267
272
 
268
- <a href="#load_from_file-class_method" title="load_from_file (class method)">+ (R509::Cert) <strong>load_from_file</strong>(filename) </a>
273
+ <a href="#load_from_file-class_method" title="load_from_file (class method)">.<strong>load_from_file</strong>(filename) &#x21d2; R509::Cert </a>
269
274
 
270
275
 
271
276
 
@@ -290,7 +295,7 @@
290
295
 
291
296
  <h2>
292
297
  Instance Method Summary
293
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
298
+ <small><a href="#" class="summary_toggle">collapse</a></small>
294
299
  </h2>
295
300
 
296
301
  <ul class="summary">
@@ -298,7 +303,7 @@
298
303
  <li class="public ">
299
304
  <span class="summary_signature">
300
305
 
301
- <a href="#all_names-instance_method" title="#all_names (instance method)">- (Array) <strong>all_names</strong> </a>
306
+ <a href="#all_names-instance_method" title="#all_names (instance method)">#<strong>all_names</strong> &#x21d2; Array </a>
302
307
 
303
308
 
304
309
 
@@ -322,7 +327,7 @@
322
327
  <li class="public ">
323
328
  <span class="summary_signature">
324
329
 
325
- <a href="#authority_info_access-instance_method" title="#authority_info_access (instance method)">- (R509::Cert::Extensions::AuthorityInfoAccess) <strong>authority_info_access</strong> </a>
330
+ <a href="#authority_info_access-instance_method" title="#authority_info_access (instance method)">#<strong>authority_info_access</strong> &#x21d2; R509::Cert::Extensions::AuthorityInfoAccess </a>
326
331
 
327
332
 
328
333
 
@@ -349,7 +354,7 @@ extension.</p>
349
354
  <li class="public ">
350
355
  <span class="summary_signature">
351
356
 
352
- <a href="#authority_key_identifier-instance_method" title="#authority_key_identifier (instance method)">- (R509::Cert::Extensions::AuthorityKeyIdentifier) <strong>authority_key_identifier</strong> </a>
357
+ <a href="#authority_key_identifier-instance_method" title="#authority_key_identifier (instance method)">#<strong>authority_key_identifier</strong> &#x21d2; R509::Cert::Extensions::AuthorityKeyIdentifier </a>
353
358
 
354
359
 
355
360
 
@@ -374,7 +379,7 @@ extension.</p>
374
379
  <li class="public ">
375
380
  <span class="summary_signature">
376
381
 
377
- <a href="#basic_constraints-instance_method" title="#basic_constraints (instance method)">- (R509::Cert::Extensions::BasicConstraints) <strong>basic_constraints</strong> </a>
382
+ <a href="#basic_constraints-instance_method" title="#basic_constraints (instance method)">#<strong>basic_constraints</strong> &#x21d2; R509::Cert::Extensions::BasicConstraints </a>
378
383
 
379
384
 
380
385
 
@@ -398,7 +403,7 @@ extension.</p>
398
403
  <li class="public ">
399
404
  <span class="summary_signature">
400
405
 
401
- <a href="#bit_length-instance_method" title="#bit_length (instance method)">- (Integer) <strong>bit_length</strong> </a>
406
+ <a href="#bit_length-instance_method" title="#bit_length (instance method)">#<strong>bit_length</strong> &#x21d2; Integer </a>
402
407
 
403
408
 
404
409
 
@@ -429,7 +434,7 @@ extension.</p>
429
434
  <li class="public ">
430
435
  <span class="summary_signature">
431
436
 
432
- <a href="#certificate_policies-instance_method" title="#certificate_policies (instance method)">- (R509::Cert::Extensions::CertificatePolicies) <strong>certificate_policies</strong> </a>
437
+ <a href="#certificate_policies-instance_method" title="#certificate_policies (instance method)">#<strong>certificate_policies</strong> &#x21d2; R509::Cert::Extensions::CertificatePolicies </a>
433
438
 
434
439
 
435
440
 
@@ -454,7 +459,7 @@ extension.</p>
454
459
  <li class="public ">
455
460
  <span class="summary_signature">
456
461
 
457
- <a href="#crl_distribution_points-instance_method" title="#crl_distribution_points (instance method)">- (R509::Cert::Extensions::CRLDistributionPoints) <strong>crl_distribution_points</strong> </a>
462
+ <a href="#crl_distribution_points-instance_method" title="#crl_distribution_points (instance method)">#<strong>crl_distribution_points</strong> &#x21d2; R509::Cert::Extensions::CRLDistributionPoints </a>
458
463
 
459
464
 
460
465
 
@@ -481,7 +486,7 @@ extension.</p>
481
486
  <li class="public ">
482
487
  <span class="summary_signature">
483
488
 
484
- <a href="#curve_name-instance_method" title="#curve_name (instance method)">- (String) <strong>curve_name</strong> </a>
489
+ <a href="#curve_name-instance_method" title="#curve_name (instance method)">#<strong>curve_name</strong> &#x21d2; String </a>
485
490
 
486
491
 
487
492
 
@@ -511,7 +516,7 @@ key if the key is EC.</p>
511
516
  <li class="public ">
512
517
  <span class="summary_signature">
513
518
 
514
- <a href="#dsa%3F-instance_method" title="#dsa? (instance method)">- (Boolean) <strong>dsa?</strong> </a>
519
+ <a href="#dsa%3F-instance_method" title="#dsa? (instance method)">#<strong>dsa?</strong> &#x21d2; Boolean </a>
515
520
 
516
521
 
517
522
 
@@ -540,7 +545,7 @@ key if the key is EC.</p>
540
545
  <li class="public ">
541
546
  <span class="summary_signature">
542
547
 
543
- <a href="#ec%3F-instance_method" title="#ec? (instance method)">- (Boolean) <strong>ec?</strong> </a>
548
+ <a href="#ec%3F-instance_method" title="#ec? (instance method)">#<strong>ec?</strong> &#x21d2; Boolean </a>
544
549
 
545
550
 
546
551
 
@@ -569,7 +574,7 @@ key if the key is EC.</p>
569
574
  <li class="public ">
570
575
  <span class="summary_signature">
571
576
 
572
- <a href="#extended_key_usage-instance_method" title="#extended_key_usage (instance method)">- (R509::Cert::Extensions::ExtendedKeyUsage) <strong>extended_key_usage</strong> </a>
577
+ <a href="#extended_key_usage-instance_method" title="#extended_key_usage (instance method)">#<strong>extended_key_usage</strong> &#x21d2; R509::Cert::Extensions::ExtendedKeyUsage </a>
573
578
 
574
579
 
575
580
 
@@ -595,7 +600,7 @@ key if the key is EC.</p>
595
600
  <li class="public ">
596
601
  <span class="summary_signature">
597
602
 
598
- <a href="#extensions-instance_method" title="#extensions (instance method)">- (Hash) <strong>extensions</strong> </a>
603
+ <a href="#extensions-instance_method" title="#extensions (instance method)">#<strong>extensions</strong> &#x21d2; Hash </a>
599
604
 
600
605
 
601
606
 
@@ -620,7 +625,7 @@ specific objects.</p>
620
625
  <li class="public ">
621
626
  <span class="summary_signature">
622
627
 
623
- <a href="#fingerprint-instance_method" title="#fingerprint (instance method)">- (String) <strong>fingerprint</strong>(algorithm = &#39;sha1&#39;) </a>
628
+ <a href="#fingerprint-instance_method" title="#fingerprint (instance method)">#<strong>fingerprint</strong>(algorithm = &#39;sha256&#39;) &#x21d2; String </a>
624
629
 
625
630
 
626
631
 
@@ -636,7 +641,7 @@ specific objects.</p>
636
641
 
637
642
  <span class="summary_desc"><div class='inline'>
638
643
  <p>Returns the certificate fingerprint with the specified algorithm (default
639
- sha1).</p>
644
+ sha256).</p>
640
645
  </div></span>
641
646
 
642
647
  </li>
@@ -645,7 +650,7 @@ sha1).</p>
645
650
  <li class="public ">
646
651
  <span class="summary_signature">
647
652
 
648
- <a href="#has_private_key%3F-instance_method" title="#has_private_key? (instance method)">- (Boolean) <strong>has_private_key?</strong> </a>
653
+ <a href="#has_private_key%3F-instance_method" title="#has_private_key? (instance method)">#<strong>has_private_key?</strong> &#x21d2; Boolean </a>
649
654
 
650
655
 
651
656
 
@@ -669,7 +674,7 @@ sha1).</p>
669
674
  <li class="public ">
670
675
  <span class="summary_signature">
671
676
 
672
- <a href="#hexserial-instance_method" title="#hexserial (instance method)">- (String) <strong>hexserial</strong> </a>
677
+ <a href="#hexserial-instance_method" title="#hexserial (instance method)">#<strong>hexserial</strong> &#x21d2; String </a>
673
678
 
674
679
 
675
680
 
@@ -693,7 +698,7 @@ sha1).</p>
693
698
  <li class="public ">
694
699
  <span class="summary_signature">
695
700
 
696
- <a href="#inhibit_any_policy-instance_method" title="#inhibit_any_policy (instance method)">- (R509::Cert::Extensions::InhibitAnyPolicy) <strong>inhibit_any_policy</strong> </a>
701
+ <a href="#inhibit_any_policy-instance_method" title="#inhibit_any_policy (instance method)">#<strong>inhibit_any_policy</strong> &#x21d2; R509::Cert::Extensions::InhibitAnyPolicy </a>
697
702
 
698
703
 
699
704
 
@@ -717,7 +722,7 @@ sha1).</p>
717
722
  <li class="public ">
718
723
  <span class="summary_signature">
719
724
 
720
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Cert) <strong>initialize</strong>(opts = {}) </a>
725
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) &#x21d2; Cert </a>
721
726
 
722
727
 
723
728
 
@@ -743,7 +748,7 @@ sha1).</p>
743
748
  <li class="public ">
744
749
  <span class="summary_signature">
745
750
 
746
- <a href="#is_revoked_by_crl%3F-instance_method" title="#is_revoked_by_crl? (instance method)">- (Boolean) <strong>is_revoked_by_crl?</strong>(r509_crl) </a>
751
+ <a href="#is_revoked_by_crl%3F-instance_method" title="#is_revoked_by_crl? (instance method)">#<strong>is_revoked_by_crl?</strong>(r509_crl) &#x21d2; Boolean </a>
747
752
 
748
753
 
749
754
 
@@ -767,7 +772,7 @@ sha1).</p>
767
772
  <li class="public ">
768
773
  <span class="summary_signature">
769
774
 
770
- <a href="#key_algorithm-instance_method" title="#key_algorithm (instance method)">- (String) <strong>key_algorithm</strong> </a>
775
+ <a href="#key_algorithm-instance_method" title="#key_algorithm (instance method)">#<strong>key_algorithm</strong> &#x21d2; String </a>
771
776
 
772
777
 
773
778
 
@@ -796,7 +801,7 @@ sha1).</p>
796
801
  <li class="public ">
797
802
  <span class="summary_signature">
798
803
 
799
- <a href="#key_usage-instance_method" title="#key_usage (instance method)">- (R509::Cert::Extensions::KeyUsage) <strong>key_usage</strong> </a>
804
+ <a href="#key_usage-instance_method" title="#key_usage (instance method)">#<strong>key_usage</strong> &#x21d2; R509::Cert::Extensions::KeyUsage </a>
800
805
 
801
806
 
802
807
 
@@ -822,7 +827,7 @@ sha1).</p>
822
827
  <li class="public ">
823
828
  <span class="summary_signature">
824
829
 
825
- <a href="#name_constraints-instance_method" title="#name_constraints (instance method)">- (R509::Cert::Extensions::NameConstraints) <strong>name_constraints</strong> </a>
830
+ <a href="#name_constraints-instance_method" title="#name_constraints (instance method)">#<strong>name_constraints</strong> &#x21d2; R509::Cert::Extensions::NameConstraints </a>
826
831
 
827
832
 
828
833
 
@@ -846,7 +851,7 @@ sha1).</p>
846
851
  <li class="public ">
847
852
  <span class="summary_signature">
848
853
 
849
- <a href="#not_after-instance_method" title="#not_after (instance method)">- (Time) <strong>not_after</strong> </a>
854
+ <a href="#not_after-instance_method" title="#not_after (instance method)">#<strong>not_after</strong> &#x21d2; Time </a>
850
855
 
851
856
 
852
857
 
@@ -870,7 +875,7 @@ sha1).</p>
870
875
  <li class="public ">
871
876
  <span class="summary_signature">
872
877
 
873
- <a href="#not_before-instance_method" title="#not_before (instance method)">- (Time) <strong>not_before</strong> </a>
878
+ <a href="#not_before-instance_method" title="#not_before (instance method)">#<strong>not_before</strong> &#x21d2; Time </a>
874
879
 
875
880
 
876
881
 
@@ -894,7 +899,7 @@ sha1).</p>
894
899
  <li class="public ">
895
900
  <span class="summary_signature">
896
901
 
897
- <a href="#ocsp_no_check%3F-instance_method" title="#ocsp_no_check? (instance method)">- (Boolean) <strong>ocsp_no_check?</strong> </a>
902
+ <a href="#ocsp_no_check%3F-instance_method" title="#ocsp_no_check? (instance method)">#<strong>ocsp_no_check?</strong> &#x21d2; Boolean </a>
898
903
 
899
904
 
900
905
 
@@ -919,7 +924,7 @@ to this extension).</p>
919
924
  <li class="public ">
920
925
  <span class="summary_signature">
921
926
 
922
- <a href="#policy_constraints-instance_method" title="#policy_constraints (instance method)">- (R509::Cert::Extensions::PolicyConstraints) <strong>policy_constraints</strong> </a>
927
+ <a href="#policy_constraints-instance_method" title="#policy_constraints (instance method)">#<strong>policy_constraints</strong> &#x21d2; R509::Cert::Extensions::PolicyConstraints </a>
923
928
 
924
929
 
925
930
 
@@ -943,7 +948,7 @@ to this extension).</p>
943
948
  <li class="public ">
944
949
  <span class="summary_signature">
945
950
 
946
- <a href="#public_key-instance_method" title="#public_key (instance method)">- (OpenSSL::PKey::RSA) <strong>public_key</strong> </a>
951
+ <a href="#public_key-instance_method" title="#public_key (instance method)">#<strong>public_key</strong> &#x21d2; OpenSSL::PKey::RSA </a>
947
952
 
948
953
 
949
954
 
@@ -967,7 +972,7 @@ to this extension).</p>
967
972
  <li class="public ">
968
973
  <span class="summary_signature">
969
974
 
970
- <a href="#rsa%3F-instance_method" title="#rsa? (instance method)">- (Boolean) <strong>rsa?</strong> </a>
975
+ <a href="#rsa%3F-instance_method" title="#rsa? (instance method)">#<strong>rsa?</strong> &#x21d2; Boolean </a>
971
976
 
972
977
 
973
978
 
@@ -996,7 +1001,7 @@ to this extension).</p>
996
1001
  <li class="public ">
997
1002
  <span class="summary_signature">
998
1003
 
999
- <a href="#serial-instance_method" title="#serial (instance method)">- (Integer) <strong>serial</strong> </a>
1004
+ <a href="#serial-instance_method" title="#serial (instance method)">#<strong>serial</strong> &#x21d2; Integer </a>
1000
1005
 
1001
1006
 
1002
1007
 
@@ -1020,7 +1025,7 @@ to this extension).</p>
1020
1025
  <li class="public ">
1021
1026
  <span class="summary_signature">
1022
1027
 
1023
- <a href="#signature_algorithm-instance_method" title="#signature_algorithm (instance method)">- (String) <strong>signature_algorithm</strong> </a>
1028
+ <a href="#signature_algorithm-instance_method" title="#signature_algorithm (instance method)">#<strong>signature_algorithm</strong> &#x21d2; String </a>
1024
1029
 
1025
1030
 
1026
1031
 
@@ -1044,7 +1049,7 @@ to this extension).</p>
1044
1049
  <li class="public ">
1045
1050
  <span class="summary_signature">
1046
1051
 
1047
- <a href="#subject_alternative_name-instance_method" title="#subject_alternative_name (instance method)">- (R509::Cert::Extensions::SubjectAlternativeName) <strong>subject_alternative_name</strong> </a>
1052
+ <a href="#subject_alternative_name-instance_method" title="#subject_alternative_name (instance method)">#<strong>subject_alternative_name</strong> &#x21d2; R509::Cert::Extensions::SubjectAlternativeName </a>
1048
1053
 
1049
1054
 
1050
1055
 
@@ -1071,7 +1076,7 @@ extension.</p>
1071
1076
  <li class="public ">
1072
1077
  <span class="summary_signature">
1073
1078
 
1074
- <a href="#subject_key_identifier-instance_method" title="#subject_key_identifier (instance method)">- (R509::Cert::Extensions::SubjectKeyIdentifier) <strong>subject_key_identifier</strong> </a>
1079
+ <a href="#subject_key_identifier-instance_method" title="#subject_key_identifier (instance method)">#<strong>subject_key_identifier</strong> &#x21d2; R509::Cert::Extensions::SubjectKeyIdentifier </a>
1075
1080
 
1076
1081
 
1077
1082
 
@@ -1096,7 +1101,7 @@ extension.</p>
1096
1101
  <li class="public ">
1097
1102
  <span class="summary_signature">
1098
1103
 
1099
- <a href="#to_der-instance_method" title="#to_der (instance method)">- (String) <strong>to_der</strong> </a>
1104
+ <a href="#to_der-instance_method" title="#to_der (instance method)">#<strong>to_der</strong> &#x21d2; String </a>
1100
1105
 
1101
1106
 
1102
1107
 
@@ -1125,7 +1130,7 @@ extension.</p>
1125
1130
  <li class="public ">
1126
1131
  <span class="summary_signature">
1127
1132
 
1128
- <a href="#to_pem-instance_method" title="#to_pem (instance method)">- (String) <strong>to_pem</strong> </a>
1133
+ <a href="#to_pem-instance_method" title="#to_pem (instance method)">#<strong>to_pem</strong> &#x21d2; String </a>
1129
1134
 
1130
1135
 
1131
1136
 
@@ -1154,7 +1159,7 @@ extension.</p>
1154
1159
  <li class="public ">
1155
1160
  <span class="summary_signature">
1156
1161
 
1157
- <a href="#unknown_extensions-instance_method" title="#unknown_extensions (instance method)">- (Array) <strong>unknown_extensions</strong> </a>
1162
+ <a href="#unknown_extensions-instance_method" title="#unknown_extensions (instance method)">#<strong>unknown_extensions</strong> &#x21d2; Array </a>
1158
1163
 
1159
1164
 
1160
1165
 
@@ -1179,7 +1184,7 @@ extensions that do not have R509 implementations.</p>
1179
1184
  <li class="public ">
1180
1185
  <span class="summary_signature">
1181
1186
 
1182
- <a href="#valid%3F-instance_method" title="#valid? (instance method)">- (Boolean) <strong>valid?</strong> </a>
1187
+ <a href="#valid%3F-instance_method" title="#valid? (instance method)">#<strong>valid?</strong> &#x21d2; Boolean </a>
1183
1188
 
1184
1189
 
1185
1190
 
@@ -1204,7 +1209,7 @@ times in the certificate.</p>
1204
1209
  <li class="public ">
1205
1210
  <span class="summary_signature">
1206
1211
 
1207
- <a href="#valid_at%3F-instance_method" title="#valid_at? (instance method)">- (Boolean) <strong>valid_at?</strong>(time) </a>
1212
+ <a href="#valid_at%3F-instance_method" title="#valid_at? (instance method)">#<strong>valid_at?</strong>(time) &#x21d2; Boolean </a>
1208
1213
 
1209
1214
 
1210
1215
 
@@ -1229,7 +1234,7 @@ the time provided.</p>
1229
1234
  <li class="public ">
1230
1235
  <span class="summary_signature">
1231
1236
 
1232
- <a href="#write_der-instance_method" title="#write_der (instance method)">- (Object) <strong>write_der</strong>(filename_or_io) </a>
1237
+ <a href="#write_der-instance_method" title="#write_der (instance method)">#<strong>write_der</strong>(filename_or_io) &#x21d2; Object </a>
1233
1238
 
1234
1239
 
1235
1240
 
@@ -1258,7 +1263,7 @@ the time provided.</p>
1258
1263
  <li class="public ">
1259
1264
  <span class="summary_signature">
1260
1265
 
1261
- <a href="#write_pem-instance_method" title="#write_pem (instance method)">- (Object) <strong>write_pem</strong>(filename_or_io) </a>
1266
+ <a href="#write_pem-instance_method" title="#write_pem (instance method)">#<strong>write_pem</strong>(filename_or_io) &#x21d2; Object </a>
1262
1267
 
1263
1268
 
1264
1269
 
@@ -1287,7 +1292,7 @@ the time provided.</p>
1287
1292
  <li class="public ">
1288
1293
  <span class="summary_signature">
1289
1294
 
1290
- <a href="#write_pkcs12-instance_method" title="#write_pkcs12 (instance method)">- (Object) <strong>write_pkcs12</strong>(filename_or_io, password, friendly_name = &#39;r509 pkcs12&#39;) </a>
1295
+ <a href="#write_pkcs12-instance_method" title="#write_pkcs12 (instance method)">#<strong>write_pkcs12</strong>(filename_or_io, password, friendly_name = &#39;r509 pkcs12&#39;) &#x21d2; Object </a>
1291
1296
 
1292
1297
 
1293
1298
 
@@ -1322,7 +1327,7 @@ encryption (des3).</p>
1322
1327
  <div class="method_details first">
1323
1328
  <h3 class="signature first" id="initialize-instance_method">
1324
1329
 
1325
- - (<tt><span class='object_link'><a href="" title="R509::Cert (class)">Cert</a></span></tt>) <strong>initialize</strong>(opts = {})
1330
+ #<strong>initialize</strong>(opts = {}) &#x21d2; <tt><span class='object_link'><a href="" title="R509::Cert (class)">Cert</a></span></tt>
1326
1331
 
1327
1332
 
1328
1333
 
@@ -1331,7 +1336,7 @@ encryption (des3).</p>
1331
1336
  </h3><div class="docstring">
1332
1337
  <div class="discussion">
1333
1338
 
1334
- <p>A new instance of Cert</p>
1339
+ <p>Returns a new instance of Cert</p>
1335
1340
 
1336
1341
 
1337
1342
  </div>
@@ -1455,24 +1460,24 @@ support)</p>
1455
1460
  <td>
1456
1461
  <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 19</span>
1457
1462
 
1458
- <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>
1459
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
1463
+ <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>
1464
+ <span class='kw'>unless</span> <span class='id identifier rubyid_opts'>opts</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>
1460
1465
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Must provide a hash of options</span><span class='tstring_end'>&#39;</span></span>
1461
1466
  <span class='kw'>end</span>
1462
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:pkcs12</span><span class='rparen'>)</span> <span class='kw'>and</span> <span class='lparen'>(</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:key</span><span class='rparen'>)</span> <span class='kw'>or</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:cert</span><span class='rparen'>)</span> <span class='rparen'>)</span>
1467
+ <span class='kw'>if</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'>:pkcs12</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</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'>:key</span><span class='rparen'>)</span> <span class='op'>||</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'>:cert</span><span class='rparen'>)</span><span class='rparen'>)</span>
1463
1468
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>When providing pkcs12, do not pass cert or key</span><span class='tstring_end'>&quot;</span></span>
1464
- <span class='kw'>elsif</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:pkcs12</span><span class='rparen'>)</span>
1465
- <span class='id identifier rubyid_pkcs12'>pkcs12</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKCS12</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pkcs12</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:password</span><span class='rbracket'>]</span> <span class='rparen'>)</span>
1469
+ <span class='kw'>elsif</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'>:pkcs12</span><span class='rparen'>)</span>
1470
+ <span class='id identifier rubyid_pkcs12'>pkcs12</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKCS12</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:pkcs12</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:password</span><span class='rbracket'>]</span><span class='rparen'>)</span>
1466
1471
  <span class='id identifier rubyid_parse_certificate'>parse_certificate</span><span class='lparen'>(</span><span class='id identifier rubyid_pkcs12'>pkcs12</span><span class='period'>.</span><span class='id identifier rubyid_certificate'>certificate</span><span class='rparen'>)</span>
1467
1472
  <span class='id identifier rubyid_parse_private_key'>parse_private_key</span><span class='lparen'>(</span><span class='id identifier rubyid_pkcs12'>pkcs12</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
1468
- <span class='kw'>elsif</span> <span class='kw'>not</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:cert</span><span class='rparen'>)</span>
1473
+ <span class='kw'>elsif</span> <span class='op'>!</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'>:cert</span><span class='rparen'>)</span>
1469
1474
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Must provide :cert or :pkcs12</span><span class='tstring_end'>&#39;</span></span>
1470
1475
  <span class='kw'>else</span>
1471
1476
  <span class='id identifier rubyid_csr_check'>csr_check</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:cert</span><span class='rbracket'>]</span><span class='rparen'>)</span>
1472
1477
  <span class='id identifier rubyid_parse_certificate'>parse_certificate</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:cert</span><span class='rbracket'>]</span><span class='rparen'>)</span>
1473
1478
  <span class='kw'>end</span>
1474
1479
 
1475
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:key</span><span class='rparen'>)</span>
1480
+ <span class='kw'>if</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'>:key</span><span class='rparen'>)</span>
1476
1481
  <span class='id identifier rubyid_parse_private_key'>parse_private_key</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:key</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:password</span><span class='rbracket'>]</span><span class='rparen'>)</span>
1477
1482
  <span class='kw'>end</span>
1478
1483
  <span class='kw'>end</span></pre>
@@ -1491,10 +1496,14 @@ support)</p>
1491
1496
  <div class="method_details first">
1492
1497
  <h3 class="signature first" id="cert-instance_method">
1493
1498
 
1494
- - (<tt>Object</tt>) <strong>cert</strong> <span class="extras">(readonly)</span>
1499
+ #<strong>cert</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1495
1500
 
1496
1501
 
1497
1502
 
1503
+ <span class="aliases">Also known as:
1504
+ <span class="names"><span id='internal_obj-instance_method'>internal_obj</span></span>
1505
+ </span>
1506
+
1498
1507
 
1499
1508
 
1500
1509
  </h3><div class="docstring">
@@ -1534,7 +1543,7 @@ support)</p>
1534
1543
  <div class="method_details ">
1535
1544
  <h3 class="signature " id="issuer-instance_method">
1536
1545
 
1537
- - (<tt>Object</tt>) <strong>issuer</strong> <span class="extras">(readonly)</span>
1546
+ #<strong>issuer</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1538
1547
 
1539
1548
 
1540
1549
 
@@ -1577,7 +1586,7 @@ support)</p>
1577
1586
  <div class="method_details ">
1578
1587
  <h3 class="signature " id="key-instance_method">
1579
1588
 
1580
- - (<tt>Object</tt>) <strong>key</strong> <span class="extras">(readonly)</span>
1589
+ #<strong>key</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1581
1590
 
1582
1591
 
1583
1592
 
@@ -1620,7 +1629,7 @@ support)</p>
1620
1629
  <div class="method_details ">
1621
1630
  <h3 class="signature " id="subject-instance_method">
1622
1631
 
1623
- - (<tt>Object</tt>) <strong>subject</strong> <span class="extras">(readonly)</span>
1632
+ #<strong>subject</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1624
1633
 
1625
1634
 
1626
1635
 
@@ -1668,7 +1677,7 @@ support)</p>
1668
1677
  <div class="method_details first">
1669
1678
  <h3 class="signature first" id="load_from_file-class_method">
1670
1679
 
1671
- + (<tt><span class='object_link'><a href="" title="R509::Cert (class)">R509::Cert</a></span></tt>) <strong>load_from_file</strong>(filename)
1680
+ .<strong>load_from_file</strong>(filename) &#x21d2; <tt><span class='object_link'><a href="" title="R509::Cert (class)">R509::Cert</a></span></tt>
1672
1681
 
1673
1682
 
1674
1683
 
@@ -1736,8 +1745,8 @@ support)</p>
1736
1745
  <td>
1737
1746
  <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 45</span>
1738
1747
 
1739
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_from_file'>load_from_file</span><span class='lparen'>(</span> <span class='id identifier rubyid_filename'>filename</span> <span class='rparen'>)</span>
1740
- <span class='kw'>return</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:cert</span> <span class='op'>=&gt;</span> <span class='const'>IOHelpers</span><span class='period'>.</span><span class='id identifier rubyid_read_data'>read_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span> <span class='rparen'>)</span>
1748
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_from_file'>load_from_file</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span>
1749
+ <span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:cert</span> <span class='op'>=&gt;</span> <span class='const'>IOHelpers</span><span class='period'>.</span><span class='id identifier rubyid_read_data'>read_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span><span class='rparen'>)</span>
1741
1750
  <span class='kw'>end</span></pre>
1742
1751
  </td>
1743
1752
  </tr>
@@ -1753,7 +1762,7 @@ support)</p>
1753
1762
  <div class="method_details first">
1754
1763
  <h3 class="signature first" id="all_names-instance_method">
1755
1764
 
1756
- - (<tt>Array</tt>) <strong>all_names</strong>
1765
+ #<strong>all_names</strong> &#x21d2; <tt>Array</tt>
1757
1766
 
1758
1767
 
1759
1768
 
@@ -1795,23 +1804,23 @@ Discards SAN types</p>
1795
1804
  <pre class="lines">
1796
1805
 
1797
1806
 
1807
+ 130
1808
+ 131
1809
+ 132
1810
+ 133
1798
1811
  134
1799
1812
  135
1800
- 136
1801
- 137
1802
- 138
1803
- 139
1804
- 140</pre>
1813
+ 136</pre>
1805
1814
  </td>
1806
1815
  <td>
1807
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 134</span>
1816
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 130</span>
1808
1817
 
1809
1818
  <span class='kw'>def</span> <span class='id identifier rubyid_all_names'>all_names</span>
1810
1819
  <span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
1811
1820
  <span class='id identifier rubyid_ret'>ret</span> <span class='op'>&lt;&lt;</span> <span class='ivar'>@subject</span><span class='period'>.</span><span class='const'>CN</span> <span class='kw'>unless</span> <span class='ivar'>@subject</span><span class='period'>.</span><span class='const'>CN</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1812
- <span class='id identifier rubyid_ret'>ret</span><span class='period'>.</span><span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_san'>san</span><span class='period'>.</span><span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span> <span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span> <span class='rbrace'>}</span> <span class='rparen'>)</span> <span class='kw'>unless</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_san'>san</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1821
+ <span class='id identifier rubyid_ret'>ret</span><span class='period'>.</span><span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_san'>san</span><span class='period'>.</span><span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span> <span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span> <span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_san'>san</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1813
1822
 
1814
- <span class='kw'>return</span> <span class='id identifier rubyid_ret'>ret</span><span class='period'>.</span><span class='id identifier rubyid_sort'>sort</span><span class='period'>.</span><span class='id identifier rubyid_uniq'>uniq</span>
1823
+ <span class='id identifier rubyid_ret'>ret</span><span class='period'>.</span><span class='id identifier rubyid_sort'>sort</span><span class='period'>.</span><span class='id identifier rubyid_uniq'>uniq</span>
1815
1824
  <span class='kw'>end</span></pre>
1816
1825
  </td>
1817
1826
  </tr>
@@ -1821,7 +1830,7 @@ Discards SAN types</p>
1821
1830
  <div class="method_details ">
1822
1831
  <h3 class="signature " id="authority_info_access-instance_method">
1823
1832
 
1824
- - (<tt><span class='object_link'><a href="Cert/Extensions/AuthorityInfoAccess.html" title="R509::Cert::Extensions::AuthorityInfoAccess (class)">R509::Cert::Extensions::AuthorityInfoAccess</a></span></tt>) <strong>authority_info_access</strong>
1833
+ #<strong>authority_info_access</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/AuthorityInfoAccess.html" title="R509::Cert::Extensions::AuthorityInfoAccess (class)">R509::Cert::Extensions::AuthorityInfoAccess</a></span></tt>
1825
1834
 
1826
1835
 
1827
1836
 
@@ -1869,15 +1878,15 @@ extension</p>
1869
1878
  <pre class="lines">
1870
1879
 
1871
1880
 
1872
- 254
1873
- 255
1874
- 256</pre>
1881
+ 250
1882
+ 251
1883
+ 252</pre>
1875
1884
  </td>
1876
1885
  <td>
1877
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 254</span>
1886
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 250</span>
1878
1887
 
1879
1888
  <span class='kw'>def</span> <span class='id identifier rubyid_authority_info_access'>authority_info_access</span>
1880
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>AuthorityInfoAccess</span><span class='rbracket'>]</span>
1889
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>AuthorityInfoAccess</span><span class='rbracket'>]</span>
1881
1890
  <span class='kw'>end</span></pre>
1882
1891
  </td>
1883
1892
  </tr>
@@ -1887,7 +1896,7 @@ extension</p>
1887
1896
  <div class="method_details ">
1888
1897
  <h3 class="signature " id="authority_key_identifier-instance_method">
1889
1898
 
1890
- - (<tt><span class='object_link'><a href="Cert/Extensions/AuthorityKeyIdentifier.html" title="R509::Cert::Extensions::AuthorityKeyIdentifier (class)">R509::Cert::Extensions::AuthorityKeyIdentifier</a></span></tt>) <strong>authority_key_identifier</strong>
1899
+ #<strong>authority_key_identifier</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/AuthorityKeyIdentifier.html" title="R509::Cert::Extensions::AuthorityKeyIdentifier (class)">R509::Cert::Extensions::AuthorityKeyIdentifier</a></span></tt>
1891
1900
 
1892
1901
 
1893
1902
 
@@ -1931,15 +1940,15 @@ extension</p>
1931
1940
  <pre class="lines">
1932
1941
 
1933
1942
 
1934
- 236
1935
- 237
1936
- 238</pre>
1943
+ 232
1944
+ 233
1945
+ 234</pre>
1937
1946
  </td>
1938
1947
  <td>
1939
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 236</span>
1948
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 232</span>
1940
1949
 
1941
1950
  <span class='kw'>def</span> <span class='id identifier rubyid_authority_key_identifier'>authority_key_identifier</span>
1942
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>AuthorityKeyIdentifier</span><span class='rbracket'>]</span>
1951
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>AuthorityKeyIdentifier</span><span class='rbracket'>]</span>
1943
1952
  <span class='kw'>end</span></pre>
1944
1953
  </td>
1945
1954
  </tr>
@@ -1949,7 +1958,7 @@ extension</p>
1949
1958
  <div class="method_details ">
1950
1959
  <h3 class="signature " id="basic_constraints-instance_method">
1951
1960
 
1952
- - (<tt><span class='object_link'><a href="Cert/Extensions/BasicConstraints.html" title="R509::Cert::Extensions::BasicConstraints (class)">R509::Cert::Extensions::BasicConstraints</a></span></tt>) <strong>basic_constraints</strong>
1961
+ #<strong>basic_constraints</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/BasicConstraints.html" title="R509::Cert::Extensions::BasicConstraints (class)">R509::Cert::Extensions::BasicConstraints</a></span></tt>
1953
1962
 
1954
1963
 
1955
1964
 
@@ -1992,15 +2001,15 @@ extension</p>
1992
2001
  <pre class="lines">
1993
2002
 
1994
2003
 
1995
- 202
1996
- 203
1997
- 204</pre>
2004
+ 198
2005
+ 199
2006
+ 200</pre>
1998
2007
  </td>
1999
2008
  <td>
2000
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 202</span>
2009
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 198</span>
2001
2010
 
2002
2011
  <span class='kw'>def</span> <span class='id identifier rubyid_basic_constraints'>basic_constraints</span>
2003
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>BasicConstraints</span><span class='rbracket'>]</span>
2012
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>BasicConstraints</span><span class='rbracket'>]</span>
2004
2013
  <span class='kw'>end</span></pre>
2005
2014
  </td>
2006
2015
  </tr>
@@ -2010,7 +2019,7 @@ extension</p>
2010
2019
  <div class="method_details ">
2011
2020
  <h3 class="signature " id="bit_length-instance_method">
2012
2021
 
2013
- - (<tt>Integer</tt>) <strong>bit_length</strong>
2022
+ #<strong>bit_length</strong> &#x21d2; <tt>Integer</tt>
2014
2023
 
2015
2024
 
2016
2025
 
@@ -2060,7 +2069,7 @@ extension</p>
2060
2069
  <div class="method_details ">
2061
2070
  <h3 class="signature " id="certificate_policies-instance_method">
2062
2071
 
2063
- - (<tt><span class='object_link'><a href="Cert/Extensions/CertificatePolicies.html" title="R509::Cert::Extensions::CertificatePolicies (class)">R509::Cert::Extensions::CertificatePolicies</a></span></tt>) <strong>certificate_policies</strong>
2072
+ #<strong>certificate_policies</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/CertificatePolicies.html" title="R509::Cert::Extensions::CertificatePolicies (class)">R509::Cert::Extensions::CertificatePolicies</a></span></tt>
2064
2073
 
2065
2074
 
2066
2075
 
@@ -2104,15 +2113,15 @@ extension</p>
2104
2113
  <pre class="lines">
2105
2114
 
2106
2115
 
2107
- 280
2108
- 281
2109
- 282</pre>
2116
+ 276
2117
+ 277
2118
+ 278</pre>
2110
2119
  </td>
2111
2120
  <td>
2112
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 280</span>
2121
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 276</span>
2113
2122
 
2114
2123
  <span class='kw'>def</span> <span class='id identifier rubyid_certificate_policies'>certificate_policies</span>
2115
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>CertificatePolicies</span><span class='rbracket'>]</span>
2124
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>CertificatePolicies</span><span class='rbracket'>]</span>
2116
2125
  <span class='kw'>end</span></pre>
2117
2126
  </td>
2118
2127
  </tr>
@@ -2122,7 +2131,7 @@ extension</p>
2122
2131
  <div class="method_details ">
2123
2132
  <h3 class="signature " id="crl_distribution_points-instance_method">
2124
2133
 
2125
- - (<tt><span class='object_link'><a href="Cert/Extensions/CRLDistributionPoints.html" title="R509::Cert::Extensions::CRLDistributionPoints (class)">R509::Cert::Extensions::CRLDistributionPoints</a></span></tt>) <strong>crl_distribution_points</strong>
2134
+ #<strong>crl_distribution_points</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/CRLDistributionPoints.html" title="R509::Cert::Extensions::CRLDistributionPoints (class)">R509::Cert::Extensions::CRLDistributionPoints</a></span></tt>
2126
2135
 
2127
2136
 
2128
2137
 
@@ -2170,15 +2179,15 @@ extension</p>
2170
2179
  <pre class="lines">
2171
2180
 
2172
2181
 
2173
- 263
2174
- 264
2175
- 265</pre>
2182
+ 259
2183
+ 260
2184
+ 261</pre>
2176
2185
  </td>
2177
2186
  <td>
2178
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 263</span>
2187
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 259</span>
2179
2188
 
2180
2189
  <span class='kw'>def</span> <span class='id identifier rubyid_crl_distribution_points'>crl_distribution_points</span>
2181
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>CRLDistributionPoints</span><span class='rbracket'>]</span>
2190
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>CRLDistributionPoints</span><span class='rbracket'>]</span>
2182
2191
  <span class='kw'>end</span></pre>
2183
2192
  </td>
2184
2193
  </tr>
@@ -2188,7 +2197,7 @@ extension</p>
2188
2197
  <div class="method_details ">
2189
2198
  <h3 class="signature " id="curve_name-instance_method">
2190
2199
 
2191
- - (<tt>String</tt>) <strong>curve_name</strong>
2200
+ #<strong>curve_name</strong> &#x21d2; <tt>String</tt>
2192
2201
 
2193
2202
 
2194
2203
 
@@ -2235,7 +2244,7 @@ key if the key is EC. If not, raises an error.</p>
2235
2244
  <div class="method_details ">
2236
2245
  <h3 class="signature " id="dsa?-instance_method">
2237
2246
 
2238
- - (<tt>Boolean</tt>) <strong>dsa?</strong>
2247
+ #<strong>dsa?</strong> &#x21d2; <tt>Boolean</tt>
2239
2248
 
2240
2249
 
2241
2250
 
@@ -2281,7 +2290,7 @@ key if the key is EC. If not, raises an error.</p>
2281
2290
  <div class="method_details ">
2282
2291
  <h3 class="signature " id="ec?-instance_method">
2283
2292
 
2284
- - (<tt>Boolean</tt>) <strong>ec?</strong>
2293
+ #<strong>ec?</strong> &#x21d2; <tt>Boolean</tt>
2285
2294
 
2286
2295
 
2287
2296
 
@@ -2327,7 +2336,7 @@ key if the key is EC. If not, raises an error.</p>
2327
2336
  <div class="method_details ">
2328
2337
  <h3 class="signature " id="extended_key_usage-instance_method">
2329
2338
 
2330
- - (<tt><span class='object_link'><a href="Cert/Extensions/ExtendedKeyUsage.html" title="R509::Cert::Extensions::ExtendedKeyUsage (class)">R509::Cert::Extensions::ExtendedKeyUsage</a></span></tt>) <strong>extended_key_usage</strong>
2339
+ #<strong>extended_key_usage</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/ExtendedKeyUsage.html" title="R509::Cert::Extensions::ExtendedKeyUsage (class)">R509::Cert::Extensions::ExtendedKeyUsage</a></span></tt>
2331
2340
 
2332
2341
 
2333
2342
 
@@ -2374,15 +2383,15 @@ key if the key is EC. If not, raises an error.</p>
2374
2383
  <pre class="lines">
2375
2384
 
2376
2385
 
2377
- 219
2378
- 220
2379
- 221</pre>
2386
+ 215
2387
+ 216
2388
+ 217</pre>
2380
2389
  </td>
2381
2390
  <td>
2382
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 219</span>
2391
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 215</span>
2383
2392
 
2384
2393
  <span class='kw'>def</span> <span class='id identifier rubyid_extended_key_usage'>extended_key_usage</span>
2385
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>ExtendedKeyUsage</span><span class='rbracket'>]</span>
2394
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>ExtendedKeyUsage</span><span class='rbracket'>]</span>
2386
2395
  <span class='kw'>end</span></pre>
2387
2396
  </td>
2388
2397
  </tr>
@@ -2392,7 +2401,7 @@ key if the key is EC. If not, raises an error.</p>
2392
2401
  <div class="method_details ">
2393
2402
  <h3 class="signature " id="extensions-instance_method">
2394
2403
 
2395
- - (<tt>Hash</tt>) <strong>extensions</strong>
2404
+ #<strong>extensions</strong> &#x21d2; <tt>Hash</tt>
2396
2405
 
2397
2406
 
2398
2407
 
@@ -2438,23 +2447,23 @@ implementation are ignored (see #get_unknown_extensions).</p>
2438
2447
  <pre class="lines">
2439
2448
 
2440
2449
 
2450
+ 174
2451
+ 175
2452
+ 176
2453
+ 177
2441
2454
  178
2442
2455
  179
2443
- 180
2444
- 181
2445
- 182
2446
- 183
2447
- 184</pre>
2456
+ 180</pre>
2448
2457
  </td>
2449
2458
  <td>
2450
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 178</span>
2459
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 174</span>
2451
2460
 
2452
2461
  <span class='kw'>def</span> <span class='id identifier rubyid_extensions'>extensions</span>
2453
2462
  <span class='kw'>if</span> <span class='ivar'>@r509_extensions</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
2454
- <span class='ivar'>@r509_extensions</span> <span class='op'>=</span> <span class='const'>Extensions</span><span class='period'>.</span><span class='id identifier rubyid_wrap_openssl_extensions'>wrap_openssl_extensions</span><span class='lparen'>(</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_extensions'>extensions</span> <span class='rparen'>)</span>
2463
+ <span class='ivar'>@r509_extensions</span> <span class='op'>=</span> <span class='const'>Extensions</span><span class='period'>.</span><span class='id identifier rubyid_wrap_openssl_extensions'>wrap_openssl_extensions</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_extensions'>extensions</span><span class='rparen'>)</span>
2455
2464
  <span class='kw'>end</span>
2456
2465
 
2457
- <span class='kw'>return</span> <span class='ivar'>@r509_extensions</span>
2466
+ <span class='ivar'>@r509_extensions</span>
2458
2467
  <span class='kw'>end</span></pre>
2459
2468
  </td>
2460
2469
  </tr>
@@ -2464,7 +2473,7 @@ implementation are ignored (see #get_unknown_extensions).</p>
2464
2473
  <div class="method_details ">
2465
2474
  <h3 class="signature " id="fingerprint-instance_method">
2466
2475
 
2467
- - (<tt>String</tt>) <strong>fingerprint</strong>(algorithm = &#39;sha1&#39;)
2476
+ #<strong>fingerprint</strong>(algorithm = &#39;sha256&#39;) &#x21d2; <tt>String</tt>
2468
2477
 
2469
2478
 
2470
2479
 
@@ -2474,7 +2483,7 @@ implementation are ignored (see #get_unknown_extensions).</p>
2474
2483
  <div class="discussion">
2475
2484
 
2476
2485
  <p>Returns the certificate fingerprint with the specified algorithm (default
2477
- sha1)</p>
2486
+ sha256)</p>
2478
2487
 
2479
2488
 
2480
2489
  </div>
@@ -2491,7 +2500,7 @@ sha1)</p>
2491
2500
  <span class='type'>(<tt>String</tt>)</span>
2492
2501
 
2493
2502
 
2494
- <em class="default">(defaults to: <tt>&#39;sha1&#39;</tt>)</em>
2503
+ <em class="default">(defaults to: <tt>&#39;sha256&#39;</tt>)</em>
2495
2504
 
2496
2505
 
2497
2506
  &mdash;
@@ -2539,7 +2548,7 @@ supported algorithm names</p>
2539
2548
  <td>
2540
2549
  <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 90</span>
2541
2550
 
2542
- <span class='kw'>def</span> <span class='id identifier rubyid_fingerprint'>fingerprint</span><span class='lparen'>(</span><span class='id identifier rubyid_algorithm'>algorithm</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>sha1</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
2551
+ <span class='kw'>def</span> <span class='id identifier rubyid_fingerprint'>fingerprint</span><span class='lparen'>(</span><span class='id identifier rubyid_algorithm'>algorithm</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>sha256</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
2543
2552
  <span class='id identifier rubyid_message_digest'>message_digest</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='id identifier rubyid_algorithm'>algorithm</span><span class='rparen'>)</span>
2544
2553
  <span class='id identifier rubyid_md'>md</span> <span class='op'>=</span> <span class='id identifier rubyid_message_digest'>message_digest</span><span class='period'>.</span><span class='id identifier rubyid_digest'>digest</span>
2545
2554
  <span class='id identifier rubyid_md'>md</span><span class='period'>.</span><span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_to_der'>to_der</span><span class='rparen'>)</span>
@@ -2553,7 +2562,7 @@ supported algorithm names</p>
2553
2562
  <div class="method_details ">
2554
2563
  <h3 class="signature " id="has_private_key?-instance_method">
2555
2564
 
2556
- - (<tt>Boolean</tt>) <strong>has_private_key?</strong>
2565
+ #<strong>has_private_key?</strong> &#x21d2; <tt>Boolean</tt>
2557
2566
 
2558
2567
 
2559
2568
 
@@ -2562,7 +2571,7 @@ supported algorithm names</p>
2562
2571
  </h3><div class="docstring">
2563
2572
  <div class="discussion">
2564
2573
 
2565
- <p>Boolean of whether the object contains a private key</p>
2574
+ <p>Returns Boolean of whether the object contains a private key</p>
2566
2575
 
2567
2576
 
2568
2577
  </div>
@@ -2596,21 +2605,13 @@ supported algorithm names</p>
2596
2605
 
2597
2606
  122
2598
2607
  123
2599
- 124
2600
- 125
2601
- 126
2602
- 127
2603
- 128</pre>
2608
+ 124</pre>
2604
2609
  </td>
2605
2610
  <td>
2606
2611
  <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 122</span>
2607
2612
 
2608
2613
  <span class='kw'>def</span> <span class='id identifier rubyid_has_private_key?'>has_private_key?</span>
2609
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='ivar'>@key</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
2610
- <span class='kw'>true</span>
2611
- <span class='kw'>else</span>
2612
- <span class='kw'>false</span>
2613
- <span class='kw'>end</span>
2614
+ <span class='op'>!</span><span class='ivar'>@key</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
2614
2615
  <span class='kw'>end</span></pre>
2615
2616
  </td>
2616
2617
  </tr>
@@ -2620,7 +2621,7 @@ supported algorithm names</p>
2620
2621
  <div class="method_details ">
2621
2622
  <h3 class="signature " id="hexserial-instance_method">
2622
2623
 
2623
- - (<tt>String</tt>) <strong>hexserial</strong>
2624
+ #<strong>hexserial</strong> &#x21d2; <tt>String</tt>
2624
2625
 
2625
2626
 
2626
2627
 
@@ -2674,7 +2675,7 @@ supported algorithm names</p>
2674
2675
  <div class="method_details ">
2675
2676
  <h3 class="signature " id="inhibit_any_policy-instance_method">
2676
2677
 
2677
- - (<tt><span class='object_link'><a href="Cert/Extensions/InhibitAnyPolicy.html" title="R509::Cert::Extensions::InhibitAnyPolicy (class)">R509::Cert::Extensions::InhibitAnyPolicy</a></span></tt>) <strong>inhibit_any_policy</strong>
2678
+ #<strong>inhibit_any_policy</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/InhibitAnyPolicy.html" title="R509::Cert::Extensions::InhibitAnyPolicy (class)">R509::Cert::Extensions::InhibitAnyPolicy</a></span></tt>
2678
2679
 
2679
2680
 
2680
2681
 
@@ -2717,15 +2718,15 @@ supported algorithm names</p>
2717
2718
  <pre class="lines">
2718
2719
 
2719
2720
 
2720
- 288
2721
- 289
2722
- 290</pre>
2721
+ 284
2722
+ 285
2723
+ 286</pre>
2723
2724
  </td>
2724
2725
  <td>
2725
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 288</span>
2726
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 284</span>
2726
2727
 
2727
2728
  <span class='kw'>def</span> <span class='id identifier rubyid_inhibit_any_policy'>inhibit_any_policy</span>
2728
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>InhibitAnyPolicy</span><span class='rbracket'>]</span>
2729
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>InhibitAnyPolicy</span><span class='rbracket'>]</span>
2729
2730
  <span class='kw'>end</span></pre>
2730
2731
  </td>
2731
2732
  </tr>
@@ -2735,7 +2736,7 @@ supported algorithm names</p>
2735
2736
  <div class="method_details ">
2736
2737
  <h3 class="signature " id="is_revoked_by_crl?-instance_method">
2737
2738
 
2738
- - (<tt>Boolean</tt>) <strong>is_revoked_by_crl?</strong>(r509_crl)
2739
+ #<strong>is_revoked_by_crl?</strong>(r509_crl) &#x21d2; <tt>Boolean</tt>
2739
2740
 
2740
2741
 
2741
2742
 
@@ -2793,15 +2794,15 @@ the same CA as the cert so do that check yourself</p>
2793
2794
  <pre class="lines">
2794
2795
 
2795
2796
 
2796
- 167
2797
- 168
2798
- 169</pre>
2797
+ 163
2798
+ 164
2799
+ 165</pre>
2799
2800
  </td>
2800
2801
  <td>
2801
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 167</span>
2802
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 163</span>
2802
2803
 
2803
- <span class='kw'>def</span> <span class='id identifier rubyid_is_revoked_by_crl?'>is_revoked_by_crl?</span><span class='lparen'>(</span> <span class='id identifier rubyid_r509_crl'>r509_crl</span> <span class='rparen'>)</span>
2804
- <span class='kw'>return</span> <span class='id identifier rubyid_r509_crl'>r509_crl</span><span class='period'>.</span><span class='id identifier rubyid_revoked?'>revoked?</span><span class='lparen'>(</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_serial'>serial</span> <span class='rparen'>)</span>
2804
+ <span class='kw'>def</span> <span class='id identifier rubyid_is_revoked_by_crl?'>is_revoked_by_crl?</span><span class='lparen'>(</span><span class='id identifier rubyid_r509_crl'>r509_crl</span><span class='rparen'>)</span>
2805
+ <span class='id identifier rubyid_r509_crl'>r509_crl</span><span class='period'>.</span><span class='id identifier rubyid_revoked?'>revoked?</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
2805
2806
  <span class='kw'>end</span></pre>
2806
2807
  </td>
2807
2808
  </tr>
@@ -2811,7 +2812,7 @@ the same CA as the cert so do that check yourself</p>
2811
2812
  <div class="method_details ">
2812
2813
  <h3 class="signature " id="key_algorithm-instance_method">
2813
2814
 
2814
- - (<tt>String</tt>) <strong>key_algorithm</strong>
2815
+ #<strong>key_algorithm</strong> &#x21d2; <tt>String</tt>
2815
2816
 
2816
2817
 
2817
2818
 
@@ -2857,7 +2858,7 @@ the same CA as the cert so do that check yourself</p>
2857
2858
  <div class="method_details ">
2858
2859
  <h3 class="signature " id="key_usage-instance_method">
2859
2860
 
2860
- - (<tt><span class='object_link'><a href="Cert/Extensions/KeyUsage.html" title="R509::Cert::Extensions::KeyUsage (class)">R509::Cert::Extensions::KeyUsage</a></span></tt>) <strong>key_usage</strong>
2861
+ #<strong>key_usage</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/KeyUsage.html" title="R509::Cert::Extensions::KeyUsage (class)">R509::Cert::Extensions::KeyUsage</a></span></tt>
2861
2862
 
2862
2863
 
2863
2864
 
@@ -2904,15 +2905,15 @@ the same CA as the cert so do that check yourself</p>
2904
2905
  <pre class="lines">
2905
2906
 
2906
2907
 
2907
- 210
2908
- 211
2909
- 212</pre>
2908
+ 206
2909
+ 207
2910
+ 208</pre>
2910
2911
  </td>
2911
2912
  <td>
2912
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 210</span>
2913
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 206</span>
2913
2914
 
2914
2915
  <span class='kw'>def</span> <span class='id identifier rubyid_key_usage'>key_usage</span>
2915
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>KeyUsage</span><span class='rbracket'>]</span>
2916
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>KeyUsage</span><span class='rbracket'>]</span>
2916
2917
  <span class='kw'>end</span></pre>
2917
2918
  </td>
2918
2919
  </tr>
@@ -2922,7 +2923,7 @@ the same CA as the cert so do that check yourself</p>
2922
2923
  <div class="method_details ">
2923
2924
  <h3 class="signature " id="name_constraints-instance_method">
2924
2925
 
2925
- - (<tt><span class='object_link'><a href="Cert/Extensions/NameConstraints.html" title="R509::Cert::Extensions::NameConstraints (class)">R509::Cert::Extensions::NameConstraints</a></span></tt>) <strong>name_constraints</strong>
2926
+ #<strong>name_constraints</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/NameConstraints.html" title="R509::Cert::Extensions::NameConstraints (class)">R509::Cert::Extensions::NameConstraints</a></span></tt>
2926
2927
 
2927
2928
 
2928
2929
 
@@ -2965,15 +2966,15 @@ the same CA as the cert so do that check yourself</p>
2965
2966
  <pre class="lines">
2966
2967
 
2967
2968
 
2968
- 304
2969
- 305
2970
- 306</pre>
2969
+ 300
2970
+ 301
2971
+ 302</pre>
2971
2972
  </td>
2972
2973
  <td>
2973
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 304</span>
2974
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 300</span>
2974
2975
 
2975
2976
  <span class='kw'>def</span> <span class='id identifier rubyid_name_constraints'>name_constraints</span>
2976
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>NameConstraints</span><span class='rbracket'>]</span>
2977
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>NameConstraints</span><span class='rbracket'>]</span>
2977
2978
  <span class='kw'>end</span></pre>
2978
2979
  </td>
2979
2980
  </tr>
@@ -2983,7 +2984,7 @@ the same CA as the cert so do that check yourself</p>
2983
2984
  <div class="method_details ">
2984
2985
  <h3 class="signature " id="not_after-instance_method">
2985
2986
 
2986
- - (<tt>Time</tt>) <strong>not_after</strong>
2987
+ #<strong>not_after</strong> &#x21d2; <tt>Time</tt>
2987
2988
 
2988
2989
 
2989
2990
 
@@ -3042,7 +3043,7 @@ the same CA as the cert so do that check yourself</p>
3042
3043
  <div class="method_details ">
3043
3044
  <h3 class="signature " id="not_before-instance_method">
3044
3045
 
3045
- - (<tt>Time</tt>) <strong>not_before</strong>
3046
+ #<strong>not_before</strong> &#x21d2; <tt>Time</tt>
3046
3047
 
3047
3048
 
3048
3049
 
@@ -3101,7 +3102,7 @@ the same CA as the cert so do that check yourself</p>
3101
3102
  <div class="method_details ">
3102
3103
  <h3 class="signature " id="ocsp_no_check?-instance_method">
3103
3104
 
3104
- - (<tt>Boolean</tt>) <strong>ocsp_no_check?</strong>
3105
+ #<strong>ocsp_no_check?</strong> &#x21d2; <tt>Boolean</tt>
3105
3106
 
3106
3107
 
3107
3108
 
@@ -3143,15 +3144,15 @@ to this extension)</p>
3143
3144
  <pre class="lines">
3144
3145
 
3145
3146
 
3146
- 272
3147
- 273
3148
- 274</pre>
3147
+ 268
3148
+ 269
3149
+ 270</pre>
3149
3150
  </td>
3150
3151
  <td>
3151
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 272</span>
3152
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 268</span>
3152
3153
 
3153
3154
  <span class='kw'>def</span> <span class='id identifier rubyid_ocsp_no_check?'>ocsp_no_check?</span>
3154
- <span class='kw'>return</span> <span class='lparen'>(</span><span class='id identifier rubyid_extensions'>extensions</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>OCSPNoCheck</span><span class='rparen'>)</span><span class='rparen'>)</span>
3155
+ <span class='lparen'>(</span><span class='id identifier rubyid_extensions'>extensions</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>OCSPNoCheck</span><span class='rparen'>)</span><span class='rparen'>)</span>
3155
3156
  <span class='kw'>end</span></pre>
3156
3157
  </td>
3157
3158
  </tr>
@@ -3161,7 +3162,7 @@ to this extension)</p>
3161
3162
  <div class="method_details ">
3162
3163
  <h3 class="signature " id="policy_constraints-instance_method">
3163
3164
 
3164
- - (<tt><span class='object_link'><a href="Cert/Extensions/PolicyConstraints.html" title="R509::Cert::Extensions::PolicyConstraints (class)">R509::Cert::Extensions::PolicyConstraints</a></span></tt>) <strong>policy_constraints</strong>
3165
+ #<strong>policy_constraints</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/PolicyConstraints.html" title="R509::Cert::Extensions::PolicyConstraints (class)">R509::Cert::Extensions::PolicyConstraints</a></span></tt>
3165
3166
 
3166
3167
 
3167
3168
 
@@ -3204,15 +3205,15 @@ to this extension)</p>
3204
3205
  <pre class="lines">
3205
3206
 
3206
3207
 
3207
- 296
3208
- 297
3209
- 298</pre>
3208
+ 292
3209
+ 293
3210
+ 294</pre>
3210
3211
  </td>
3211
3212
  <td>
3212
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 296</span>
3213
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 292</span>
3213
3214
 
3214
3215
  <span class='kw'>def</span> <span class='id identifier rubyid_policy_constraints'>policy_constraints</span>
3215
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>PolicyConstraints</span><span class='rbracket'>]</span>
3216
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>PolicyConstraints</span><span class='rbracket'>]</span>
3216
3217
  <span class='kw'>end</span></pre>
3217
3218
  </td>
3218
3219
  </tr>
@@ -3222,7 +3223,7 @@ to this extension)</p>
3222
3223
  <div class="method_details ">
3223
3224
  <h3 class="signature " id="public_key-instance_method">
3224
3225
 
3225
- - (<tt>OpenSSL::PKey::RSA</tt>) <strong>public_key</strong>
3226
+ #<strong>public_key</strong> &#x21d2; <tt>OpenSSL::PKey::RSA</tt>
3226
3227
 
3227
3228
 
3228
3229
 
@@ -3281,7 +3282,7 @@ to this extension)</p>
3281
3282
  <div class="method_details ">
3282
3283
  <h3 class="signature " id="rsa?-instance_method">
3283
3284
 
3284
- - (<tt>Boolean</tt>) <strong>rsa?</strong>
3285
+ #<strong>rsa?</strong> &#x21d2; <tt>Boolean</tt>
3285
3286
 
3286
3287
 
3287
3288
 
@@ -3327,7 +3328,7 @@ to this extension)</p>
3327
3328
  <div class="method_details ">
3328
3329
  <h3 class="signature " id="serial-instance_method">
3329
3330
 
3330
- - (<tt>Integer</tt>) <strong>serial</strong>
3331
+ #<strong>serial</strong> &#x21d2; <tt>Integer</tt>
3331
3332
 
3332
3333
 
3333
3334
 
@@ -3381,7 +3382,7 @@ to this extension)</p>
3381
3382
  <div class="method_details ">
3382
3383
  <h3 class="signature " id="signature_algorithm-instance_method">
3383
3384
 
3384
- - (<tt>String</tt>) <strong>signature_algorithm</strong>
3385
+ #<strong>signature_algorithm</strong> &#x21d2; <tt>String</tt>
3385
3386
 
3386
3387
 
3387
3388
 
@@ -3423,12 +3424,12 @@ sha256WithRSAEncryption, md5WithRSAEncryption, et cetera</p>
3423
3424
  <pre class="lines">
3424
3425
 
3425
3426
 
3426
- 145
3427
- 146
3428
- 147</pre>
3427
+ 141
3428
+ 142
3429
+ 143</pre>
3429
3430
  </td>
3430
3431
  <td>
3431
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 145</span>
3432
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 141</span>
3432
3433
 
3433
3434
  <span class='kw'>def</span> <span class='id identifier rubyid_signature_algorithm'>signature_algorithm</span>
3434
3435
  <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_signature_algorithm'>signature_algorithm</span>
@@ -3441,7 +3442,7 @@ sha256WithRSAEncryption, md5WithRSAEncryption, et cetera</p>
3441
3442
  <div class="method_details ">
3442
3443
  <h3 class="signature " id="subject_alternative_name-instance_method">
3443
3444
 
3444
- - (<tt><span class='object_link'><a href="Cert/Extensions/SubjectAlternativeName.html" title="R509::Cert::Extensions::SubjectAlternativeName (class)">R509::Cert::Extensions::SubjectAlternativeName</a></span></tt>) <strong>subject_alternative_name</strong>
3445
+ #<strong>subject_alternative_name</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/SubjectAlternativeName.html" title="R509::Cert::Extensions::SubjectAlternativeName (class)">R509::Cert::Extensions::SubjectAlternativeName</a></span></tt>
3445
3446
 
3446
3447
 
3447
3448
 
@@ -3489,15 +3490,15 @@ extension</p>
3489
3490
  <pre class="lines">
3490
3491
 
3491
3492
 
3492
- 244
3493
- 245
3494
- 246</pre>
3493
+ 240
3494
+ 241
3495
+ 242</pre>
3495
3496
  </td>
3496
3497
  <td>
3497
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 244</span>
3498
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 240</span>
3498
3499
 
3499
3500
  <span class='kw'>def</span> <span class='id identifier rubyid_subject_alternative_name'>subject_alternative_name</span>
3500
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>SubjectAlternativeName</span><span class='rbracket'>]</span>
3501
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>SubjectAlternativeName</span><span class='rbracket'>]</span>
3501
3502
  <span class='kw'>end</span></pre>
3502
3503
  </td>
3503
3504
  </tr>
@@ -3507,7 +3508,7 @@ extension</p>
3507
3508
  <div class="method_details ">
3508
3509
  <h3 class="signature " id="subject_key_identifier-instance_method">
3509
3510
 
3510
- - (<tt><span class='object_link'><a href="Cert/Extensions/SubjectKeyIdentifier.html" title="R509::Cert::Extensions::SubjectKeyIdentifier (class)">R509::Cert::Extensions::SubjectKeyIdentifier</a></span></tt>) <strong>subject_key_identifier</strong>
3511
+ #<strong>subject_key_identifier</strong> &#x21d2; <tt><span class='object_link'><a href="Cert/Extensions/SubjectKeyIdentifier.html" title="R509::Cert::Extensions::SubjectKeyIdentifier (class)">R509::Cert::Extensions::SubjectKeyIdentifier</a></span></tt>
3511
3512
 
3512
3513
 
3513
3514
 
@@ -3551,15 +3552,15 @@ extension</p>
3551
3552
  <pre class="lines">
3552
3553
 
3553
3554
 
3554
- 228
3555
- 229
3556
- 230</pre>
3555
+ 224
3556
+ 225
3557
+ 226</pre>
3557
3558
  </td>
3558
3559
  <td>
3559
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 228</span>
3560
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 224</span>
3560
3561
 
3561
3562
  <span class='kw'>def</span> <span class='id identifier rubyid_subject_key_identifier'>subject_key_identifier</span>
3562
- <span class='kw'>return</span> <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>SubjectKeyIdentifier</span><span class='rbracket'>]</span>
3563
+ <span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>SubjectKeyIdentifier</span><span class='rbracket'>]</span>
3563
3564
  <span class='kw'>end</span></pre>
3564
3565
  </td>
3565
3566
  </tr>
@@ -3569,7 +3570,7 @@ extension</p>
3569
3570
  <div class="method_details ">
3570
3571
  <h3 class="signature " id="to_der-instance_method">
3571
3572
 
3572
- - (<tt>String</tt>) <strong>to_der</strong>
3573
+ #<strong>to_der</strong> &#x21d2; <tt>String</tt>
3573
3574
 
3574
3575
 
3575
3576
 
@@ -3615,7 +3616,7 @@ extension</p>
3615
3616
  <div class="method_details ">
3616
3617
  <h3 class="signature " id="to_pem-instance_method">
3617
3618
 
3618
- - (<tt>String</tt>) <strong>to_pem</strong>
3619
+ #<strong>to_pem</strong> &#x21d2; <tt>String</tt>
3619
3620
 
3620
3621
 
3621
3622
 
@@ -3661,7 +3662,7 @@ extension</p>
3661
3662
  <div class="method_details ">
3662
3663
  <h3 class="signature " id="unknown_extensions-instance_method">
3663
3664
 
3664
- - (<tt>Array</tt>) <strong>unknown_extensions</strong>
3665
+ #<strong>unknown_extensions</strong> &#x21d2; <tt>Array</tt>
3665
3666
 
3666
3667
 
3667
3668
 
@@ -3703,15 +3704,15 @@ extensions that do not have R509 implementations.</p>
3703
3704
  <pre class="lines">
3704
3705
 
3705
3706
 
3706
- 190
3707
- 191
3708
- 192</pre>
3707
+ 186
3708
+ 187
3709
+ 188</pre>
3709
3710
  </td>
3710
3711
  <td>
3711
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 190</span>
3712
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 186</span>
3712
3713
 
3713
3714
  <span class='kw'>def</span> <span class='id identifier rubyid_unknown_extensions'>unknown_extensions</span>
3714
- <span class='kw'>return</span> <span class='const'>Extensions</span><span class='period'>.</span><span class='id identifier rubyid_get_unknown_extensions'>get_unknown_extensions</span><span class='lparen'>(</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_extensions'>extensions</span> <span class='rparen'>)</span>
3715
+ <span class='const'>Extensions</span><span class='period'>.</span><span class='id identifier rubyid_get_unknown_extensions'>get_unknown_extensions</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_cert'>cert</span><span class='period'>.</span><span class='id identifier rubyid_extensions'>extensions</span><span class='rparen'>)</span>
3715
3716
  <span class='kw'>end</span></pre>
3716
3717
  </td>
3717
3718
  </tr>
@@ -3721,7 +3722,7 @@ extensions that do not have R509 implementations.</p>
3721
3722
  <div class="method_details ">
3722
3723
  <h3 class="signature " id="valid?-instance_method">
3723
3724
 
3724
- - (<tt>Boolean</tt>) <strong>valid?</strong>
3725
+ #<strong>valid?</strong> &#x21d2; <tt>Boolean</tt>
3725
3726
 
3726
3727
 
3727
3728
 
@@ -3776,7 +3777,7 @@ times in the certificate.</p>
3776
3777
  <div class="method_details ">
3777
3778
  <h3 class="signature " id="valid_at?-instance_method">
3778
3779
 
3779
- - (<tt>Boolean</tt>) <strong>valid_at?</strong>(time)
3780
+ #<strong>valid_at?</strong>(time) &#x21d2; <tt>Boolean</tt>
3780
3781
 
3781
3782
 
3782
3783
 
@@ -3849,11 +3850,11 @@ the time provided</p>
3849
3850
  <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 109</span>
3850
3851
 
3851
3852
  <span class='kw'>def</span> <span class='id identifier rubyid_valid_at?'>valid_at?</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span>
3852
- <span class='kw'>if</span> <span class='id identifier rubyid_time'>time</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Integer</span><span class='rparen'>)</span>
3853
+ <span class='kw'>if</span> <span class='id identifier rubyid_time'>time</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>
3853
3854
  <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_time'>time</span><span class='rparen'>)</span>
3854
3855
  <span class='kw'>end</span>
3855
3856
 
3856
- <span class='kw'>if</span> <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_not_after'>not_after</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='kw'>or</span> <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_not_before'>not_before</span> <span class='op'>&gt;</span> <span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span>
3857
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_not_after'>not_after</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_not_before'>not_before</span> <span class='op'>&gt;</span> <span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span>
3857
3858
  <span class='kw'>false</span>
3858
3859
  <span class='kw'>else</span>
3859
3860
  <span class='kw'>true</span>
@@ -3867,7 +3868,7 @@ the time provided</p>
3867
3868
  <div class="method_details ">
3868
3869
  <h3 class="signature " id="write_der-instance_method">
3869
3870
 
3870
- - (<tt>Object</tt>) <strong>write_der</strong>(filename_or_io)
3871
+ #<strong>write_der</strong>(filename_or_io) &#x21d2; <tt>Object</tt>
3871
3872
 
3872
3873
 
3873
3874
 
@@ -3916,7 +3917,7 @@ an IO-like object.</p>
3916
3917
  <div class="method_details ">
3917
3918
  <h3 class="signature " id="write_pem-instance_method">
3918
3919
 
3919
- - (<tt>Object</tt>) <strong>write_pem</strong>(filename_or_io)
3920
+ #<strong>write_pem</strong>(filename_or_io) &#x21d2; <tt>Object</tt>
3920
3921
 
3921
3922
 
3922
3923
 
@@ -3965,7 +3966,7 @@ an IO-like object.</p>
3965
3966
  <div class="method_details ">
3966
3967
  <h3 class="signature " id="write_pkcs12-instance_method">
3967
3968
 
3968
- - (<tt>Object</tt>) <strong>write_pkcs12</strong>(filename_or_io, password, friendly_name = &#39;r509 pkcs12&#39;)
3969
+ #<strong>write_pkcs12</strong>(filename_or_io, password, friendly_name = &#39;r509 pkcs12&#39;) &#x21d2; <tt>Object</tt>
3969
3970
 
3970
3971
 
3971
3972
 
@@ -4045,22 +4046,22 @@ an IO-like object.</p>
4045
4046
  <pre class="lines">
4046
4047
 
4047
4048
 
4049
+ 150
4050
+ 151
4051
+ 152
4052
+ 153
4048
4053
  154
4049
4054
  155
4050
- 156
4051
- 157
4052
- 158
4053
- 159
4054
- 160</pre>
4055
+ 156</pre>
4055
4056
  </td>
4056
4057
  <td>
4057
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 154</span>
4058
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 150</span>
4058
4059
 
4059
- <span class='kw'>def</span> <span class='id identifier rubyid_write_pkcs12'>write_pkcs12</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span><span class='id identifier rubyid_password'>password</span><span class='comma'>,</span><span class='id identifier rubyid_friendly_name'>friendly_name</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>r509 pkcs12</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
4060
+ <span class='kw'>def</span> <span class='id identifier rubyid_write_pkcs12'>write_pkcs12</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_friendly_name'>friendly_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>r509 pkcs12</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
4060
4061
  <span class='kw'>if</span> <span class='ivar'>@key</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
4061
4062
  <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'>&quot;</span><span class='tstring_content'>Writing a PKCS12 requires both key and cert</span><span class='tstring_end'>&quot;</span></span>
4062
4063
  <span class='kw'>end</span>
4063
- <span class='id identifier rubyid_pkcs12'>pkcs12</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKCS12</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_password'>password</span><span class='comma'>,</span><span class='id identifier rubyid_friendly_name'>friendly_name</span><span class='comma'>,</span><span class='ivar'>@key</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span><span class='ivar'>@cert</span><span class='rparen'>)</span>
4064
+ <span class='id identifier rubyid_pkcs12'>pkcs12</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKCS12</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_password'>password</span><span class='comma'>,</span> <span class='id identifier rubyid_friendly_name'>friendly_name</span><span class='comma'>,</span> <span class='ivar'>@key</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='ivar'>@cert</span><span class='rparen'>)</span>
4064
4065
  <span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='id identifier rubyid_pkcs12'>pkcs12</span><span class='period'>.</span><span class='id identifier rubyid_to_der'>to_der</span><span class='rparen'>)</span>
4065
4066
  <span class='kw'>end</span></pre>
4066
4067
  </td>
@@ -4072,11 +4073,12 @@ an IO-like object.</p>
4072
4073
 
4073
4074
  </div>
4074
4075
 
4075
- <div id="footer">
4076
- Generated on Sun Jan 26 13:37:26 2014 by
4076
+ <div id="footer">
4077
+ Generated on Tue Dec 6 17:27:39 2016 by
4077
4078
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4078
- 0.8.6.1 (ruby-2.0.0).
4079
+ 0.9.5 (ruby-2.4.0).
4079
4080
  </div>
4080
4081
 
4082
+ </div>
4081
4083
  </body>
4082
4084
  </html>