r509 0.8.1 → 0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +343 -151
- data/Rakefile +26 -23
- data/bin/r509 +126 -112
- data/bin/r509-parse +24 -24
- data/doc/R509.html +169 -7
- data/doc/R509/ASN1.html +370 -0
- data/doc/R509/ASN1/GeneralName.html +1121 -0
- data/doc/R509/ASN1/GeneralNames.html +843 -0
- data/doc/R509/ASN1/NoticeReference.html +392 -0
- data/doc/R509/ASN1/PolicyInformation.html +387 -0
- data/doc/R509/ASN1/PolicyQualifiers.html +455 -0
- data/doc/R509/ASN1/UserNotice.html +386 -0
- data/doc/R509/{Crl.html → CRL.html} +7 -7
- data/doc/R509/CRL/Administrator.html +1559 -0
- data/doc/R509/{Crl/Parser.html → CRL/SignedList.html} +501 -210
- data/doc/R509/{Csr.html → CSR.html} +444 -314
- data/doc/R509/Cert.html +866 -617
- data/doc/R509/Cert/Extensions.html +52 -41
- data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +70 -35
- data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +387 -4
- data/doc/R509/Cert/Extensions/BasicConstraints.html +61 -25
- data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +354 -0
- data/doc/R509/Cert/Extensions/CertificatePolicies.html +340 -0
- data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +440 -49
- data/doc/R509/Cert/Extensions/{CrlDistributionPoints.html → InhibitAnyPolicy.html} +52 -35
- data/doc/R509/Cert/Extensions/KeyUsage.html +247 -121
- data/doc/R509/Cert/Extensions/NameConstraints.html +445 -0
- data/doc/R509/Cert/Extensions/OCSPNoCheck.html +239 -0
- data/doc/R509/Cert/Extensions/PolicyConstraints.html +424 -0
- data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +437 -62
- data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +52 -10
- data/doc/R509/CertificateAuthority.html +4 -4
- data/doc/R509/CertificateAuthority/Signer.html +154 -187
- data/doc/R509/Config.html +6 -6
- data/doc/R509/Config/{CaConfig.html → CAConfig.html} +451 -348
- data/doc/R509/Config/{CaConfigPool.html → CAConfigPool.html} +47 -47
- data/doc/R509/Config/CAProfile.html +1015 -0
- data/doc/R509/Config/SubjectItemPolicy.html +86 -86
- data/doc/R509/IOHelpers.html +22 -22
- data/doc/R509/MessageDigest.html +14 -14
- data/doc/R509/NameSanitizer.html +53 -53
- data/doc/R509/{Ocsp.html → OCSP.html} +9 -9
- data/doc/R509/{Ocsp → OCSP}/Request.html +7 -7
- data/doc/R509/{Ocsp → OCSP}/Request/Nonce.html +56 -11
- data/doc/R509/{Ocsp → OCSP}/Response.html +44 -44
- data/doc/R509/{OidMapper.html → OIDMapper.html} +23 -39
- data/doc/R509/PrivateKey.html +415 -168
- data/doc/R509/R509Error.html +3 -3
- data/doc/R509/{Spki.html → SPKI.html} +354 -192
- data/doc/R509/Subject.html +224 -113
- data/doc/R509/Validity.html +27 -5
- data/doc/R509/Validity/Checker.html +13 -13
- data/doc/R509/Validity/DefaultChecker.html +13 -13
- data/doc/R509/Validity/DefaultWriter.html +14 -14
- data/doc/R509/Validity/Status.html +39 -39
- data/doc/R509/Validity/Writer.html +18 -18
- data/doc/_index.html +138 -35
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +10 -0
- data/doc/file.README.html +368 -171
- data/doc/file.r509.html +92 -69
- data/doc/frames.html +1 -1
- data/doc/index.html +368 -171
- data/doc/method_list.html +910 -390
- data/doc/top-level-namespace.html +3 -3
- data/lib/r509.rb +32 -16
- data/lib/r509/asn1.rb +375 -0
- data/lib/r509/cert.rb +381 -364
- data/lib/r509/cert/extensions.rb +443 -76
- data/lib/r509/certificate_authority.rb +407 -0
- data/lib/r509/config.rb +547 -351
- data/lib/r509/crl.rb +336 -366
- data/lib/r509/csr.rb +278 -289
- data/lib/r509/ec-hack.rb +37 -0
- data/lib/r509/exceptions.rb +3 -3
- data/lib/r509/io_helpers.rb +44 -44
- data/lib/r509/message_digest.rb +53 -0
- data/lib/r509/ocsp.rb +80 -70
- data/lib/r509/oid_mapper.rb +32 -0
- data/lib/r509/private_key.rb +228 -0
- data/lib/r509/spki.rb +145 -93
- data/lib/r509/subject.rb +203 -110
- data/lib/r509/validity.rb +70 -68
- data/lib/r509/version.rb +2 -2
- data/r509.yaml +92 -69
- data/spec/asn1_spec.rb +402 -0
- data/spec/cert/extensions_spec.rb +957 -494
- data/spec/cert_spec.rb +382 -307
- data/spec/certificate_authority_spec.rb +668 -250
- data/spec/config_spec.rb +515 -302
- data/spec/crl_spec.rb +197 -198
- data/spec/csr_spec.rb +334 -289
- data/spec/fixtures.rb +247 -171
- data/spec/fixtures/cert1.der +0 -0
- data/spec/fixtures/cert1.pem +0 -0
- data/spec/fixtures/cert1_public_key_modulus.txt +0 -0
- data/spec/fixtures/cert3.p12 +0 -0
- data/spec/fixtures/cert3.pem +0 -0
- data/spec/fixtures/cert3_key.pem +0 -0
- data/spec/fixtures/cert3_key_des3.pem +0 -0
- data/spec/fixtures/cert4.pem +0 -0
- data/spec/fixtures/cert5.pem +0 -0
- data/spec/fixtures/cert6.pem +0 -0
- data/spec/fixtures/cert_expired.pem +0 -0
- data/spec/fixtures/cert_inhibit.pem +24 -0
- data/spec/fixtures/cert_name_constraints.pem +29 -0
- data/spec/fixtures/cert_not_yet_valid.pem +0 -0
- data/spec/fixtures/cert_ocsp_no_check.pem +18 -0
- data/spec/fixtures/cert_policy_constraints.pem +31 -0
- data/spec/fixtures/cert_san.pem +0 -0
- data/spec/fixtures/cert_san2.pem +0 -0
- data/spec/fixtures/cert_unknown_extension.pem +28 -0
- data/spec/fixtures/config_pool_test_minimal.yaml +11 -11
- data/spec/fixtures/config_test.yaml +54 -36
- data/spec/fixtures/config_test_dsa.yaml +35 -0
- data/spec/fixtures/config_test_ec.yaml +35 -0
- data/spec/fixtures/config_test_engine_key.yaml +5 -5
- data/spec/fixtures/config_test_engine_no_key_name.yaml +4 -4
- data/spec/fixtures/config_test_minimal.yaml +4 -4
- data/spec/fixtures/config_test_password.yaml +5 -5
- data/spec/fixtures/config_test_various.yaml +111 -74
- data/spec/fixtures/crl_list_file.txt +0 -0
- data/spec/fixtures/crl_with_reason.pem +0 -0
- data/spec/fixtures/csr1.der +0 -0
- data/spec/fixtures/csr1.pem +0 -0
- data/spec/fixtures/csr1_key.der +0 -0
- data/spec/fixtures/csr1_key.pem +0 -0
- data/spec/fixtures/csr1_key_encrypted_des3.pem +0 -0
- data/spec/fixtures/csr1_newlines.pem +0 -0
- data/spec/fixtures/csr1_no_begin_end.pem +0 -0
- data/spec/fixtures/csr1_public_key_modulus.txt +0 -0
- data/spec/fixtures/csr2.pem +0 -0
- data/spec/fixtures/csr2_key.pem +0 -0
- data/spec/fixtures/csr3.pem +0 -0
- data/spec/fixtures/csr4.pem +0 -0
- data/spec/fixtures/csr_dsa.pem +0 -0
- data/spec/fixtures/csr_invalid_signature.pem +0 -0
- data/spec/fixtures/dsa_key.pem +0 -0
- data/spec/fixtures/dsa_root.cer +28 -0
- data/spec/fixtures/dsa_root.key +20 -0
- data/spec/fixtures/ec_csr2.der +0 -0
- data/spec/fixtures/ec_csr2.pem +8 -0
- data/spec/fixtures/ec_key1.der +0 -0
- data/spec/fixtures/ec_key1.pem +6 -0
- data/spec/fixtures/ec_key1_encrypted.pem +9 -0
- data/spec/fixtures/ec_key2.pem +6 -0
- data/spec/fixtures/hmacsha1.sig +1 -0
- data/spec/fixtures/hmacsha512.sig +1 -0
- data/spec/fixtures/key4.pem +0 -0
- data/spec/fixtures/key4_encrypted_des3.pem +0 -0
- data/spec/fixtures/missing_key_identifier_ca.cer +0 -0
- data/spec/fixtures/missing_key_identifier_ca.key +0 -0
- data/spec/fixtures/ocsptest.r509.local.pem +0 -0
- data/spec/fixtures/ocsptest.r509.local_ocsp_request.der +0 -0
- data/spec/fixtures/ocsptest2.r509.local.pem +0 -0
- data/spec/fixtures/second_ca.cer +0 -0
- data/spec/fixtures/second_ca.key +0 -0
- data/spec/fixtures/spkac.der +0 -0
- data/spec/fixtures/spkac.txt +0 -0
- data/spec/fixtures/spkac_dsa.txt +1 -1
- data/spec/fixtures/spkac_dsa_no_verify.txt +1 -0
- data/spec/fixtures/spkac_ec.txt +1 -0
- data/spec/fixtures/spkac_rsa_newlines.txt +13 -0
- data/spec/fixtures/stca.pem +0 -0
- data/spec/fixtures/stca_ocsp_request.der +0 -0
- data/spec/fixtures/stca_ocsp_response.der +0 -0
- data/spec/fixtures/test1.csr +0 -0
- data/spec/fixtures/test_ca.cer +0 -0
- data/spec/fixtures/test_ca.key +0 -0
- data/spec/fixtures/test_ca.p12 +0 -0
- data/spec/fixtures/test_ca_des3.key +0 -0
- data/spec/fixtures/test_ca_ec.cer +14 -0
- data/spec/fixtures/test_ca_ec.key +6 -0
- data/spec/fixtures/test_ca_ec_ee.cer +22 -0
- data/spec/fixtures/test_ca_ec_ee.key +6 -0
- data/spec/fixtures/test_ca_ocsp.cer +0 -0
- data/spec/fixtures/test_ca_ocsp.key +0 -0
- data/spec/fixtures/test_ca_ocsp.p12 +0 -0
- data/spec/fixtures/test_ca_ocsp_chain.txt +0 -0
- data/spec/fixtures/test_ca_ocsp_response.der +0 -0
- data/spec/fixtures/test_ca_subroot.cer +0 -0
- data/spec/fixtures/test_ca_subroot.key +0 -0
- data/spec/fixtures/test_ca_subroot_ocsp.cer +0 -0
- data/spec/fixtures/test_ca_subroot_ocsp.key +0 -0
- data/spec/fixtures/test_ca_subroot_ocsp_response.der +0 -0
- data/spec/fixtures/unknown_oid.csr +0 -0
- data/spec/message_digest_spec.rb +104 -84
- data/spec/ocsp_spec.rb +105 -105
- data/spec/oid_mapper_spec.rb +21 -21
- data/spec/private_key_spec.rb +275 -0
- data/spec/r509_spec.rb +35 -0
- data/spec/spec_helper.rb +15 -6
- data/spec/spki_spec.rb +221 -142
- data/spec/subject_spec.rb +232 -164
- data/spec/validity_spec.rb +91 -91
- metadata +79 -25
- data/doc/R509/Config/CaProfile.html +0 -651
- data/doc/R509/Crl/Administrator.html +0 -2073
- data/lib/r509/certificateauthority.rb +0 -290
- data/lib/r509/messagedigest.rb +0 -49
- data/lib/r509/oidmapper.rb +0 -32
- data/lib/r509/privatekey.rb +0 -185
- data/spec/privatekey_spec.rb +0 -198
data/doc/R509/Validity.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: R509::Validity
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -128,12 +128,34 @@ information (used for serving OCSP responses)</p>
|
|
128
128
|
<dd><pre class="code"><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>OCSP</span><span class='op'>::</span><span class='const'>V_CERTSTATUS_GOOD</span></pre></dd>
|
129
129
|
|
130
130
|
<dt id="REVOKED-constant" class="">REVOKED =
|
131
|
-
|
131
|
+
<div class="docstring">
|
132
|
+
<div class="discussion">
|
133
|
+
|
134
|
+
<p>mapping from OpenSSL</p>
|
135
|
+
|
136
|
+
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
<div class="tags">
|
140
|
+
|
141
|
+
|
142
|
+
</div>
|
132
143
|
</dt>
|
133
144
|
<dd><pre class="code"><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>OCSP</span><span class='op'>::</span><span class='const'>V_CERTSTATUS_REVOKED</span></pre></dd>
|
134
145
|
|
135
146
|
<dt id="UNKNOWN-constant" class="">UNKNOWN =
|
136
|
-
|
147
|
+
<div class="docstring">
|
148
|
+
<div class="discussion">
|
149
|
+
|
150
|
+
<p>mapping from OpenSSL</p>
|
151
|
+
|
152
|
+
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
<div class="tags">
|
156
|
+
|
157
|
+
|
158
|
+
</div>
|
137
159
|
</dt>
|
138
160
|
<dd><pre class="code"><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>OCSP</span><span class='op'>::</span><span class='const'>V_CERTSTATUS_UNKNOWN</span></pre></dd>
|
139
161
|
|
@@ -151,9 +173,9 @@ information (used for serving OCSP responses)</p>
|
|
151
173
|
</div>
|
152
174
|
|
153
175
|
<div id="footer">
|
154
|
-
Generated on
|
176
|
+
Generated on Tue Apr 16 10:49:55 2013 by
|
155
177
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
156
|
-
0.8.
|
178
|
+
0.8.5 (ruby-1.9.3).
|
157
179
|
</div>
|
158
180
|
|
159
181
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: R509::Validity::Checker
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -222,15 +222,15 @@ choose to implement is currently working.</p>
|
|
222
222
|
<pre class="lines">
|
223
223
|
|
224
224
|
|
225
|
-
|
226
|
-
|
227
|
-
|
225
|
+
60
|
226
|
+
61
|
227
|
+
62</pre>
|
228
228
|
</td>
|
229
229
|
<td>
|
230
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
230
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 60</span>
|
231
231
|
|
232
232
|
<span class='kw'>def</span> <span class='id identifier rubyid_check'>check</span><span class='lparen'>(</span><span class='id identifier rubyid_issuer'>issuer</span><span class='comma'>,</span> <span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
233
|
-
|
233
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>You must call #check on a subclass of Checker</span><span class='tstring_end'>"</span></span>
|
234
234
|
<span class='kw'>end</span></pre>
|
235
235
|
</td>
|
236
236
|
</tr>
|
@@ -291,15 +291,15 @@ r509-validity-redis for an example of use</p>
|
|
291
291
|
<pre class="lines">
|
292
292
|
|
293
293
|
|
294
|
-
|
295
|
-
|
296
|
-
|
294
|
+
66
|
295
|
+
67
|
296
|
+
68</pre>
|
297
297
|
</td>
|
298
298
|
<td>
|
299
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
299
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 66</span>
|
300
300
|
|
301
301
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_available?'>is_available?</span>
|
302
|
-
|
302
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>You must call #is_available? on a subclass of Checker</span><span class='tstring_end'>"</span></span>
|
303
303
|
<span class='kw'>end</span></pre>
|
304
304
|
</td>
|
305
305
|
</tr>
|
@@ -311,9 +311,9 @@ r509-validity-redis for an example of use</p>
|
|
311
311
|
</div>
|
312
312
|
|
313
313
|
<div id="footer">
|
314
|
-
Generated on
|
314
|
+
Generated on Tue Apr 16 10:49:57 2013 by
|
315
315
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
316
|
-
0.8.
|
316
|
+
0.8.5 (ruby-1.9.3).
|
317
317
|
</div>
|
318
318
|
|
319
319
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: R509::Validity::DefaultChecker
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -202,15 +202,15 @@ OTHERWISE</p>
|
|
202
202
|
<pre class="lines">
|
203
203
|
|
204
204
|
|
205
|
-
|
206
|
-
|
207
|
-
|
205
|
+
73
|
206
|
+
74
|
207
|
+
75</pre>
|
208
208
|
</td>
|
209
209
|
<td>
|
210
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
210
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 73</span>
|
211
211
|
|
212
212
|
<span class='kw'>def</span> <span class='id identifier rubyid_check'>check</span><span class='lparen'>(</span><span class='id identifier rubyid_issuer'>issuer</span><span class='comma'>,</span> <span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
213
|
-
|
213
|
+
<span class='const'>R509</span><span class='op'>::</span><span class='const'>Validity</span><span class='op'>::</span><span class='const'>Status</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:status</span> <span class='op'>=></span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Validity</span><span class='op'>::</span><span class='const'>VALID</span><span class='rparen'>)</span>
|
214
214
|
<span class='kw'>end</span></pre>
|
215
215
|
</td>
|
216
216
|
</tr>
|
@@ -254,15 +254,15 @@ OTHERWISE</p>
|
|
254
254
|
<pre class="lines">
|
255
255
|
|
256
256
|
|
257
|
-
|
258
|
-
|
259
|
-
|
257
|
+
77
|
258
|
+
78
|
259
|
+
79</pre>
|
260
260
|
</td>
|
261
261
|
<td>
|
262
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
262
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 77</span>
|
263
263
|
|
264
264
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_available?'>is_available?</span>
|
265
|
-
|
265
|
+
<span class='kw'>true</span>
|
266
266
|
<span class='kw'>end</span></pre>
|
267
267
|
</td>
|
268
268
|
</tr>
|
@@ -274,9 +274,9 @@ OTHERWISE</p>
|
|
274
274
|
</div>
|
275
275
|
|
276
276
|
<div id="footer">
|
277
|
-
Generated on
|
277
|
+
Generated on Tue Apr 16 10:49:57 2013 by
|
278
278
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
279
|
-
0.8.
|
279
|
+
0.8.5 (ruby-1.9.3).
|
280
280
|
</div>
|
281
281
|
|
282
282
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: R509::Validity::DefaultWriter
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -245,15 +245,15 @@
|
|
245
245
|
<pre class="lines">
|
246
246
|
|
247
247
|
|
248
|
-
|
249
|
-
|
250
|
-
|
248
|
+
90
|
249
|
+
91
|
250
|
+
92</pre>
|
251
251
|
</td>
|
252
252
|
<td>
|
253
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
253
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 90</span>
|
254
254
|
|
255
255
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_available?'>is_available?</span>
|
256
|
-
|
256
|
+
<span class='kw'>true</span>
|
257
257
|
<span class='kw'>end</span></pre>
|
258
258
|
</td>
|
259
259
|
</tr>
|
@@ -275,11 +275,11 @@
|
|
275
275
|
<pre class="lines">
|
276
276
|
|
277
277
|
|
278
|
-
|
279
|
-
|
278
|
+
84
|
279
|
+
85</pre>
|
280
280
|
</td>
|
281
281
|
<td>
|
282
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
282
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 84</span>
|
283
283
|
|
284
284
|
<span class='kw'>def</span> <span class='id identifier rubyid_issue'>issue</span><span class='lparen'>(</span><span class='id identifier rubyid_issuer'>issuer</span><span class='comma'>,</span> <span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
285
285
|
<span class='kw'>end</span></pre>
|
@@ -303,11 +303,11 @@
|
|
303
303
|
<pre class="lines">
|
304
304
|
|
305
305
|
|
306
|
-
|
307
|
-
|
306
|
+
87
|
307
|
+
88</pre>
|
308
308
|
</td>
|
309
309
|
<td>
|
310
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
310
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 87</span>
|
311
311
|
|
312
312
|
<span class='kw'>def</span> <span class='id identifier rubyid_revoke'>revoke</span><span class='lparen'>(</span><span class='id identifier rubyid_issuer'>issuer</span><span class='comma'>,</span> <span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='rparen'>)</span>
|
313
313
|
<span class='kw'>end</span></pre>
|
@@ -321,9 +321,9 @@
|
|
321
321
|
</div>
|
322
322
|
|
323
323
|
<div id="footer">
|
324
|
-
Generated on
|
324
|
+
Generated on Tue Apr 16 10:49:57 2013 by
|
325
325
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
326
|
-
0.8.
|
326
|
+
0.8.5 (ruby-1.9.3).
|
327
327
|
</div>
|
328
328
|
|
329
329
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: R509::Validity::Status
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -299,27 +299,27 @@
|
|
299
299
|
<pre class="lines">
|
300
300
|
|
301
301
|
|
302
|
-
14
|
303
|
-
15
|
304
302
|
16
|
305
303
|
17
|
306
304
|
18
|
307
305
|
19
|
308
306
|
20
|
309
307
|
21
|
310
|
-
22
|
308
|
+
22
|
309
|
+
23
|
310
|
+
24</pre>
|
311
311
|
</td>
|
312
312
|
<td>
|
313
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
313
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 16</span>
|
314
314
|
|
315
315
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
316
|
-
|
317
|
-
|
318
|
-
|
316
|
+
<span class='ivar'>@status</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:status</span><span class='rbracket'>]</span>
|
317
|
+
<span class='ivar'>@revocation_time</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:revocation_time</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>nil</span>
|
318
|
+
<span class='ivar'>@revocation_reason</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:revocation_reason</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span>
|
319
319
|
|
320
|
-
|
321
|
-
|
322
|
-
|
320
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@status</span> <span class='op'>==</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Validity</span><span class='op'>::</span><span class='const'>REVOKED</span> <span class='kw'>and</span> <span class='ivar'>@revocation_time</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span><span class='rparen'>)</span>
|
321
|
+
<span class='ivar'>@revocation_time</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
322
|
+
<span class='kw'>end</span>
|
323
323
|
<span class='kw'>end</span></pre>
|
324
324
|
</td>
|
325
325
|
</tr>
|
@@ -359,12 +359,12 @@
|
|
359
359
|
<pre class="lines">
|
360
360
|
|
361
361
|
|
362
|
-
|
363
|
-
|
364
|
-
|
362
|
+
14
|
363
|
+
15
|
364
|
+
16</pre>
|
365
365
|
</td>
|
366
366
|
<td>
|
367
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
367
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 14</span>
|
368
368
|
|
369
369
|
<span class='kw'>def</span> <span class='id identifier rubyid_revocation_reason'>revocation_reason</span>
|
370
370
|
<span class='ivar'>@revocation_reason</span>
|
@@ -402,12 +402,12 @@
|
|
402
402
|
<pre class="lines">
|
403
403
|
|
404
404
|
|
405
|
-
|
406
|
-
|
407
|
-
|
405
|
+
14
|
406
|
+
15
|
407
|
+
16</pre>
|
408
408
|
</td>
|
409
409
|
<td>
|
410
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
410
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 14</span>
|
411
411
|
|
412
412
|
<span class='kw'>def</span> <span class='id identifier rubyid_revocation_time'>revocation_time</span>
|
413
413
|
<span class='ivar'>@revocation_time</span>
|
@@ -445,12 +445,12 @@
|
|
445
445
|
<pre class="lines">
|
446
446
|
|
447
447
|
|
448
|
-
|
449
|
-
|
450
|
-
|
448
|
+
14
|
449
|
+
15
|
450
|
+
16</pre>
|
451
451
|
</td>
|
452
452
|
<td>
|
453
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
453
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 14</span>
|
454
454
|
|
455
455
|
<span class='kw'>def</span> <span class='id identifier rubyid_status'>status</span>
|
456
456
|
<span class='ivar'>@status</span>
|
@@ -511,8 +511,6 @@
|
|
511
511
|
<pre class="lines">
|
512
512
|
|
513
513
|
|
514
|
-
25
|
515
|
-
26
|
516
514
|
27
|
517
515
|
28
|
518
516
|
29
|
@@ -522,22 +520,24 @@
|
|
522
520
|
33
|
523
521
|
34
|
524
522
|
35
|
525
|
-
36
|
523
|
+
36
|
524
|
+
37
|
525
|
+
38</pre>
|
526
526
|
</td>
|
527
527
|
<td>
|
528
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
528
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 27</span>
|
529
529
|
|
530
530
|
<span class='kw'>def</span> <span class='id identifier rubyid_ocsp_status'>ocsp_status</span>
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
531
|
+
<span class='kw'>case</span> <span class='ivar'>@status</span>
|
532
|
+
<span class='kw'>when</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Validity</span><span class='op'>::</span><span class='const'>VALID</span>
|
533
|
+
<span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>OCSP</span><span class='op'>::</span><span class='const'>V_CERTSTATUS_GOOD</span>
|
534
|
+
<span class='kw'>when</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Validity</span><span class='op'>::</span><span class='const'>REVOKED</span>
|
535
|
+
<span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>OCSP</span><span class='op'>::</span><span class='const'>V_CERTSTATUS_REVOKED</span>
|
536
|
+
<span class='kw'>when</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Validity</span><span class='op'>::</span><span class='const'>UNKNOWN</span>
|
537
|
+
<span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>OCSP</span><span class='op'>::</span><span class='const'>V_CERTSTATUS_UNKNOWN</span>
|
538
|
+
<span class='kw'>else</span>
|
539
|
+
<span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>OCSP</span><span class='op'>::</span><span class='const'>V_CERTSTATUS_UNKNOWN</span>
|
540
|
+
<span class='kw'>end</span>
|
541
541
|
<span class='kw'>end</span></pre>
|
542
542
|
</td>
|
543
543
|
</tr>
|
@@ -549,9 +549,9 @@
|
|
549
549
|
</div>
|
550
550
|
|
551
551
|
<div id="footer">
|
552
|
-
Generated on
|
552
|
+
Generated on Tue Apr 16 10:49:57 2013 by
|
553
553
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
554
|
-
0.8.
|
554
|
+
0.8.5 (ruby-1.9.3).
|
555
555
|
</div>
|
556
556
|
|
557
557
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: R509::Validity::Writer
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -261,15 +261,15 @@ r509-validity-redis for an example of use</p>
|
|
261
261
|
<pre class="lines">
|
262
262
|
|
263
263
|
|
264
|
-
|
265
|
-
|
266
|
-
|
264
|
+
53
|
265
|
+
54
|
266
|
+
55</pre>
|
267
267
|
</td>
|
268
268
|
<td>
|
269
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
269
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 53</span>
|
270
270
|
|
271
271
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_available?'>is_available?</span>
|
272
|
-
|
272
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>You must call #is_available? on a subclass of Writer</span><span class='tstring_end'>"</span></span>
|
273
273
|
<span class='kw'>end</span></pre>
|
274
274
|
</td>
|
275
275
|
</tr>
|
@@ -313,15 +313,15 @@ r509-validity-redis for an example of use</p>
|
|
313
313
|
<pre class="lines">
|
314
314
|
|
315
315
|
|
316
|
-
|
317
|
-
|
318
|
-
|
316
|
+
43
|
317
|
+
44
|
318
|
+
45</pre>
|
319
319
|
</td>
|
320
320
|
<td>
|
321
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
321
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 43</span>
|
322
322
|
|
323
323
|
<span class='kw'>def</span> <span class='id identifier rubyid_issue'>issue</span><span class='lparen'>(</span><span class='id identifier rubyid_issuer'>issuer</span><span class='comma'>,</span> <span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
324
|
-
|
324
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>You must call #issue on a subclass of Writer</span><span class='tstring_end'>"</span></span>
|
325
325
|
<span class='kw'>end</span></pre>
|
326
326
|
</td>
|
327
327
|
</tr>
|
@@ -365,15 +365,15 @@ r509-validity-redis for an example of use</p>
|
|
365
365
|
<pre class="lines">
|
366
366
|
|
367
367
|
|
368
|
-
|
369
|
-
|
370
|
-
|
368
|
+
47
|
369
|
+
48
|
370
|
+
49</pre>
|
371
371
|
</td>
|
372
372
|
<td>
|
373
|
-
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line
|
373
|
+
<pre class="code"><span class="info file"># File 'lib/r509/validity.rb', line 47</span>
|
374
374
|
|
375
375
|
<span class='kw'>def</span> <span class='id identifier rubyid_revoke'>revoke</span><span class='lparen'>(</span><span class='id identifier rubyid_issuer'>issuer</span><span class='comma'>,</span> <span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='rparen'>)</span>
|
376
|
-
|
376
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>You must call #revoke on a subclass of Writer</span><span class='tstring_end'>"</span></span>
|
377
377
|
<span class='kw'>end</span></pre>
|
378
378
|
</td>
|
379
379
|
</tr>
|
@@ -385,9 +385,9 @@ r509-validity-redis for an example of use</p>
|
|
385
385
|
</div>
|
386
386
|
|
387
387
|
<div id="footer">
|
388
|
-
Generated on
|
388
|
+
Generated on Tue Apr 16 10:49:57 2013 by
|
389
389
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
390
|
-
0.8.
|
390
|
+
0.8.5 (ruby-1.9.3).
|
391
391
|
</div>
|
392
392
|
|
393
393
|
</body>
|