doc/R509/Config/CAConfig.html in r509-0.10.0 vs doc/R509/Config/CAConfig.html in r509-1.0
- old
+ new
@@ -1,106 +1,108 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<!DOCTYPE html>
+<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: R509::Config::CAConfig
- — Documentation by YARD 0.8.6.1
+ — Documentation by YARD 0.9.5
</title>
<link rel="stylesheet" href="../../css/style.css" type="text/css" 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;
+ pathId = "R509::Config::CAConfig";
relpath = '../../';
- framesUrl = "../../frames.html#!" + escape(window.location.href);
</script>
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
</head>
<body>
- <div id="header">
- <div id="menu">
+ <div class="nav_wrap">
+ <iframe id="nav" src="../../class_list.html"></iframe>
+ <div id="resizer"></div>
+ </div>
+
+ <div id="main" tabindex="-1">
+ <div id="header">
+ <div id="menu">
<a href="../../_index.html">Index (C)</a> »
<span class='title'><span class='object_link'><a href="../../R509.html" title="R509 (module)">R509</a></span></span> » <span class='title'><span class='object_link'><a href="../Config.html" title="R509::Config (module)">Config</a></span></span>
»
<span class="title">CAConfig</span>
-
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>
- <div id="search">
+ <div id="search">
<a class="full_list_link" id="class_list_link"
href="../../class_list.html">
- Class List
+
+ <svg width="24" height="24">
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
+ </svg>
</a>
- <a class="full_list_link" id="method_list_link"
- href="../../method_list.html">
- Method List
- </a>
-
- <a class="full_list_link" id="file_list_link"
- href="../../file_list.html">
- File List
- </a>
-
</div>
- <div class="clear"></div>
- </div>
+ <div class="clear"></div>
+ </div>
- <iframe id="search_frame"></iframe>
+ <iframe id="search_frame" src="../../class_list.html"></iframe>
- <div id="content"><h1>Class: R509::Config::CAConfig
+ <div id="content"><h1>Class: R509::Config::CAConfig
</h1>
-
-<dl class="box">
+<div class="box_info">
- <dt class="r1">Inherits:</dt>
- <dd class="r1">
+ <dl>
+ <dt>Inherits:</dt>
+ <dd>
<span class="inheritName">Object</span>
<ul class="fullTree">
<li>Object</li>
<li class="next">R509::Config::CAConfig</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
- </dd>
-
+ </dd>
+ </dl>
+
-
-
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/r509/config/ca_config.rb</dd>
+
-</dl>
-<div class="clear"></div>
+
+ <dl>
+ <dt>Defined in:</dt>
+ <dd>lib/r509/config/ca_config.rb</dd>
+ </dl>
+
+</div>
+
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>Stores a configuration for our CA.</p>
@@ -110,15 +112,14 @@
<div class="tags">
</div>
<h2>Constant Summary</h2>
-
- <dl class="constants">
-
- <dt id="DEFAULT_OCSP_START_SKEW_SECONDS-constant" class="">DEFAULT_OCSP_START_SKEW_SECONDS =
- <div class="docstring">
+ <dl class="constants">
+
+ <dt id="DEFAULT_OCSP_START_SKEW_SECONDS-constant" class="">DEFAULT_OCSP_START_SKEW_SECONDS =
+ <div class="docstring">
<div class="discussion">
<p>Default number of seconds to subtract from now when calculating the signing
time of an OCSP response</p>
@@ -127,15 +128,15 @@
</div>
<div class="tags">
</div>
- </dt>
- <dd><pre class="code"><span class='int'>3600</span></pre></dd>
-
- <dt id="DEFAULT_OCSP_VALIDITY_HOURS-constant" class="">DEFAULT_OCSP_VALIDITY_HOURS =
- <div class="docstring">
+ </dt>
+ <dd><pre class="code"><span class='int'>3600</span></pre></dd>
+
+ <dt id="DEFAULT_OCSP_VALIDITY_HOURS-constant" class="">DEFAULT_OCSP_VALIDITY_HOURS =
+ <div class="docstring">
<div class="discussion">
<p>Default number of hours an OCSP response should be valid for</p>
@@ -143,15 +144,15 @@
</div>
<div class="tags">
</div>
- </dt>
- <dd><pre class="code"><span class='int'>168</span></pre></dd>
-
- <dt id="DEFAULT_CRL_VALIDITY_HOURS-constant" class="">DEFAULT_CRL_VALIDITY_HOURS =
- <div class="docstring">
+ </dt>
+ <dd><pre class="code"><span class='int'>168</span></pre></dd>
+
+ <dt id="DEFAULT_CRL_VALIDITY_HOURS-constant" class="">DEFAULT_CRL_VALIDITY_HOURS =
+ <div class="docstring">
<div class="discussion">
<p>Default number of hours a CRL should be valid for</p>
@@ -159,15 +160,15 @@
</div>
<div class="tags">
</div>
- </dt>
- <dd><pre class="code"><span class='int'>168</span></pre></dd>
-
- <dt id="DEFAULT_CRL_START_SKEW_SECONDS-constant" class="">DEFAULT_CRL_START_SKEW_SECONDS =
- <div class="docstring">
+ </dt>
+ <dd><pre class="code"><span class='int'>168</span></pre></dd>
+
+ <dt id="DEFAULT_CRL_START_SKEW_SECONDS-constant" class="">DEFAULT_CRL_START_SKEW_SECONDS =
+ <div class="docstring">
<div class="discussion">
<p>Default number of seconds to subtract from now when calculating the signing
time of a CRL</p>
@@ -176,26 +177,25 @@
</div>
<div class="tags">
</div>
- </dt>
- <dd><pre class="code"><span class='int'>3600</span></pre></dd>
-
- </dl>
-
+ </dt>
+ <dd><pre class="code"><span class='int'>3600</span></pre></dd>
+
+ </dl>
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#ca_cert-instance_method" title="#ca_cert (instance method)">- (Object) <strong>ca_cert</strong> </a>
+ <a href="#ca_cert-instance_method" title="#ca_cert (instance method)">#<strong>ca_cert</strong> ⇒ Object </a>
</span>
@@ -220,11 +220,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#crl_list_file-instance_method" title="#crl_list_file (instance method)">- (Object) <strong>crl_list_file</strong> </a>
+ <a href="#crl_list_file-instance_method" title="#crl_list_file (instance method)">#<strong>crl_list_file</strong> ⇒ Object </a>
</span>
@@ -249,11 +249,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#crl_md-instance_method" title="#crl_md (instance method)">- (Object) <strong>crl_md</strong> </a>
+ <a href="#crl_md-instance_method" title="#crl_md (instance method)">#<strong>crl_md</strong> ⇒ Object </a>
</span>
@@ -278,11 +278,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#crl_number_file-instance_method" title="#crl_number_file (instance method)">- (Object) <strong>crl_number_file</strong> </a>
+ <a href="#crl_number_file-instance_method" title="#crl_number_file (instance method)">#<strong>crl_number_file</strong> ⇒ Object </a>
</span>
@@ -307,11 +307,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#crl_start_skew_seconds-instance_method" title="#crl_start_skew_seconds (instance method)">- (Object) <strong>crl_start_skew_seconds</strong> </a>
+ <a href="#crl_start_skew_seconds-instance_method" title="#crl_start_skew_seconds (instance method)">#<strong>crl_start_skew_seconds</strong> ⇒ Object </a>
</span>
@@ -336,11 +336,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#crl_validity_hours-instance_method" title="#crl_validity_hours (instance method)">- (Object) <strong>crl_validity_hours</strong> </a>
+ <a href="#crl_validity_hours-instance_method" title="#crl_validity_hours (instance method)">#<strong>crl_validity_hours</strong> ⇒ Object </a>
</span>
@@ -365,11 +365,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#ocsp_chain-instance_method" title="#ocsp_chain (instance method)">- (Object) <strong>ocsp_chain</strong> </a>
+ <a href="#ocsp_chain-instance_method" title="#ocsp_chain (instance method)">#<strong>ocsp_chain</strong> ⇒ Object </a>
</span>
@@ -394,11 +394,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#ocsp_start_skew_seconds-instance_method" title="#ocsp_start_skew_seconds (instance method)">- (Object) <strong>ocsp_start_skew_seconds</strong> </a>
+ <a href="#ocsp_start_skew_seconds-instance_method" title="#ocsp_start_skew_seconds (instance method)">#<strong>ocsp_start_skew_seconds</strong> ⇒ Object </a>
</span>
@@ -423,11 +423,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#ocsp_validity_hours-instance_method" title="#ocsp_validity_hours (instance method)">- (Object) <strong>ocsp_validity_hours</strong> </a>
+ <a href="#ocsp_validity_hours-instance_method" title="#ocsp_validity_hours (instance method)">#<strong>ocsp_validity_hours</strong> ⇒ Object </a>
</span>
@@ -457,19 +457,19 @@
<h2>
Class Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+ <small><a href="#" class="summary_toggle">collapse</a></small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#from_yaml-class_method" title="from_yaml (class method)">+ (Object) <strong>from_yaml</strong>(conf_name, yaml_data, opts = {}) </a>
+ <a href="#from_yaml-class_method" title="from_yaml (class method)">.<strong>from_yaml</strong>(conf_name, yaml_data, opts = {}) ⇒ Object </a>
</span>
@@ -489,11 +489,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#load_from_hash-class_method" title="load_from_hash (class method)">+ (Object) <strong>load_from_hash</strong>(conf, opts = {}) </a>
+ <a href="#load_from_hash-class_method" title="load_from_hash (class method)">.<strong>load_from_hash</strong>(conf, opts = {}) ⇒ Object </a>
</span>
@@ -513,11 +513,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#load_profiles-class_method" title="load_profiles (class method)">+ (Hash) <strong>load_profiles</strong>(profiles) </a>
+ <a href="#load_profiles-class_method" title="load_profiles (class method)">.<strong>load_profiles</strong>(profiles) ⇒ Hash </a>
</span>
@@ -537,11 +537,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#load_yaml-class_method" title="load_yaml (class method)">+ (Object) <strong>load_yaml</strong>(conf_name, yaml_file, opts = {}) </a>
+ <a href="#load_yaml-class_method" title="load_yaml (class method)">.<strong>load_yaml</strong>(conf_name, yaml_file, opts = {}) ⇒ Object </a>
</span>
@@ -562,19 +562,19 @@
</ul>
<h2>
Instance Method Summary
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+ <small><a href="#" class="summary_toggle">collapse</a></small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#crl_cert-instance_method" title="#crl_cert (instance method)">- (R509::Cert) <strong>crl_cert</strong> </a>
+ <a href="#crl_cert-instance_method" title="#crl_cert (instance method)">#<strong>crl_cert</strong> ⇒ R509::Cert </a>
</span>
@@ -594,11 +594,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (CAConfig) <strong>initialize</strong>(opts = {}) </a>
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) ⇒ CAConfig </a>
</span>
@@ -620,11 +620,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#num_profiles-instance_method" title="#num_profiles (instance method)">- (Integer) <strong>num_profiles</strong> </a>
+ <a href="#num_profiles-instance_method" title="#num_profiles (instance method)">#<strong>num_profiles</strong> ⇒ Integer </a>
</span>
@@ -644,11 +644,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#ocsp_cert-instance_method" title="#ocsp_cert (instance method)">- (R509::Cert) <strong>ocsp_cert</strong> </a>
+ <a href="#ocsp_cert-instance_method" title="#ocsp_cert (instance method)">#<strong>ocsp_cert</strong> ⇒ R509::Cert </a>
</span>
@@ -668,11 +668,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#profile-instance_method" title="#profile (instance method)">- (R509::Config::CertProfile) <strong>profile</strong>(prof) </a>
+ <a href="#profile-instance_method" title="#profile (instance method)">#<strong>profile</strong>(prof) ⇒ R509::Config::CertProfile </a>
</span>
@@ -692,11 +692,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#set_profile-instance_method" title="#set_profile (instance method)">- (Object) <strong>set_profile</strong>(name, prof) </a>
+ <a href="#set_profile-instance_method" title="#set_profile (instance method)">#<strong>set_profile</strong>(name, prof) ⇒ Object </a>
</span>
@@ -714,11 +714,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#to_h-instance_method" title="#to_h (instance method)">- (Hash) <strong>to_h</strong> </a>
+ <a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Hash </a>
</span>
@@ -736,11 +736,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#to_yaml-instance_method" title="#to_yaml (instance method)">- (YAML) <strong>to_yaml</strong> </a>
+ <a href="#to_yaml-instance_method" title="#to_yaml (instance method)">#<strong>to_yaml</strong> ⇒ YAML </a>
</span>
@@ -766,20 +766,20 @@
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
- - (<tt><span class='object_link'><a href="" title="R509::Config::CAConfig (class)">CAConfig</a></span></tt>) <strong>initialize</strong>(opts = {})
+ #<strong>initialize</strong>(opts = {}) ⇒ <tt><span class='object_link'><a href="" title="R509::Config::CAConfig (class)">CAConfig</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>A new instance of CAConfig</p>
+<p>Returns a new instance of CAConfig</p>
</div>
</div>
<div class="tags">
@@ -811,10 +811,76 @@
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
<ul class="option">
<li>
+ <span class="name">:ca_cert</span>
+ <span class="type">(<tt><span class='object_link'><a href="../Cert.html" title="R509::Cert (class)">R509::Cert</a></span></tt>)</span>
+ <span class="default">
+
+ </span>
+
+ — <div class='inline'>
+<p>Cert+Key pair</p>
+</div>
+
+ </li>
+
+ <li>
+ <span class="name">:crl_validity_hours</span>
+ <span class="type">(<tt>Integer</tt>)</span>
+ <span class="default">
+
+ — default:
+ <tt>168</tt>
+
+ </span>
+
+ — <div class='inline'>
+<p>The number of hours that a CRL will be valid. Defaults to 7 days.</p>
+</div>
+
+ </li>
+
+ <li>
+ <span class="name">:profiles</span>
+ <span class="type">(<tt>Hash<String, <span class='object_link'><a href="CertProfile.html" title="R509::Config::CertProfile (class)">R509::Config::CertProfile</a></span>></tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ <li>
+ <span class="name">:crl_number_file</span>
+ <span class="type">(<tt>String</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ — <div class='inline'>
+<p>A file to save the CRL number into. This is only used if you use the
+default FileReaderWriter in CRL::Administrator</p>
+</div>
+
+ </li>
+
+ <li>
+ <span class="name">:crl_md</span>
+ <span class="type">(<tt>String</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ — <div class='inline'>
+<p>Optional digest for signing CRLs. sha1, sha224, sha256, sha384, sha512,
+md5. Defaults to R509::MessageDigest::DEFAULT_MD</p>
+</div>
+
+ </li>
+
+ <li>
<span class="name">:crl_list_file</span>
<span class="type">(<tt>String</tt>)</span>
<span class="default">
</span>
@@ -946,37 +1012,33 @@
112
113
114
115
116
-117
-118
-119</pre>
+117</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 99</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_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:ca_cert</span><span class='rparen'>)</span> <span class='kw'>then</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'>unless</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:ca_cert</span><span class='rparen'>)</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Config object requires that you pass :ca_cert</span><span class='tstring_end'>'</span></span>
<span class='kw'>end</span>
<span class='ivar'>@ca_cert</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:ca_cert</span><span class='rbracket'>]</span>
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='ivar'>@ca_cert</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'>Cert</span><span class='rparen'>)</span> <span class='kw'>then</span>
+ <span class='kw'>unless</span> <span class='ivar'>@ca_cert</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='rparen'>)</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>:ca_cert must be of type R509::Cert</span><span class='tstring_end'>'</span></span>
<span class='kw'>end</span>
<span class='id identifier rubyid_parse_ocsp_data'>parse_ocsp_data</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
<span class='id identifier rubyid_parse_crl_data'>parse_crl_data</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
<span class='ivar'>@profiles</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:profiles</span><span class='rbracket'>]</span>
- <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:profiles</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_prof'>prof</span><span class='op'>|</span>
- <span class='id identifier rubyid_set_profile'>set_profile</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
- <span class='kw'>end</span>
- <span class='kw'>end</span>
+ <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:profiles</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_prof'>prof</span><span class='op'>|</span>
+ <span class='id identifier rubyid_set_profile'>set_profile</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
+ <span class='kw'>end</span> <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:profiles</span><span class='rbracket'>]</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -989,11 +1051,11 @@
<span id=""></span>
<div class="method_details first">
<h3 class="signature first" id="ca_cert-instance_method">
- - (<tt>Object</tt>) <strong>ca_cert</strong> <span class="extras">(readonly)</span>
+ #<strong>ca_cert</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -1032,11 +1094,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="crl_list_file-instance_method">
- - (<tt>Object</tt>) <strong>crl_list_file</strong> <span class="extras">(readonly)</span>
+ #<strong>crl_list_file</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -1075,11 +1137,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="crl_md-instance_method">
- - (<tt>Object</tt>) <strong>crl_md</strong> <span class="extras">(readonly)</span>
+ #<strong>crl_md</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -1118,11 +1180,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="crl_number_file-instance_method">
- - (<tt>Object</tt>) <strong>crl_number_file</strong> <span class="extras">(readonly)</span>
+ #<strong>crl_number_file</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -1161,11 +1223,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="crl_start_skew_seconds-instance_method">
- - (<tt>Object</tt>) <strong>crl_start_skew_seconds</strong> <span class="extras">(readonly)</span>
+ #<strong>crl_start_skew_seconds</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -1204,11 +1266,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="crl_validity_hours-instance_method">
- - (<tt>Object</tt>) <strong>crl_validity_hours</strong> <span class="extras">(readonly)</span>
+ #<strong>crl_validity_hours</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -1247,11 +1309,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="ocsp_chain-instance_method">
- - (<tt>Object</tt>) <strong>ocsp_chain</strong> <span class="extras">(readonly)</span>
+ #<strong>ocsp_chain</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -1290,11 +1352,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="ocsp_start_skew_seconds-instance_method">
- - (<tt>Object</tt>) <strong>ocsp_start_skew_seconds</strong> <span class="extras">(readonly)</span>
+ #<strong>ocsp_start_skew_seconds</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -1333,11 +1395,11 @@
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="ocsp_validity_hours-instance_method">
- - (<tt>Object</tt>) <strong>ocsp_validity_hours</strong> <span class="extras">(readonly)</span>
+ #<strong>ocsp_validity_hours</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
@@ -1381,11 +1443,11 @@
<div class="method_details first">
<h3 class="signature first" id="from_yaml-class_method">
- + (<tt>Object</tt>) <strong>from_yaml</strong>(conf_name, yaml_data, opts = {})
+ .<strong>from_yaml</strong>(conf_name, yaml_data, opts = {}) ⇒ <tt>Object</tt>
@@ -1461,11 +1523,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="load_from_hash-class_method">
- + (<tt>Object</tt>) <strong>load_from_hash</strong>(conf, opts = {})
+ .<strong>load_from_hash</strong>(conf, opts = {}) ⇒ <tt>Object</tt>
@@ -1547,10 +1609,12 @@
<tr>
<td>
<pre class="lines">
+182
+183
184
185
186
187
188
@@ -1590,55 +1654,53 @@
222
223
224
225
226
-227
-228
-229</pre>
+227</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 184</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 182</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_from_hash'>load_from_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
<span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>conf not found</span><span class='tstring_end'>"</span></span>
<span class='kw'>end</span>
- <span class='kw'>unless</span> <span class='id identifier rubyid_conf'>conf</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='kw'>unless</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>conf must be a Hash</span><span class='tstring_end'>"</span></span>
<span class='kw'>end</span>
<span class='id identifier rubyid_ca_root_path'>ca_root_path</span> <span class='op'>=</span> <span class='const'>Pathname</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'>:ca_root_path</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_getwd'>getwd</span><span class='rparen'>)</span>
<span class='kw'>unless</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_directory?'>directory?</span><span class='lparen'>(</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>R509Error</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ca_root_path is not a directory: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
<span class='kw'>end</span>
- <span class='id identifier rubyid_ca_cert'>ca_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ca_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_ca_cert'>ca_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ca_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_ocsp_cert'>ocsp_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_ocsp_cert'>ocsp_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_crl_cert'>crl_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_crl_cert'>crl_cert</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_ca_cert'>load_ca_cert</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_cert</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_ocsp_chain'>ocsp_chain</span> <span class='op'>=</span> <span class='id identifier rubyid_build_ocsp_chain'>build_ocsp_chain</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_chain</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_ocsp_chain'>ocsp_chain</span> <span class='op'>=</span> <span class='id identifier rubyid_build_ocsp_chain'>build_ocsp_chain</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_chain</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_ca_root_path'>ca_root_path</span><span class='rparen'>)</span>
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span>
<span class='symbol'>:ca_cert</span> <span class='op'>=></span> <span class='id identifier rubyid_ca_cert'>ca_cert</span><span class='comma'>,</span>
<span class='symbol'>:ocsp_cert</span> <span class='op'>=></span> <span class='id identifier rubyid_ocsp_cert'>ocsp_cert</span><span class='comma'>,</span>
<span class='symbol'>:crl_cert</span> <span class='op'>=></span> <span class='id identifier rubyid_crl_cert'>crl_cert</span><span class='comma'>,</span>
<span class='symbol'>:ocsp_chain</span> <span class='op'>=></span> <span class='id identifier rubyid_ocsp_chain'>ocsp_chain</span><span class='comma'>,</span>
<span class='symbol'>:crl_validity_hours</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_validity_hours</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
<span class='symbol'>:ocsp_validity_hours</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_validity_hours</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
<span class='symbol'>:ocsp_start_skew_seconds</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ocsp_start_skew_seconds</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:crl_md</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_md</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:crl_md</span> <span class='op'>=></span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_md</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
<span class='rbrace'>}</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_list_file</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_list_file</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:crl_list_file</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span> <span class='op'>+</span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_list_file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
<span class='kw'>end</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_number_file</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_conf'>conf</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_number_file</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:crl_number_file</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_ca_root_path'>ca_root_path</span> <span class='op'>+</span> <span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>crl_number_file</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
<span class='kw'>end</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:profiles</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_profiles'>load_profiles</span><span class='lparen'>(</span><span class='id identifier rubyid_conf'>conf</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>profiles</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
@@ -1651,11 +1713,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="load_profiles-class_method">
- + (<tt>Hash</tt>) <strong>load_profiles</strong>(profiles)
+ .<strong>load_profiles</strong>(profiles) ⇒ <tt>Hash</tt>
@@ -1712,10 +1774,12 @@
<tr>
<td>
<pre class="lines">
+233
+234
235
236
237
238
239
@@ -1736,31 +1800,33 @@
254
255
256</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 235</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 233</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_profiles'>load_profiles</span><span class='lparen'>(</span><span class='id identifier rubyid_profiles'>profiles</span><span class='rparen'>)</span>
<span class='id identifier rubyid_profs'>profs</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
- <span class='id identifier rubyid_profiles'>profiles</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_profile'>profile</span><span class='comma'>,</span><span class='id identifier rubyid_data'>data</span><span class='op'>|</span>
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>subject_item_policy</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
+ <span class='id identifier rubyid_profiles'>profiles</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_profile'>profile</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='op'>|</span>
+ <span class='kw'>unless</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>subject_item_policy</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
<span class='id identifier rubyid_subject_item_policy'>subject_item_policy</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Config</span><span class='op'>::</span><span class='const'>SubjectItemPolicy</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>subject_item_policy</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
<span class='kw'>end</span>
- <span class='id identifier rubyid_profs'>profs</span><span class='lbracket'>[</span><span class='id identifier rubyid_profile'>profile</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Config</span><span class='op'>::</span><span class='const'>CertProfile</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:key_usage</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>key_usage</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:extended_key_usage</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>extended_key_usage</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:basic_constraints</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>basic_constraints</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:certificate_policies</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>certificate_policies</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:ocsp_no_check</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ocsp_no_check</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:inhibit_any_policy</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>inhibit_any_policy</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:policy_constraints</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>policy_constraints</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:name_constraints</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>name_constraints</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:crl_distribution_points</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_distribution_points</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:authority_info_access</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>authority_info_access</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:default_md</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default_md</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:allowed_mds</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>allowed_mds</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
- <span class='symbol'>:subject_item_policy</span> <span class='op'>=></span> <span class='id identifier rubyid_subject_item_policy'>subject_item_policy</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_profs'>profs</span><span class='lbracket'>[</span><span class='id identifier rubyid_profile'>profile</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Config</span><span class='op'>::</span><span class='const'>CertProfile</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
+ <span class='symbol'>:key_usage</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>key_usage</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:extended_key_usage</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>extended_key_usage</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:basic_constraints</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>basic_constraints</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:certificate_policies</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>certificate_policies</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:ocsp_no_check</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ocsp_no_check</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:inhibit_any_policy</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>inhibit_any_policy</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:policy_constraints</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>policy_constraints</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:name_constraints</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>name_constraints</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:crl_distribution_points</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_distribution_points</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:authority_info_access</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>authority_info_access</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:default_md</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>default_md</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:allowed_mds</span> <span class='op'>=></span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>allowed_mds</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
+ <span class='symbol'>:subject_item_policy</span> <span class='op'>=></span> <span class='id identifier rubyid_subject_item_policy'>subject_item_policy</span>
+ <span class='rparen'>)</span>
<span class='kw'>end</span> <span class='kw'>unless</span> <span class='id identifier rubyid_profiles'>profiles</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
<span class='id identifier rubyid_profs'>profs</span>
<span class='kw'>end</span></pre>
</td>
</tr>
@@ -1768,11 +1834,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="load_yaml-class_method">
- + (<tt>Object</tt>) <strong>load_yaml</strong>(conf_name, yaml_file, opts = {})
+ .<strong>load_yaml</strong>(conf_name, yaml_file, opts = {}) ⇒ <tt>Object</tt>
@@ -1854,20 +1920,20 @@
<div class="method_details first">
<h3 class="signature first" id="crl_cert-instance_method">
- - (<tt><span class='object_link'><a href="../Cert.html" title="R509::Cert (class)">R509::Cert</a></span></tt>) <strong>crl_cert</strong>
+ #<strong>crl_cert</strong> ⇒ <tt><span class='object_link'><a href="../Cert.html" title="R509::Cert (class)">R509::Cert</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Either a custom CRL cert or the ca_cert</p>
+<p>Returns either a custom CRL cert or the ca_cert</p>
</div>
</div>
<div class="tags">
@@ -1895,38 +1961,38 @@
<tr>
<td>
<pre class="lines">
-127
-128
-129</pre>
+125
+126
+127</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 127</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 125</span>
<span class='kw'>def</span> <span class='id identifier rubyid_crl_cert'>crl_cert</span>
- <span class='kw'>if</span> <span class='ivar'>@crl_cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='kw'>then</span> <span class='ivar'>@ca_cert</span> <span class='kw'>else</span> <span class='ivar'>@crl_cert</span> <span class='kw'>end</span>
+ <span class='lparen'>(</span><span class='ivar'>@crl_cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='ivar'>@ca_cert</span> <span class='op'>:</span> <span class='ivar'>@crl_cert</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="num_profiles-instance_method">
- - (<tt>Integer</tt>) <strong>num_profiles</strong>
+ #<strong>num_profiles</strong> ⇒ <tt>Integer</tt>
</h3><div class="docstring">
<div class="discussion">
-<p>The number of profiles</p>
+<p>Returns The number of profiles</p>
</div>
</div>
<div class="tags">
@@ -1954,16 +2020,16 @@
<tr>
<td>
<pre class="lines">
-150
-151
-152</pre>
+148
+149
+150</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 150</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 148</span>
<span class='kw'>def</span> <span class='id identifier rubyid_num_profiles'>num_profiles</span>
<span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span>
<span class='kw'>end</span></pre>
</td>
@@ -1972,20 +2038,20 @@
</div>
<div class="method_details ">
<h3 class="signature " id="ocsp_cert-instance_method">
- - (<tt><span class='object_link'><a href="../Cert.html" title="R509::Cert (class)">R509::Cert</a></span></tt>) <strong>ocsp_cert</strong>
+ #<strong>ocsp_cert</strong> ⇒ <tt><span class='object_link'><a href="../Cert.html" title="R509::Cert (class)">R509::Cert</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Either a custom OCSP cert or the ca_cert</p>
+<p>Returns either a custom OCSP cert or the ca_cert</p>
</div>
</div>
<div class="tags">
@@ -2013,38 +2079,38 @@
<tr>
<td>
<pre class="lines">
-122
-123
-124</pre>
+120
+121
+122</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 122</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 120</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ocsp_cert'>ocsp_cert</span>
- <span class='kw'>if</span> <span class='ivar'>@ocsp_cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='kw'>then</span> <span class='ivar'>@ca_cert</span> <span class='kw'>else</span> <span class='ivar'>@ocsp_cert</span> <span class='kw'>end</span>
+ <span class='lparen'>(</span><span class='ivar'>@ocsp_cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='ivar'>@ca_cert</span> <span class='op'>:</span> <span class='ivar'>@ocsp_cert</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="profile-instance_method">
- - (<tt><span class='object_link'><a href="CertProfile.html" title="R509::Config::CertProfile (class)">R509::Config::CertProfile</a></span></tt>) <strong>profile</strong>(prof)
+ #<strong>profile</strong>(prof) ⇒ <tt><span class='object_link'><a href="CertProfile.html" title="R509::Config::CertProfile (class)">R509::Config::CertProfile</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
-<p>The config profile.</p>
+<p>Returns The config profile.</p>
</div>
</div>
<div class="tags">
@@ -2087,22 +2153,22 @@
<tr>
<td>
<pre class="lines">
+140
+141
142
143
144
-145
-146
-147</pre>
+145</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 142</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 140</span>
<span class='kw'>def</span> <span class='id identifier rubyid_profile'>profile</span><span class='lparen'>(</span><span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
- <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
+ <span class='kw'>unless</span> <span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>R509Error</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>unknown profile '</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_prof'>prof</span><span class='embexpr_end'>}</span><span class='tstring_content'>'</span><span class='tstring_end'>"</span></span>
<span class='kw'>end</span>
<span class='ivar'>@profiles</span><span class='lbracket'>[</span><span class='id identifier rubyid_prof'>prof</span><span class='rbracket'>]</span>
<span class='kw'>end</span></pre>
</td>
@@ -2111,11 +2177,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="set_profile-instance_method">
- - (<tt>Object</tt>) <strong>set_profile</strong>(name, prof)
+ #<strong>set_profile</strong>(name, prof) ⇒ <tt>Object</tt>
@@ -2168,19 +2234,19 @@
<tr>
<td>
<pre class="lines">
+131
+132
133
134
135
-136
-137
-138</pre>
+136</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 133</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 131</span>
<span class='kw'>def</span> <span class='id identifier rubyid_set_profile'>set_profile</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_prof'>prof</span><span class='rparen'>)</span>
<span class='kw'>unless</span> <span class='id identifier rubyid_prof'>prof</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Config</span><span class='op'>::</span><span class='const'>CertProfile</span><span class='rparen'>)</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>TypeError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>profile is supposed to be a R509::Config::CertProfile</span><span class='tstring_end'>"</span></span>
<span class='kw'>end</span>
@@ -2192,11 +2258,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="to_h-instance_method">
- - (<tt>Hash</tt>) <strong>to_h</strong>
+ #<strong>to_h</strong> ⇒ <tt>Hash</tt>
@@ -2226,10 +2292,12 @@
<tr>
<td>
<pre class="lines">
+153
+154
155
156
157
158
159
@@ -2239,16 +2307,14 @@
163
164
165
166
167
-168
-169
-170</pre>
+168</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 155</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 153</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
<span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ca_cert</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_build_cert_hash'>build_cert_hash</span><span class='lparen'>(</span><span class='ivar'>@ca_cert</span><span class='rparen'>)</span>
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ocsp_cert</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_build_cert_hash'>build_cert_hash</span><span class='lparen'>(</span><span class='ivar'>@ocsp_cert</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@ocsp_cert</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
@@ -2259,22 +2325,22 @@
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_start_skew_seconds</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@crl_start_skew_seconds</span>
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_validity_hours</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@crl_validity_hours</span>
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_list_file</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@crl_list_file</span> <span class='kw'>unless</span> <span class='ivar'>@crl_list_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_number_file</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@crl_number_file</span> <span class='kw'>unless</span> <span class='ivar'>@crl_number_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>crl_md</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@crl_md</span>
- <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>profiles</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='ivar'>@profiles</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='rbrace'>}</span> <span class='kw'>unless</span> <span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
+ <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>profiles</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='ivar'>@profiles</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid__k'>_k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='rbrace'>}</span> <span class='kw'>unless</span> <span class='ivar'>@profiles</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
<span class='id identifier rubyid_hash'>hash</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="to_yaml-instance_method">
- - (<tt>YAML</tt>) <strong>to_yaml</strong>
+ #<strong>to_yaml</strong> ⇒ <tt>YAML</tt>
@@ -2304,16 +2370,16 @@
<tr>
<td>
<pre class="lines">
-173
-174
-175</pre>
+171
+172
+173</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 173</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/config/ca_config.rb', line 171</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_yaml'>to_yaml</span>
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span><span class='period'>.</span><span class='id identifier rubyid_to_yaml'>to_yaml</span>
<span class='kw'>end</span></pre>
</td>
@@ -2323,13 +2389,14 @@
</div>
</div>
- <div id="footer">
- Generated on Sun Jan 26 13:37:27 2014 by
+ <div id="footer">
+ Generated on Tue Dec 6 17:27:40 2016 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.8.6.1 (ruby-2.0.0).
+ 0.9.5 (ruby-2.4.0).
</div>
+ </div>
</body>
</html>
\ No newline at end of file