r509-ca-http 0.1 → 0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +18 -18
- data/doc/R509/CertificateAuthority/Http/Factory/CsrFactory.html +11 -11
- data/doc/R509/CertificateAuthority/Http/Factory/SpkiFactory.html +11 -11
- data/doc/R509/CertificateAuthority/Http/Factory.html +9 -9
- data/doc/R509/CertificateAuthority/Http/Server.html +9 -9
- data/doc/R509/CertificateAuthority/Http/SubjectParser.html +22 -22
- data/doc/R509/CertificateAuthority/Http/ValidityPeriodConverter.html +19 -19
- data/doc/R509/CertificateAuthority/Http.html +11 -11
- data/doc/R509/CertificateAuthority.html +6 -6
- data/doc/R509.html +5 -5
- data/doc/_index.html +21 -21
- data/doc/class_list.html +2 -2
- data/doc/css/style.css +10 -0
- data/doc/file.README.html +7 -7
- data/doc/file_list.html +1 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +7 -7
- data/doc/js/full_list.js +6 -1
- data/doc/method_list.html +10 -20
- data/doc/top-level-namespace.html +5 -5
- data/lib/r509/certificateauthority/http/factory.rb +12 -12
- data/lib/r509/certificateauthority/http/server.rb +219 -223
- data/lib/r509/certificateauthority/http/subjectparser.rb +27 -27
- data/lib/r509/certificateauthority/http/validityperiodconverter.rb +14 -14
- data/lib/r509/certificateauthority/http/version.rb +4 -4
- data/lib/r509/certificateauthority/http/views/test_issue.erb +73 -73
- data/lib/r509/certificateauthority/http/views/test_revoke.erb +19 -19
- data/lib/r509/certificateauthority/http/views/test_unrevoke.erb +14 -14
- data/spec/fixtures/test_config.yaml +14 -15
- data/spec/http_spec.rb +235 -227
- data/spec/spec_helper.rb +1 -1
- data/spec/subject_parser_spec.rb +2 -2
- data/spec/validity_period_converter_spec.rb +2 -2
- metadata +20 -20
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Module: R509::CertificateAuthority
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.1
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -90,7 +90,7 @@
|
|
90
90
|
<p class="children">
|
91
91
|
|
92
92
|
|
93
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="CertificateAuthority/
|
93
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="CertificateAuthority/HTTP.html" title="R509::CertificateAuthority::HTTP (module)">HTTP</a></span>
|
94
94
|
|
95
95
|
|
96
96
|
|
@@ -108,9 +108,9 @@
|
|
108
108
|
</div>
|
109
109
|
|
110
110
|
<div id="footer">
|
111
|
-
Generated on
|
111
|
+
Generated on Tue Apr 16 13:52:50 2013 by
|
112
112
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
|
-
0.8.
|
113
|
+
0.8.6.1 (ruby-1.9.3).
|
114
114
|
</div>
|
115
115
|
|
116
116
|
</body>
|
data/doc/R509.html
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Module: R509
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.1
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -108,9 +108,9 @@
|
|
108
108
|
</div>
|
109
109
|
|
110
110
|
<div id="footer">
|
111
|
-
Generated on
|
111
|
+
Generated on Tue Apr 16 13:52:50 2013 by
|
112
112
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
|
-
0.8.
|
113
|
+
0.8.6.1 (ruby-1.9.3).
|
114
114
|
</div>
|
115
115
|
|
116
116
|
</body>
|
data/doc/_index.html
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.8.
|
7
|
+
Documentation by YARD 0.8.6.1
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
11
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
11
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
15
|
<script type="text/javascript" charset="utf-8">
|
16
16
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
<iframe id="search_frame"></iframe>
|
58
58
|
|
59
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.
|
59
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.6.1</h1>
|
60
60
|
<div id="listing">
|
61
61
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
62
62
|
|
@@ -85,16 +85,16 @@
|
|
85
85
|
<ul>
|
86
86
|
|
87
87
|
<li>
|
88
|
-
<span class='object_link'><a href="R509/CertificateAuthority.html" title="R509::CertificateAuthority (
|
88
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/Factory/CSRFactory.html" title="R509::CertificateAuthority::HTTP::Factory::CSRFactory (class)">CSRFactory</a></span>
|
89
89
|
|
90
|
-
<small>(R509)</small>
|
90
|
+
<small>(R509::CertificateAuthority::HTTP::Factory)</small>
|
91
91
|
|
92
92
|
</li>
|
93
93
|
|
94
94
|
<li>
|
95
|
-
<span class='object_link'><a href="R509/CertificateAuthority
|
95
|
+
<span class='object_link'><a href="R509/CertificateAuthority.html" title="R509::CertificateAuthority (module)">CertificateAuthority</a></span>
|
96
96
|
|
97
|
-
<small>(R509
|
97
|
+
<small>(R509)</small>
|
98
98
|
|
99
99
|
</li>
|
100
100
|
|
@@ -107,9 +107,9 @@
|
|
107
107
|
<ul>
|
108
108
|
|
109
109
|
<li>
|
110
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
110
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/Factory.html" title="R509::CertificateAuthority::HTTP::Factory (module)">Factory</a></span>
|
111
111
|
|
112
|
-
<small>(R509::CertificateAuthority::
|
112
|
+
<small>(R509::CertificateAuthority::HTTP)</small>
|
113
113
|
|
114
114
|
</li>
|
115
115
|
|
@@ -122,7 +122,7 @@
|
|
122
122
|
<ul>
|
123
123
|
|
124
124
|
<li>
|
125
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
125
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP.html" title="R509::CertificateAuthority::HTTP (module)">HTTP</a></span>
|
126
126
|
|
127
127
|
<small>(R509::CertificateAuthority)</small>
|
128
128
|
|
@@ -150,23 +150,23 @@
|
|
150
150
|
<ul>
|
151
151
|
|
152
152
|
<li>
|
153
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
153
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/Factory/SPKIFactory.html" title="R509::CertificateAuthority::HTTP::Factory::SPKIFactory (class)">SPKIFactory</a></span>
|
154
154
|
|
155
|
-
<small>(R509::CertificateAuthority::
|
155
|
+
<small>(R509::CertificateAuthority::HTTP::Factory)</small>
|
156
156
|
|
157
157
|
</li>
|
158
158
|
|
159
159
|
<li>
|
160
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
160
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/Server.html" title="R509::CertificateAuthority::HTTP::Server (class)">Server</a></span>
|
161
161
|
|
162
|
-
<small>(R509::CertificateAuthority::
|
162
|
+
<small>(R509::CertificateAuthority::HTTP)</small>
|
163
163
|
|
164
164
|
</li>
|
165
165
|
|
166
166
|
<li>
|
167
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
167
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/SubjectParser.html" title="R509::CertificateAuthority::HTTP::SubjectParser (class)">SubjectParser</a></span>
|
168
168
|
|
169
|
-
<small>(R509::CertificateAuthority::
|
169
|
+
<small>(R509::CertificateAuthority::HTTP)</small>
|
170
170
|
|
171
171
|
</li>
|
172
172
|
|
@@ -179,9 +179,9 @@
|
|
179
179
|
<ul>
|
180
180
|
|
181
181
|
<li>
|
182
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
182
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/ValidityPeriodConverter.html" title="R509::CertificateAuthority::HTTP::ValidityPeriodConverter (class)">ValidityPeriodConverter</a></span>
|
183
183
|
|
184
|
-
<small>(R509::CertificateAuthority::
|
184
|
+
<small>(R509::CertificateAuthority::HTTP)</small>
|
185
185
|
|
186
186
|
</li>
|
187
187
|
|
@@ -197,9 +197,9 @@
|
|
197
197
|
</div>
|
198
198
|
|
199
199
|
<div id="footer">
|
200
|
-
Generated on
|
200
|
+
Generated on Tue Apr 16 13:52:50 2013 by
|
201
201
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
202
|
-
0.8.
|
202
|
+
0.8.6.1 (ruby-1.9.3).
|
203
203
|
</div>
|
204
204
|
|
205
205
|
</body>
|
data/doc/class_list.html
CHANGED
@@ -44,8 +44,8 @@
|
|
44
44
|
<div id="search">Search: <input type="text" /></div>
|
45
45
|
|
46
46
|
<ul id="full_list" class="class">
|
47
|
-
<li><span class='object_link'><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></span></li>
|
48
|
-
<li><a class='toggle'></a> <span class='object_link'><a href="R509.html" title="R509 (module)">R509</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="R509/CertificateAuthority.html" title="R509::CertificateAuthority (module)">CertificateAuthority</a></span><small class='search_info'>R509</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="R509/CertificateAuthority/
|
47
|
+
<li><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></li>
|
48
|
+
<li><a class='toggle'></a> <span class='object_link'><a href="R509.html" title="R509 (module)">R509</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="R509/CertificateAuthority.html" title="R509::CertificateAuthority (module)">CertificateAuthority</a></span><small class='search_info'>R509</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="R509/CertificateAuthority/HTTP.html" title="R509::CertificateAuthority::HTTP (module)">HTTP</a></span><small class='search_info'>R509::CertificateAuthority</small></li><ul><li><a class='toggle'></a> <span class='object_link'><a href="R509/CertificateAuthority/HTTP/Factory.html" title="R509::CertificateAuthority::HTTP::Factory (module)">Factory</a></span><small class='search_info'>R509::CertificateAuthority::HTTP</small></li><ul><li><span class='object_link'><a href="R509/CertificateAuthority/HTTP/Factory/CSRFactory.html" title="R509::CertificateAuthority::HTTP::Factory::CSRFactory (class)">CSRFactory</a></span> < Object<small class='search_info'>R509::CertificateAuthority::HTTP::Factory</small></li><li><span class='object_link'><a href="R509/CertificateAuthority/HTTP/Factory/SPKIFactory.html" title="R509::CertificateAuthority::HTTP::Factory::SPKIFactory (class)">SPKIFactory</a></span> < Object<small class='search_info'>R509::CertificateAuthority::HTTP::Factory</small></li></ul><li><span class='object_link'><a href="R509/CertificateAuthority/HTTP/Server.html" title="R509::CertificateAuthority::HTTP::Server (class)">Server</a></span> < Base<small class='search_info'>R509::CertificateAuthority::HTTP</small></li><li><span class='object_link'><a href="R509/CertificateAuthority/HTTP/SubjectParser.html" title="R509::CertificateAuthority::HTTP::SubjectParser (class)">SubjectParser</a></span> < Object<small class='search_info'>R509::CertificateAuthority::HTTP</small></li><li><span class='object_link'><a href="R509/CertificateAuthority/HTTP/ValidityPeriodConverter.html" title="R509::CertificateAuthority::HTTP::ValidityPeriodConverter (class)">ValidityPeriodConverter</a></span> < Object<small class='search_info'>R509::CertificateAuthority::HTTP</small></li></ul></ul></ul>
|
49
49
|
|
50
50
|
</ul>
|
51
51
|
</div>
|
data/doc/css/style.css
CHANGED
@@ -27,6 +27,16 @@ h2 small { font-weight: normal; font-size: 0.7em; display: block; float: right;
|
|
27
27
|
.rdoc-term { padding-right: 25px; font-weight: bold; }
|
28
28
|
.rdoc-list p { margin: 0; padding: 0; margin-bottom: 4px; }
|
29
29
|
|
30
|
+
/* style for <table> */
|
31
|
+
#filecontents table, .docstring table { border-collapse: collapse; }
|
32
|
+
#filecontents table th, #filecontents table td,
|
33
|
+
.docstring table th, .docstring table td { border: 1px solid #ccc; padding: 8px; padding-right: 17px; }
|
34
|
+
#filecontents table tr:nth-child(odd),
|
35
|
+
.docstring table tr:nth-child(odd) { background: #eee; }
|
36
|
+
#filecontents table tr:nth-child(even),
|
37
|
+
.docstring table tr:nth-child(even) { background: #fff; }
|
38
|
+
#filecontents table th, .docstring table th { background: #fff; }
|
39
|
+
|
30
40
|
/* style for <ul> */
|
31
41
|
#filecontents li > p, .docstring li > p { margin: 0px; }
|
32
42
|
#filecontents ul, .docstring ul { padding-left: 20px; }
|
data/doc/file.README.html
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.1
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -97,7 +97,7 @@
|
|
97
97
|
|
98
98
|
<p>The subject is provided like so:</p>
|
99
99
|
|
100
|
-
<pre class="code ruby"><code><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>CN</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain'>domain</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span><span class='op'>&</span><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>O</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_orgname'>orgname</span><span class='op'>&</span><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>L</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_locality'>locality</span>
|
100
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>CN</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain'>domain</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span><span class='op'>&</span><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>O</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_orgname'>orgname</span><span class='op'>&</span><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>L</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_locality'>locality</span>
|
101
101
|
</code></pre>
|
102
102
|
|
103
103
|
<p>Optional POST parameters:</p>
|
@@ -108,7 +108,7 @@
|
|
108
108
|
|
109
109
|
<p>SAN names are provided like so:</p>
|
110
110
|
|
111
|
-
<pre class="code ruby"><code><span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_subjectAlternativeName'>subjectAlternativeName</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain1'>domain1</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span><span class='op'>&</span><span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_subjectAlternativeName'>subjectAlternativeName</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain2'>domain2</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span>
|
111
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_subjectAlternativeName'>subjectAlternativeName</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain1'>domain1</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span><span class='op'>&</span><span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_subjectAlternativeName'>subjectAlternativeName</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain2'>domain2</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span>
|
112
112
|
</code></pre>
|
113
113
|
|
114
114
|
<p>The issue method will return the PEM text of the issued certificate.</p>
|
@@ -200,9 +200,9 @@
|
|
200
200
|
</div></div>
|
201
201
|
|
202
202
|
<div id="footer">
|
203
|
-
Generated on
|
203
|
+
Generated on Tue Apr 16 13:52:50 2013 by
|
204
204
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
205
|
-
0.8.
|
205
|
+
0.8.6.1 (ruby-1.9.3).
|
206
206
|
</div>
|
207
207
|
|
208
208
|
</body>
|
data/doc/file_list.html
CHANGED
data/doc/frames.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
5
|
<head>
|
6
6
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
-
<title>Documentation by YARD 0.8.
|
7
|
+
<title>Documentation by YARD 0.8.6.1</title>
|
8
8
|
</head>
|
9
9
|
<script type="text/javascript" charset="utf-8">
|
10
10
|
window.onload = function() {
|
data/doc/index.html
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.1
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -97,7 +97,7 @@
|
|
97
97
|
|
98
98
|
<p>The subject is provided like so:</p>
|
99
99
|
|
100
|
-
<pre class="code ruby"><code><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>CN</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain'>domain</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span><span class='op'>&</span><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>O</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_orgname'>orgname</span><span class='op'>&</span><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>L</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_locality'>locality</span>
|
100
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>CN</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain'>domain</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span><span class='op'>&</span><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>O</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_orgname'>orgname</span><span class='op'>&</span><span class='id identifier rubyid_subject'>subject</span><span class='lbracket'>[</span><span class='const'>L</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_locality'>locality</span>
|
101
101
|
</code></pre>
|
102
102
|
|
103
103
|
<p>Optional POST parameters:</p>
|
@@ -108,7 +108,7 @@
|
|
108
108
|
|
109
109
|
<p>SAN names are provided like so:</p>
|
110
110
|
|
111
|
-
<pre class="code ruby"><code><span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_subjectAlternativeName'>subjectAlternativeName</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain1'>domain1</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span><span class='op'>&</span><span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_subjectAlternativeName'>subjectAlternativeName</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain2'>domain2</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span>
|
111
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_subjectAlternativeName'>subjectAlternativeName</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain1'>domain1</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span><span class='op'>&</span><span class='id identifier rubyid_extensions'>extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_subjectAlternativeName'>subjectAlternativeName</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='op'>=</span><span class='id identifier rubyid_domain2'>domain2</span><span class='period'>.</span><span class='id identifier rubyid_com'>com</span>
|
112
112
|
</code></pre>
|
113
113
|
|
114
114
|
<p>The issue method will return the PEM text of the issued certificate.</p>
|
@@ -200,9 +200,9 @@
|
|
200
200
|
</div></div>
|
201
201
|
|
202
202
|
<div id="footer">
|
203
|
-
Generated on
|
203
|
+
Generated on Tue Apr 16 13:52:50 2013 by
|
204
204
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
205
|
-
0.8.
|
205
|
+
0.8.6.1 (ruby-1.9.3).
|
206
206
|
</div>
|
207
207
|
|
208
208
|
</body>
|
data/doc/js/full_list.js
CHANGED
@@ -17,6 +17,7 @@ function fullListSearch() {
|
|
17
17
|
searchCache = [];
|
18
18
|
$('#full_list li').each(function() {
|
19
19
|
var link = $(this).find('.object_link a');
|
20
|
+
if (link.length === 0) return;
|
20
21
|
var fullName = link.attr('title').split(' ')[0];
|
21
22
|
searchCache.push({name:link.text(), fullName:fullName, node:$(this), link:link});
|
22
23
|
});
|
@@ -41,7 +42,7 @@ function fullListSearch() {
|
|
41
42
|
$('#full_list li').removeClass('found').each(function() {
|
42
43
|
|
43
44
|
var link = $(this).find('.object_link a');
|
44
|
-
link.text(link.text());
|
45
|
+
if (link.length > 0) link.text(link.text());
|
45
46
|
});
|
46
47
|
if (clicked) {
|
47
48
|
clicked.parents('ul').each(function() {
|
@@ -110,6 +111,10 @@ clicked = null;
|
|
110
111
|
function linkList() {
|
111
112
|
$('#full_list li, #full_list li a:last').click(function(evt) {
|
112
113
|
if ($(this).hasClass('toggle')) return true;
|
114
|
+
if ($(this).find('.object_link a').length === 0) {
|
115
|
+
$(this).children('a.toggle').click();
|
116
|
+
return false;
|
117
|
+
}
|
113
118
|
if (this.tagName.toLowerCase() == "li") {
|
114
119
|
var toggle = $(this).children('a.toggle');
|
115
120
|
if (toggle.size() > 0 && evt.pageX < toggle.offset().left) {
|
data/doc/method_list.html
CHANGED
@@ -47,42 +47,32 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
<li class="r1 ">
|
50
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
51
|
-
|
52
|
-
<small>R509::CertificateAuthority::Http::Factory::CsrFactory</small>
|
53
|
-
|
50
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/Factory/CSRFactory.html#build-instance_method" title="R509::CertificateAuthority::HTTP::Factory::CSRFactory#build (method)">#build</a></span>
|
51
|
+
<small>R509::CertificateAuthority::HTTP::Factory::CSRFactory</small>
|
54
52
|
</li>
|
55
53
|
|
56
54
|
|
57
55
|
<li class="r2 ">
|
58
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
59
|
-
|
60
|
-
<small>R509::CertificateAuthority::Http::Factory::SpkiFactory</small>
|
61
|
-
|
56
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/Factory/SPKIFactory.html#build-instance_method" title="R509::CertificateAuthority::HTTP::Factory::SPKIFactory#build (method)">#build</a></span>
|
57
|
+
<small>R509::CertificateAuthority::HTTP::Factory::SPKIFactory</small>
|
62
58
|
</li>
|
63
59
|
|
64
60
|
|
65
61
|
<li class="r1 ">
|
66
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
67
|
-
|
68
|
-
<small>R509::CertificateAuthority::Http::ValidityPeriodConverter</small>
|
69
|
-
|
62
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/ValidityPeriodConverter.html#convert-instance_method" title="R509::CertificateAuthority::HTTP::ValidityPeriodConverter#convert (method)">#convert</a></span>
|
63
|
+
<small>R509::CertificateAuthority::HTTP::ValidityPeriodConverter</small>
|
70
64
|
</li>
|
71
65
|
|
72
66
|
|
73
67
|
<li class="r2 ">
|
74
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
75
|
-
|
76
|
-
<small>R509::CertificateAuthority::Http::SubjectParser</small>
|
77
|
-
|
68
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/SubjectParser.html#parse-instance_method" title="R509::CertificateAuthority::HTTP::SubjectParser#parse (method)">#parse</a></span>
|
69
|
+
<small>R509::CertificateAuthority::HTTP::SubjectParser</small>
|
78
70
|
</li>
|
79
71
|
|
80
72
|
|
81
73
|
<li class="r1 ">
|
82
|
-
<span class='object_link'><a href="R509/CertificateAuthority/
|
83
|
-
|
84
|
-
<small>R509::CertificateAuthority::Http::SubjectParser</small>
|
85
|
-
|
74
|
+
<span class='object_link'><a href="R509/CertificateAuthority/HTTP/SubjectParser.html#unescape-instance_method" title="R509::CertificateAuthority::HTTP::SubjectParser#unescape (method)">#unescape</a></span>
|
75
|
+
<small>R509::CertificateAuthority::HTTP::SubjectParser</small>
|
86
76
|
</li>
|
87
77
|
|
88
78
|
|
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Top Level Namespace
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.1
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -103,9 +103,9 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Tue Apr 16 13:52:50 2013 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
|
-
0.8.
|
108
|
+
0.8.6.1 (ruby-1.9.3).
|
109
109
|
</div>
|
110
110
|
|
111
111
|
</body>
|
@@ -1,15 +1,15 @@
|
|
1
|
-
module R509::CertificateAuthority::
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
module R509::CertificateAuthority::HTTP
|
2
|
+
module Factory
|
3
|
+
class CSRFactory
|
4
|
+
def build(options)
|
5
|
+
R509::CSR.new(options)
|
6
|
+
end
|
7
|
+
end
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
9
|
+
class SPKIFactory
|
10
|
+
def build(options)
|
11
|
+
R509::SPKI.new(options)
|
12
|
+
end
|
14
13
|
end
|
14
|
+
end
|
15
15
|
end
|