doc/R509/Cert.html in r509-0.9.2 vs doc/R509/Cert.html in r509-0.10.0
- old
+ new
@@ -4,17 +4,17 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Class: R509::Cert
- — Documentation by YARD 0.8.5
+ — Documentation by YARD 0.8.6.1
</title>
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
hasFrames = window.top.frames.main ? true : false;
relpath = '../';
framesUrl = "../frames.html#!" + escape(window.location.href);
@@ -89,19 +89,19 @@
<dt class="r2">Includes:</dt>
- <dd class="r2"><span class='object_link'><a href="IOHelpers.html" title="R509::IOHelpers (module)">IOHelpers</a></span></dd>
+ <dd class="r2"><span class='object_link'><a href="Helpers.html" title="R509::Helpers (module)">Helpers</a></span></dd>
<dt class="r1 last">Defined in:</dt>
<dd class="r1 last">lib/r509/cert.rb<span class="defines">,<br />
- lib/r509/cert/extensions.rb</span>
+ 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>
</dd>
</dl>
<div class="clear"></div>
@@ -337,11 +337,12 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's AuthorityInfoAccess extension as an R509 extension.</p>
+<p>Returns this object's AuthorityInfoAccess extension as an R509
+extension.</p>
</div></span>
</li>
@@ -361,11 +362,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's AuthorityKeyIdentifier extension as an R509
+<p>Returns this object's AuthorityKeyIdentifier extension as an R509
extension.</p>
</div></span>
</li>
@@ -386,35 +387,42 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's BasicConstraints extension as an R509 extension.</p>
+<p>Returns this object's BasicConstraints extension as an R509 extension.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
- <a href="#bit_strength-instance_method" title="#bit_strength (instance method)">- (Integer) <strong>bit_strength</strong> </a>
+ <a href="#bit_length-instance_method" title="#bit_length (instance method)">- (Integer) <strong>bit_length</strong> </a>
+ (also: #bit_strength)
+
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#bit_length-instance_method" title="R509::Helpers#bit_length (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
-<p>Returns the bit strength of the key used to create the certificate.</p>
+<p>Returns the bit length of the key.</p>
</div></span>
</li>
@@ -434,11 +442,12 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's CertificatePolicies extension as an R509 extension.</p>
+<p>Returns this object's CertificatePolicies extension as an R509
+extension.</p>
</div></span>
</li>
@@ -460,11 +469,12 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's CRLDistributionPoints extension as an R509 extension.</p>
+<p>Returns this object's CRLDistributionPoints extension as an R509
+extension.</p>
</div></span>
</li>
@@ -475,16 +485,21 @@
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#curve_name-instance_method" title="R509::Helpers#curve_name (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
<p>Returns the short name of the elliptic curve used to generate the public
key if the key is EC.</p>
@@ -500,16 +515,21 @@
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#dsa%3F-instance_method" title="R509::Helpers#dsa? (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
<p>Returns whether the public key is DSA.</p>
</div></span>
@@ -524,16 +544,21 @@
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#ec%3F-instance_method" title="R509::Helpers#ec? (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
<p>Returns whether the public key is EC.</p>
</div></span>
@@ -559,11 +584,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's ExtendedKeyUsage extension as an R509 extension.</p>
+<p>Returns this object's ExtendedKeyUsage extension as an R509 extension.</p>
</div></span>
</li>
@@ -593,11 +618,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#fingerprint-instance_method" title="#fingerprint (instance method)">- (String) <strong>fingerprint</strong>(algorithm = 'sha1') </a>
+ <a href="#fingerprint-instance_method" title="#fingerprint (instance method)">- (String) <strong>fingerprint</strong>(algorithm = 'sha1') </a>
</span>
@@ -681,11 +706,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's InhibitAnyPolicy extension as an R509 extension.</p>
+<p>Returns this object's InhibitAnyPolicy extension as an R509 extension.</p>
</div></span>
</li>
@@ -731,35 +756,40 @@
<span class="summary_desc"><div class='inline'>
-<p>Checks the given CRL for this certificate's serial number.</p>
+<p>Checks the given CRL for this certificate's serial number.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
- <a href="#key_algorithm-instance_method" title="#key_algorithm (instance method)">- (Symbol) <strong>key_algorithm</strong> </a>
+ <a href="#key_algorithm-instance_method" title="#key_algorithm (instance method)">- (String) <strong>key_algorithm</strong> </a>
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#key_algorithm-instance_method" title="R509::Helpers#key_algorithm (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
-<p>Returns key algorithm (RSA, DSA, EC).</p>
+<p>Returns key algorithm (RSA/DSA/EC).</p>
</div></span>
</li>
@@ -781,11 +811,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's KeyUsage extension as an R509 extension.</p>
+<p>Returns this object's KeyUsage extension as an R509 extension.</p>
</div></span>
</li>
@@ -805,11 +835,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's NameConstraints extension as an R509 extension.</p>
+<p>Returns this object's NameConstraints extension as an R509 extension.</p>
</div></span>
</li>
@@ -902,11 +932,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's PolicyConstraints extension as an R509 extension.</p>
+<p>Returns this object's PolicyConstraints extension as an R509 extension.</p>
</div></span>
</li>
@@ -941,16 +971,21 @@
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#rsa%3F-instance_method" title="R509::Helpers#rsa? (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
<p>Returns whether the public key is RSA.</p>
</div></span>
@@ -1024,11 +1059,11 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's SubjectAlternativeName extension as an R509
+<p>Returns this object's SubjectAlternativeName extension as an R509
extension.</p>
</div></span>
</li>
@@ -1049,11 +1084,12 @@
<span class="summary_desc"><div class='inline'>
-<p>Returns this object's SubjectKeyIdentifier extension as an R509 extension.</p>
+<p>Returns this object's SubjectKeyIdentifier extension as an R509
+extension.</p>
</div></span>
</li>
@@ -1064,20 +1100,25 @@
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#to_der-instance_method" title="R509::Helpers#to_der (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
-<p>Converts the Cert into the DER format.</p>
+<p>Converts the object into DER format.</p>
</div></span>
</li>
@@ -1086,24 +1127,27 @@
<a href="#to_pem-instance_method" title="#to_pem (instance method)">- (String) <strong>to_pem</strong> </a>
- (also: #to_s)
-
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#to_pem-instance_method" title="R509::Helpers#to_pem (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
-<p>Converts the Cert into the PEM format.</p>
+<p>Converts the object into PEM format.</p>
</div></span>
</li>
@@ -1189,20 +1233,25 @@
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#write_der-instance_method" title="R509::Helpers#write_der (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
-<p>Writes the Cert into the DER format.</p>
+<p>Writes the object into DER format.</p>
</div></span>
</li>
@@ -1213,29 +1262,34 @@
</span>
+ <span class="note title not_defined_here">
+ included
+ from <span class='object_link'><a href="Helpers.html#write_pem-instance_method" title="R509::Helpers#write_pem (method)">Helpers</a></span>
+ </span>
+
<span class="summary_desc"><div class='inline'>
-<p>Writes the Cert into the PEM format.</p>
+<p>Writes the object into PEM format.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
- <a href="#write_pkcs12-instance_method" title="#write_pkcs12 (instance method)">- (Object) <strong>write_pkcs12</strong>(filename_or_io, password, friendly_name = 'r509 pkcs12') </a>
+ <a href="#write_pkcs12-instance_method" title="#write_pkcs12 (instance method)">- (Object) <strong>write_pkcs12</strong>(filename_or_io, password, friendly_name = 'r509 pkcs12') </a>
</span>
@@ -1260,18 +1314,11 @@
-
-
-
-
-
- <h3 class="inherited">Methods included from <span class='object_link'><a href="IOHelpers.html" title="R509::IOHelpers (module)">IOHelpers</a></span></h3>
- <p class="inherited"><span class='object_link'><a href="IOHelpers.html#read_data-instance_method" title="R509::IOHelpers#read_data (method)">#read_data</a></span>, <span class='object_link'><a href="IOHelpers.html#read_data-class_method" title="R509::IOHelpers.read_data (method)">read_data</a></span>, <span class='object_link'><a href="IOHelpers.html#write_data-instance_method" title="R509::IOHelpers#write_data (method)">#write_data</a></span>, <span class='object_link'><a href="IOHelpers.html#write_data-class_method" title="R509::IOHelpers.write_data (method)">write_data</a></span></p>
-<div id="constructor_details" class="method_details_list">
+ <div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
@@ -1381,12 +1428,10 @@
<tr>
<td>
<pre class="lines">
-17
-18
19
20
21
22
23
@@ -1403,43 +1448,35 @@
34
35
36
37
38
-39
-40
-41
-42</pre>
+39</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 17</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 19</span>
<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>
<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>
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Must provide a hash of options</span><span class='tstring_end'>'</span></span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Must provide a hash of options</span><span class='tstring_end'>'</span></span>
<span class='kw'>end</span>
<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>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>When providing pkcs12, do not pass cert or key</span><span class='tstring_end'>"</span></span>
<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>
<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>
<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>
- <span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>PrivateKey</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='symbol'>:key</span> <span class='op'>=></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>
+ <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>
<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>
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Must provide :cert or :pkcs12</span><span class='tstring_end'>'</span></span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Must provide :cert or :pkcs12</span><span class='tstring_end'>'</span></span>
<span class='kw'>else</span>
<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>
<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>
<span class='kw'>end</span>
<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>
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:key</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>PrivateKey</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:key</span><span class='rbracket'>]</span>
- <span class='kw'>else</span>
- <span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>PrivateKey</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='symbol'>:key</span> <span class='op'>=></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='symbol'>:password</span> <span class='op'>=></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>
- <span class='kw'>end</span>
+ <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>
<span class='kw'>end</span>
- <span class='id identifier rubyid_associate_private_key'>associate_private_key</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -1475,16 +1512,16 @@
<tr>
<td>
<pre class="lines">
-11
-12
-13</pre>
+13
+14
+15</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 11</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 13</span>
<span class='kw'>def</span> <span class='id identifier rubyid_cert'>cert</span>
<span class='ivar'>@cert</span>
<span class='kw'>end</span></pre>
</td>
@@ -1518,16 +1555,16 @@
<tr>
<td>
<pre class="lines">
-11
-12
-13</pre>
+13
+14
+15</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 11</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 13</span>
<span class='kw'>def</span> <span class='id identifier rubyid_issuer'>issuer</span>
<span class='ivar'>@issuer</span>
<span class='kw'>end</span></pre>
</td>
@@ -1561,16 +1598,16 @@
<tr>
<td>
<pre class="lines">
-11
-12
-13</pre>
+13
+14
+15</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 11</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 13</span>
<span class='kw'>def</span> <span class='id identifier rubyid_key'>key</span>
<span class='ivar'>@key</span>
<span class='kw'>end</span></pre>
</td>
@@ -1604,16 +1641,16 @@
<tr>
<td>
<pre class="lines">
-11
-12
-13</pre>
+13
+14
+15</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 11</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 13</span>
<span class='kw'>def</span> <span class='id identifier rubyid_subject'>subject</span>
<span class='ivar'>@subject</span>
<span class='kw'>end</span></pre>
</td>
@@ -1690,16 +1727,16 @@
<tr>
<td>
<pre class="lines">
-48
-49
-50</pre>
+45
+46
+47</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 48</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 45</span>
<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>
<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'>=></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>
<span class='kw'>end</span></pre>
</td>
@@ -1756,20 +1793,20 @@
<tr>
<td>
<pre class="lines">
-156
-157
-158
-159
-160
-161
-162</pre>
+134
+135
+136
+137
+138
+139
+140</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 156</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 134</span>
<span class='kw'>def</span> <span class='id identifier rubyid_all_names'>all_names</span>
<span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='id identifier rubyid_ret'>ret</span> <span class='op'><<</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>
<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>
@@ -1795,11 +1832,12 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's AuthorityInfoAccess extension as an R509 extension</p>
+<p>Returns this object's AuthorityInfoAccess extension as an R509
+extension</p>
<p>if this cert does not have a AuthorityInfoAccess extension.</p>
</div>
@@ -1829,16 +1867,16 @@
<tr>
<td>
<pre class="lines">
-349
-350
-351</pre>
+254
+255
+256</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 349</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 254</span>
<span class='kw'>def</span> <span class='id identifier rubyid_authority_info_access'>authority_info_access</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -1856,11 +1894,12 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's AuthorityKeyIdentifier extension as an R509 extension</p>
+<p>Returns this object's AuthorityKeyIdentifier extension as an R509
+extension</p>
<p>if this cert does not have a AuthorityKeyIdentifier extension.</p>
</div>
@@ -1890,16 +1929,16 @@
<tr>
<td>
<pre class="lines">
-331
-332
-333</pre>
+236
+237
+238</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 331</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 236</span>
<span class='kw'>def</span> <span class='id identifier rubyid_authority_key_identifier'>authority_key_identifier</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -1917,11 +1956,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's BasicConstraints extension as an R509 extension</p>
+<p>Returns this object's BasicConstraints extension as an R509 extension</p>
<p>if this cert does not have a BasicConstraints extension.</p>
</div>
@@ -1951,38 +1990,47 @@
<tr>
<td>
<pre class="lines">
-297
-298
-299</pre>
+202
+203
+204</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 297</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 202</span>
<span class='kw'>def</span> <span class='id identifier rubyid_basic_constraints'>basic_constraints</span>
<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>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="bit_strength-instance_method">
+ <h3 class="signature " id="bit_length-instance_method">
- - (<tt>Integer</tt>) <strong>bit_strength</strong>
+ - (<tt>Integer</tt>) <strong>bit_length</strong>
+ <span class="aliases">Also known as:
+ <span class="names"><span id='bit_strength-instance_method'>bit_strength</span></span>
+ </span>
+
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#bit_length-instance_method" title="R509::Helpers#bit_length (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
-<p>Returns the bit strength of the key used to create the certificate</p>
+<p>Returns the bit length of the key</p>
</div>
</div>
<div class="tags">
@@ -1997,49 +2045,19 @@
—
<div class='inline'>
-<p>integer value of bit strength</p>
+<p>the integer bit length.</p>
</div>
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-188
-189
-190
-191
-192
-193
-194
-195
-196</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 188</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_bit_strength'>bit_strength</span>
- <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_rsa?'>rsa?</span>
- <span class='kw'>return</span> <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span><span class='period'>.</span><span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_num_bits'>num_bits</span>
- <span class='kw'>elsif</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dsa?'>dsa?</span>
- <span class='kw'>return</span> <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span><span class='period'>.</span><span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_num_bits'>num_bits</span>
- <span class='kw'>elsif</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ec?'>ec?</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>R509Error</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Bit strength is not available for EC at this time.</span><span class='tstring_end'>'</span></span>
- <span class='kw'>end</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="certificate_policies-instance_method">
- (<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>
@@ -2049,11 +2067,12 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's CertificatePolicies extension as an R509 extension</p>
+<p>Returns this object's CertificatePolicies extension as an R509
+extension</p>
<p>if this cert does not have a CertificatePolicies extension.</p>
</div>
@@ -2083,16 +2102,16 @@
<tr>
<td>
<pre class="lines">
-375
-376
-377</pre>
+280
+281
+282</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 375</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 280</span>
<span class='kw'>def</span> <span class='id identifier rubyid_certificate_policies'>certificate_policies</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -2114,11 +2133,12 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's CRLDistributionPoints extension as an R509 extension</p>
+<p>Returns this object's CRLDistributionPoints extension as an R509
+extension</p>
<p>if this cert does not have a CRLDistributionPoints extension.</p>
</div>
@@ -2148,16 +2168,16 @@
<tr>
<td>
<pre class="lines">
-358
-359
-360</pre>
+263
+264
+265</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 358</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 263</span>
<span class='kw'>def</span> <span class='id identifier rubyid_crl_distribution_points'>crl_distribution_points</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -2172,10 +2192,15 @@
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#curve_name-instance_method" title="R509::Helpers#curve_name (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
<p>Returns the short name of the elliptic curve used to generate the public
key if the key is EC. If not, raises an error.</p>
@@ -2202,48 +2227,27 @@
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-202
-203
-204
-205
-206
-207
-208</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 202</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_curve_name'>curve_name</span>
- <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ec?'>ec?</span>
- <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span><span class='period'>.</span><span class='id identifier rubyid_group'>group</span><span class='period'>.</span><span class='id identifier rubyid_curve_name'>curve_name</span>
- <span class='kw'>else</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>R509Error</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Curve name is only available with EC certs</span><span class='tstring_end'>'</span></span>
- <span class='kw'>end</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="dsa?-instance_method">
- (<tt>Boolean</tt>) <strong>dsa?</strong>
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#dsa%3F-instance_method" title="R509::Helpers#dsa? (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
<p>Returns whether the public key is DSA</p>
@@ -2269,40 +2273,27 @@
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-174
-175
-176</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 174</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_dsa?'>dsa?</span>
- <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>DSA</span><span class='rparen'>)</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="ec?-instance_method">
- (<tt>Boolean</tt>) <strong>ec?</strong>
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#ec%3F-instance_method" title="R509::Helpers#ec? (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
<p>Returns whether the public key is EC</p>
@@ -2328,30 +2319,12 @@
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-181
-182
-183</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 181</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_ec?'>ec?</span>
- <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>EC</span><span class='rparen'>)</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="extended_key_usage-instance_method">
- (<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>
@@ -2365,11 +2338,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's ExtendedKeyUsage extension as an R509 extension</p>
+<p>Returns this object's ExtendedKeyUsage extension as an R509 extension</p>
<p>if this cert does not have a ExtendedKeyUsage extension.</p>
</div>
@@ -2399,16 +2372,16 @@
<tr>
<td>
<pre class="lines">
-314
-315
-316</pre>
+219
+220
+221</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 314</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 219</span>
<span class='kw'>def</span> <span class='id identifier rubyid_extended_key_usage'>extended_key_usage</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -2463,20 +2436,20 @@
<tr>
<td>
<pre class="lines">
-273
-274
-275
-276
-277
-278
-279</pre>
+178
+179
+180
+181
+182
+183
+184</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 273</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 178</span>
<span class='kw'>def</span> <span class='id identifier rubyid_extensions'>extensions</span>
<span class='kw'>if</span> <span class='ivar'>@r509_extensions</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
<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>
<span class='kw'>end</span>
@@ -2489,11 +2462,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="fingerprint-instance_method">
- - (<tt>String</tt>) <strong>fingerprint</strong>(algorithm = 'sha1')
+ - (<tt>String</tt>) <strong>fingerprint</strong>(algorithm = 'sha1')
@@ -2516,11 +2489,11 @@
<span class='type'>(<tt>String</tt>)</span>
- <em class="default">(defaults to: <tt>'sha1'</tt>)</em>
+ <em class="default">(defaults to: <tt>'sha1'</tt>)</em>
—
<div class='inline'>
<p>Which algorithm to use for the fingerprint. See R509::MessageDigest for
@@ -2554,21 +2527,21 @@
<tr>
<td>
<pre class="lines">
-112
-113
-114
-115
-116
-117</pre>
+90
+91
+92
+93
+94
+95</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 112</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 90</span>
-<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'>'</span><span class='tstring_content'>sha1</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
+<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'>'</span><span class='tstring_content'>sha1</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
<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>
<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>
<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>
<span class='id identifier rubyid_md'>md</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
<span class='kw'>end</span></pre>
@@ -2619,20 +2592,20 @@
<tr>
<td>
<pre class="lines">
-144
-145
-146
-147
-148
-149
-150</pre>
+122
+123
+124
+125
+126
+127
+128</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 144</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 122</span>
<span class='kw'>def</span> <span class='id identifier rubyid_has_private_key?'>has_private_key?</span>
<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>
<span class='kw'>true</span>
<span class='kw'>else</span>
@@ -2681,16 +2654,16 @@
<tr>
<td>
<pre class="lines">
-90
-91
-92</pre>
+68
+69
+70</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 90</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 68</span>
<span class='kw'>def</span> <span class='id identifier rubyid_hexserial'>hexserial</span>
<span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_serial'>serial</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='lparen'>(</span><span class='int'>16</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
@@ -2708,11 +2681,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's InhibitAnyPolicy extension as an R509 extension</p>
+<p>Returns this object's InhibitAnyPolicy extension as an R509 extension</p>
<p>if this cert does not have a InhibitAnyPolicy extension.</p>
</div>
@@ -2742,16 +2715,16 @@
<tr>
<td>
<pre class="lines">
-383
-384
-385</pre>
+288
+289
+290</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 383</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 288</span>
<span class='kw'>def</span> <span class='id identifier rubyid_inhibit_any_policy'>inhibit_any_policy</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -2769,13 +2742,13 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Checks the given CRL for this certificate's serial number. Note that this
-does NOT check to verify that the CRL you're checking is signed by the same
-CA as the cert so do that check yourself</p>
+<p>Checks the given CRL for this certificate's serial number. Note that
+this does NOT check to verify that the CRL you're checking is signed by
+the same CA as the cert so do that check yourself</p>
</div>
</div>
<div class="tags">
@@ -2818,16 +2791,16 @@
<tr>
<td>
<pre class="lines">
-262
-263
-264</pre>
+167
+168
+169</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 262</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 167</span>
<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>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -2836,20 +2809,25 @@
</div>
<div class="method_details ">
<h3 class="signature " id="key_algorithm-instance_method">
- - (<tt>Symbol</tt>) <strong>key_algorithm</strong>
+ - (<tt>String</tt>) <strong>key_algorithm</strong>
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#key_algorithm-instance_method" title="R509::Helpers#key_algorithm (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
-<p>Returns key algorithm (RSA, DSA, EC)</p>
+<p>Returns key algorithm (RSA/DSA/EC)</p>
</div>
</div>
<div class="tags">
@@ -2858,55 +2836,25 @@
<ul class="return">
<li>
- <span class='type'>(<tt>Symbol</tt>)</span>
+ <span class='type'>(<tt>String</tt>)</span>
—
<div class='inline'>
-<p>value of the key algorithm. :rsa, :dsa, :ec</p>
+<p>value of the key algorithm.</p>
</div>
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-220
-221
-222
-223
-224
-225
-226
-227
-228</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 220</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_key_algorithm'>key_algorithm</span>
- <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_rsa?'>rsa?</span>
- <span class='symbol'>:rsa</span>
- <span class='kw'>elsif</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dsa?'>dsa?</span>
- <span class='symbol'>:dsa</span>
- <span class='kw'>elsif</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ec?'>ec?</span>
- <span class='symbol'>:ec</span>
- <span class='kw'>end</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="key_usage-instance_method">
- (<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>
@@ -2920,11 +2868,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's KeyUsage extension as an R509 extension</p>
+<p>Returns this object's KeyUsage extension as an R509 extension</p>
<p>if this cert does not have a KeyUsage extension.</p>
</div>
@@ -2954,16 +2902,16 @@
<tr>
<td>
<pre class="lines">
-305
-306
-307</pre>
+210
+211
+212</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 305</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 210</span>
<span class='kw'>def</span> <span class='id identifier rubyid_key_usage'>key_usage</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -2981,11 +2929,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's NameConstraints extension as an R509 extension</p>
+<p>Returns this object's NameConstraints extension as an R509 extension</p>
<p>if this cert does not have a NameConstraints extension.</p>
</div>
@@ -3015,16 +2963,16 @@
<tr>
<td>
<pre class="lines">
-399
-400
-401</pre>
+304
+305
+306</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 399</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 304</span>
<span class='kw'>def</span> <span class='id identifier rubyid_name_constraints'>name_constraints</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -3074,16 +3022,16 @@
<tr>
<td>
<pre class="lines">
-97
-98
-99</pre>
+75
+76
+77</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 97</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 75</span>
<span class='kw'>def</span> <span class='id identifier rubyid_not_after'>not_after</span>
<span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_not_after'>not_after</span>
<span class='kw'>end</span></pre>
</td>
@@ -3133,16 +3081,16 @@
<tr>
<td>
<pre class="lines">
-76
-77
-78</pre>
+54
+55
+56</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 76</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 54</span>
<span class='kw'>def</span> <span class='id identifier rubyid_not_before'>not_before</span>
<span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_not_before'>not_before</span>
<span class='kw'>end</span></pre>
</td>
@@ -3193,16 +3141,16 @@
<tr>
<td>
<pre class="lines">
-367
-368
-369</pre>
+272
+273
+274</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 367</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 272</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ocsp_no_check?'>ocsp_no_check?</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -3220,11 +3168,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's PolicyConstraints extension as an R509 extension</p>
+<p>Returns this object's PolicyConstraints extension as an R509 extension</p>
<p>if this cert does not have a PolicyConstraints extension.</p>
</div>
@@ -3254,16 +3202,16 @@
<tr>
<td>
<pre class="lines">
-391
-392
-393</pre>
+296
+297
+298</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 391</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 296</span>
<span class='kw'>def</span> <span class='id identifier rubyid_policy_constraints'>policy_constraints</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -3313,16 +3261,16 @@
<tr>
<td>
<pre class="lines">
-104
-105
-106</pre>
+82
+83
+84</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 104</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 82</span>
<span class='kw'>def</span> <span class='id identifier rubyid_public_key'>public_key</span>
<span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span>
<span class='kw'>end</span></pre>
</td>
@@ -3337,10 +3285,15 @@
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#rsa%3F-instance_method" title="R509::Helpers#rsa? (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
<p>Returns whether the public key is RSA</p>
@@ -3366,30 +3319,12 @@
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-167
-168
-169</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 167</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_rsa?'>rsa?</span>
- <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>RSA</span><span class='rparen'>)</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="serial-instance_method">
- (<tt>Integer</tt>) <strong>serial</strong>
@@ -3426,16 +3361,16 @@
<tr>
<td>
<pre class="lines">
-83
-84
-85</pre>
+61
+62
+63</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 83</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 61</span>
<span class='kw'>def</span> <span class='id identifier rubyid_serial'>serial</span>
<span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_serial'>serial</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
<span class='kw'>end</span></pre>
</td>
@@ -3486,16 +3421,16 @@
<tr>
<td>
<pre class="lines">
-213
-214
-215</pre>
+145
+146
+147</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 213</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 145</span>
<span class='kw'>def</span> <span class='id identifier rubyid_signature_algorithm'>signature_algorithm</span>
<span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_signature_algorithm'>signature_algorithm</span>
<span class='kw'>end</span></pre>
</td>
@@ -3517,11 +3452,12 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's SubjectAlternativeName extension as an R509 extension</p>
+<p>Returns this object's SubjectAlternativeName extension as an R509
+extension</p>
<p>if this cert does not have a SubjectAlternativeName extension.</p>
</div>
@@ -3551,16 +3487,16 @@
<tr>
<td>
<pre class="lines">
-339
-340
-341</pre>
+244
+245
+246</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 339</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 244</span>
<span class='kw'>def</span> <span class='id identifier rubyid_subject_alternative_name'>subject_alternative_name</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -3578,11 +3514,12 @@
</h3><div class="docstring">
<div class="discussion">
-<p>Returns this object's SubjectKeyIdentifier extension as an R509 extension</p>
+<p>Returns this object's SubjectKeyIdentifier extension as an R509
+extension</p>
<p>if this cert does not have a SubjectKeyIdentifier extension.</p>
</div>
@@ -3612,16 +3549,16 @@
<tr>
<td>
<pre class="lines">
-323
-324
-325</pre>
+228
+229
+230</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 323</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 228</span>
<span class='kw'>def</span> <span class='id identifier rubyid_subject_key_identifier'>subject_key_identifier</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -3636,14 +3573,19 @@
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#to_der-instance_method" title="R509::Helpers#to_der (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
-<p>Converts the Cert into the DER format</p>
+<p>Converts the object into DER format</p>
</div>
</div>
<div class="tags">
@@ -3658,59 +3600,38 @@
—
<div class='inline'>
-<p>the Cert converted into DER format.</p>
+<p>the object converted into DER format.</p>
</div>
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-67
-68
-69
-70
-71</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 67</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_to_der'>to_der</span>
- <span class='kw'>if</span> <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>X509</span><span class='op'>::</span><span class='const'>Certificate</span><span class='rparen'>)</span>
- <span class='kw'>return</span> <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_to_der'>to_der</span>
- <span class='kw'>end</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="to_pem-instance_method">
- (<tt>String</tt>) <strong>to_pem</strong>
- <span class="aliases">Also known as:
- <span class="names"><span id='to_s-instance_method'>to_s</span></span>
- </span>
-
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#to_pem-instance_method" title="R509::Helpers#to_pem (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
-<p>Converts the Cert into the PEM format</p>
+<p>Converts the object into PEM format</p>
</div>
</div>
<div class="tags">
@@ -3725,41 +3646,19 @@
—
<div class='inline'>
-<p>the Cert converted into PEM format.</p>
+<p>the object converted into PEM format.</p>
</div>
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-56
-57
-58
-59
-60</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 56</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_to_pem'>to_pem</span>
- <span class='kw'>if</span> <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>X509</span><span class='op'>::</span><span class='const'>Certificate</span><span class='rparen'>)</span>
- <span class='kw'>return</span> <span class='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_to_pem'>to_pem</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
- <span class='kw'>end</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="unknown_extensions-instance_method">
- (<tt>Array</tt>) <strong>unknown_extensions</strong>
@@ -3802,16 +3701,16 @@
<tr>
<td>
<pre class="lines">
-285
-286
-287</pre>
+190
+191
+192</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 285</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 190</span>
<span class='kw'>def</span> <span class='id identifier rubyid_unknown_extensions'>unknown_extensions</span>
<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>
<span class='kw'>end</span></pre>
</td>
@@ -3857,16 +3756,16 @@
<tr>
<td>
<pre class="lines">
-123
-124
-125</pre>
+101
+102
+103</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 123</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 101</span>
<span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span>
<span class='id identifier rubyid_valid_at?'>valid_at?</span><span class='lparen'>(</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
@@ -3932,24 +3831,24 @@
<tr>
<td>
<pre class="lines">
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141</pre>
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 131</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 109</span>
<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>
<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>
<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>
<span class='kw'>end</span>
@@ -3972,14 +3871,19 @@
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#write_der-instance_method" title="R509::Helpers#write_der (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
-<p>Writes the Cert into the DER format</p>
+<p>Writes the object into DER format</p>
</div>
</div>
<div class="tags">
@@ -3995,53 +3899,40 @@
—
<div class='inline'>
-<p>Either a string of the path for the file that you'd like to write, or an
-IO-like object.</p>
+<p>Either a string of the path for the file that you'd like to write, or
+an IO-like object.</p>
</div>
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-240
-241
-242</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 240</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_write_der'>write_der</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='rparen'>)</span>
- <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='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_to_der'>to_der</span><span class='rparen'>)</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="write_pem-instance_method">
- (<tt>Object</tt>) <strong>write_pem</strong>(filename_or_io)
+ <span class="not_defined_here">
+ Originally defined in module
+ <span class='object_link'><a href="Helpers.html#write_pem-instance_method" title="R509::Helpers#write_pem (method)">Helpers</a></span>
+ </span>
+
</h3><div class="docstring">
<div class="discussion">
-<p>Writes the Cert into the PEM format</p>
+<p>Writes the object into PEM format</p>
</div>
</div>
<div class="tags">
@@ -4057,44 +3948,26 @@
—
<div class='inline'>
-<p>Either a string of the path for the file that you'd like to write, or an
-IO-like object.</p>
+<p>Either a string of the path for the file that you'd like to write, or
+an IO-like object.</p>
</div>
</li>
</ul>
-</div><table class="source_code">
- <tr>
- <td>
- <pre class="lines">
-
-
-233
-234
-235</pre>
- </td>
- <td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 233</span>
-
-<span class='kw'>def</span> <span class='id identifier rubyid_write_pem'>write_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='rparen'>)</span>
- <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='ivar'>@cert</span><span class='period'>.</span><span class='id identifier rubyid_to_pem'>to_pem</span><span class='rparen'>)</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
</div>
+</div>
<div class="method_details ">
<h3 class="signature " id="write_pkcs12-instance_method">
- - (<tt>Object</tt>) <strong>write_pkcs12</strong>(filename_or_io, password, friendly_name = 'r509 pkcs12')
+ - (<tt>Object</tt>) <strong>write_pkcs12</strong>(filename_or_io, password, friendly_name = 'r509 pkcs12')
@@ -4120,12 +3993,12 @@
—
<div class='inline'>
-<p>Either a string of the path for the file that you'd like to write, or an
-IO-like object.</p>
+<p>Either a string of the path for the file that you'd like to write, or
+an IO-like object.</p>
</div>
</li>
<li>
@@ -4150,17 +4023,17 @@
<span class='type'>(<tt>String</tt>)</span>
- <em class="default">(defaults to: <tt>'r509 pkcs12'</tt>)</em>
+ <em class="default">(defaults to: <tt>'r509 pkcs12'</tt>)</em>
—
<div class='inline'>
<p>An optional string to encode in the PKCS12 for friendlyName. defaults to
-"r509 pkcs12"</p>
+“r509 pkcs12”</p>
</div>
</li>
</ul>
@@ -4170,22 +4043,22 @@
<tr>
<td>
<pre class="lines">
-249
-250
-251
-252
-253
-254
-255</pre>
+154
+155
+156
+157
+158
+159
+160</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 249</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert.rb', line 154</span>
-<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'>'</span><span class='tstring_content'>r509 pkcs12</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
+<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'>'</span><span class='tstring_content'>r509 pkcs12</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
<span class='kw'>if</span> <span class='ivar'>@key</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>R509Error</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Writing a PKCS12 requires both key and cert</span><span class='tstring_end'>"</span></span>
<span class='kw'>end</span>
<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>
<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>
@@ -4198,12 +4071,12 @@
</div>
</div>
<div id="footer">
- Generated on Tue Apr 23 10:46:04 2013 by
+ Generated on Sun Jan 26 13:37:26 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.8.5 (ruby-1.9.3).
+ 0.8.6.1 (ruby-2.0.0).
</div>
</body>
</html>
\ No newline at end of file