r509-ca-http 0.3.0 → 0.3.1
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.md +1 -1
- data/doc/R509/CertificateAuthority/HTTP/Factory/CSRFactory.html +3 -3
- data/doc/R509/CertificateAuthority/HTTP/Factory/SPKIFactory.html +3 -3
- data/doc/R509/CertificateAuthority/HTTP/Factory.html +3 -3
- data/doc/R509/CertificateAuthority/HTTP/Server.html +3 -3
- data/doc/R509/CertificateAuthority/HTTP/SubjectParser.html +3 -3
- data/doc/R509/CertificateAuthority/HTTP/ValidityPeriodConverter.html +3 -3
- data/doc/R509/CertificateAuthority/HTTP.html +4 -4
- data/doc/R509/CertificateAuthority.html +3 -3
- data/doc/R509.html +3 -3
- data/doc/_index.html +4 -4
- data/doc/class_list.html +1 -0
- data/doc/css/style.css +1 -1
- data/doc/file.README.html +4 -4
- data/doc/file_list.html +1 -0
- data/doc/frames.html +5 -7
- data/doc/index.html +4 -4
- data/doc/js/app.js +7 -2
- data/doc/js/full_list.js +5 -5
- data/doc/method_list.html +1 -0
- data/doc/top-level-namespace.html +3 -3
- data/lib/r509/certificateauthority/http/server.rb +3 -1
- data/lib/r509/certificateauthority/http/version.rb +1 -1
- data/spec/http_spec.rb +2 -2
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 895a78b7038b43df203c040f64cea4b157b4faa5
|
|
4
|
+
data.tar.gz: d3d5e1fc5d0543f4f1fac1d5097fabf84d76923c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99dcb7379ea9e0e7289766bb1a64d8622634ed76c83a1856178e3ac85d6ef470b366c7aad14a52ba257af807b23bcbd4610904acf88aef37603741d136b4488e
|
|
7
|
+
data.tar.gz: 7cefb886a6a75c3033ffe1cfba2286edbec486ffcf64d23ffddb77aaac62cfdd56524cf519695829634e0e53f759b45a3004efbd252c3c705e64409c1a97d3d3
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/README.md
CHANGED
|
@@ -86,7 +86,7 @@ These pages are present on the server, for you to work with the CA with a basic
|
|
|
86
86
|
|
|
87
87
|
You use the ```config.yaml``` file to specify information about your certificate authority. You can operate multiple certificate authorities, each of which can have multiple profiles, with one instance of r509-ca-http.
|
|
88
88
|
|
|
89
|
-
Information about how to construct the YAML can be found at [the official r509 documentation](https://github.com/
|
|
89
|
+
Information about how to construct the YAML can be found at [the official r509 documentation](https://github.com/r509/r509).
|
|
90
90
|
|
|
91
91
|
## Middleware (config.ru)
|
|
92
92
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: R509::CertificateAuthority::HTTP::Factory::CSRFactory
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -180,9 +180,9 @@
|
|
|
180
180
|
</div>
|
|
181
181
|
|
|
182
182
|
<div id="footer">
|
|
183
|
-
Generated on
|
|
183
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
185
|
-
0.8.
|
|
185
|
+
0.8.7.3 (ruby-2.0.0).
|
|
186
186
|
</div>
|
|
187
187
|
|
|
188
188
|
</body>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: R509::CertificateAuthority::HTTP::Factory::SPKIFactory
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -180,9 +180,9 @@
|
|
|
180
180
|
</div>
|
|
181
181
|
|
|
182
182
|
<div id="footer">
|
|
183
|
-
Generated on
|
|
183
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
185
|
-
0.8.
|
|
185
|
+
0.8.7.3 (ruby-2.0.0).
|
|
186
186
|
</div>
|
|
187
187
|
|
|
188
188
|
</body>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Module: R509::CertificateAuthority::HTTP::Factory
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
</div>
|
|
107
107
|
|
|
108
108
|
<div id="footer">
|
|
109
|
-
Generated on
|
|
109
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
110
110
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
111
|
-
0.8.
|
|
111
|
+
0.8.7.3 (ruby-2.0.0).
|
|
112
112
|
</div>
|
|
113
113
|
|
|
114
114
|
</body>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: R509::CertificateAuthority::HTTP::Server
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
126
|
<div id="footer">
|
|
127
|
-
Generated on
|
|
127
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
129
|
-
0.8.
|
|
129
|
+
0.8.7.3 (ruby-2.0.0).
|
|
130
130
|
</div>
|
|
131
131
|
|
|
132
132
|
</body>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: R509::CertificateAuthority::HTTP::SubjectParser
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -256,9 +256,9 @@
|
|
|
256
256
|
</div>
|
|
257
257
|
|
|
258
258
|
<div id="footer">
|
|
259
|
-
Generated on
|
|
259
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
260
260
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
261
|
-
0.8.
|
|
261
|
+
0.8.7.3 (ruby-2.0.0).
|
|
262
262
|
</div>
|
|
263
263
|
|
|
264
264
|
</body>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: R509::CertificateAuthority::HTTP::ValidityPeriodConverter
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -198,9 +198,9 @@
|
|
|
198
198
|
</div>
|
|
199
199
|
|
|
200
200
|
<div id="footer">
|
|
201
|
-
Generated on
|
|
201
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
202
202
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
203
|
-
0.8.
|
|
203
|
+
0.8.7.3 (ruby-2.0.0).
|
|
204
204
|
</div>
|
|
205
205
|
|
|
206
206
|
</body>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Module: R509::CertificateAuthority::HTTP
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
<dt id="VERSION-constant" class="">VERSION =
|
|
107
107
|
|
|
108
108
|
</dt>
|
|
109
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.3.
|
|
109
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.3.1</span><span class='tstring_end'>"</span></span></pre></dd>
|
|
110
110
|
|
|
111
111
|
</dl>
|
|
112
112
|
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
</div>
|
|
123
123
|
|
|
124
124
|
<div id="footer">
|
|
125
|
-
Generated on
|
|
125
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
127
|
-
0.8.
|
|
127
|
+
0.8.7.3 (ruby-2.0.0).
|
|
128
128
|
</div>
|
|
129
129
|
|
|
130
130
|
</body>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Module: R509::CertificateAuthority
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
</div>
|
|
109
109
|
|
|
110
110
|
<div id="footer">
|
|
111
|
-
Generated on
|
|
111
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
112
112
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
113
|
-
0.8.
|
|
113
|
+
0.8.7.3 (ruby-2.0.0).
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
</body>
|
data/doc/R509.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Module: R509
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
</div>
|
|
109
109
|
|
|
110
110
|
<div id="footer">
|
|
111
|
-
Generated on
|
|
111
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
112
112
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
113
|
-
0.8.
|
|
113
|
+
0.8.7.3 (ruby-2.0.0).
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
</body>
|
data/doc/_index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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.7.3
|
|
8
8
|
|
|
9
9
|
</title>
|
|
10
10
|
|
|
@@ -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.7.3</h1>
|
|
60
60
|
<div id="listing">
|
|
61
61
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
|
62
62
|
|
|
@@ -197,9 +197,9 @@
|
|
|
197
197
|
</div>
|
|
198
198
|
|
|
199
199
|
<div id="footer">
|
|
200
|
-
Generated on
|
|
200
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
201
201
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
202
|
-
0.8.
|
|
202
|
+
0.8.7.3 (ruby-2.0.0).
|
|
203
203
|
</div>
|
|
204
204
|
|
|
205
205
|
</body>
|
data/doc/class_list.html
CHANGED
data/doc/css/style.css
CHANGED
|
@@ -324,9 +324,9 @@ pre.code .dot + pre.code .id,
|
|
|
324
324
|
pre.code .rubyid_to_i pre.code .rubyid_each { color: #0085FF; }
|
|
325
325
|
pre.code .comment { color: #0066FF; }
|
|
326
326
|
pre.code .const, pre.code .constant { color: #585CF6; }
|
|
327
|
+
pre.code .label,
|
|
327
328
|
pre.code .symbol { color: #C5060B; }
|
|
328
329
|
pre.code .kw,
|
|
329
|
-
pre.code .label,
|
|
330
330
|
pre.code .rubyid_require,
|
|
331
331
|
pre.code .rubyid_extend,
|
|
332
332
|
pre.code .rubyid_include { color: #0000FF; }
|
data/doc/file.README.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
File: README
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
|
|
161
161
|
<p>You use the <code>config.yaml</code> file to specify information about your certificate authority. You can operate multiple certificate authorities, each of which can have multiple profiles, with one instance of r509-ca-http.</p>
|
|
162
162
|
|
|
163
|
-
<p>Information about how to construct the YAML can be found at <a href="https://github.com/
|
|
163
|
+
<p>Information about how to construct the YAML can be found at <a href="https://github.com/r509/r509">the official r509 documentation</a>.</p>
|
|
164
164
|
|
|
165
165
|
<h2>Middleware (config.ru)</h2>
|
|
166
166
|
|
|
@@ -205,9 +205,9 @@
|
|
|
205
205
|
</div></div>
|
|
206
206
|
|
|
207
207
|
<div id="footer">
|
|
208
|
-
Generated on
|
|
208
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
209
209
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
210
|
-
0.8.
|
|
210
|
+
0.8.7.3 (ruby-2.0.0).
|
|
211
211
|
</div>
|
|
212
212
|
|
|
213
213
|
</body>
|
data/doc/file_list.html
CHANGED
data/doc/frames.html
CHANGED
|
@@ -4,18 +4,16 @@
|
|
|
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.7.3</title>
|
|
8
8
|
</head>
|
|
9
9
|
<script type="text/javascript" charset="utf-8">
|
|
10
10
|
window.onload = function() {
|
|
11
|
-
var match = window.location.hash.match(/^#!(.+)/);
|
|
12
|
-
var name = 'index.html';
|
|
13
|
-
|
|
14
|
-
name = unescape(match[1]);
|
|
15
|
-
}
|
|
11
|
+
var match = unescape(window.location.hash).match(/^#!(.+)/);
|
|
12
|
+
var name = match ? match[1] : 'index.html';
|
|
13
|
+
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
|
|
16
14
|
document.writeln('<frameset cols="20%,*">' +
|
|
17
15
|
'<frame name="list" src="class_list.html" />' +
|
|
18
|
-
'<frame name="main" src="' + name + '" />' +
|
|
16
|
+
'<frame name="main" src="' + escape(name) + '" />' +
|
|
19
17
|
'</frameset>');
|
|
20
18
|
}
|
|
21
19
|
</script>
|
data/doc/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
File: README
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
|
|
161
161
|
<p>You use the <code>config.yaml</code> file to specify information about your certificate authority. You can operate multiple certificate authorities, each of which can have multiple profiles, with one instance of r509-ca-http.</p>
|
|
162
162
|
|
|
163
|
-
<p>Information about how to construct the YAML can be found at <a href="https://github.com/
|
|
163
|
+
<p>Information about how to construct the YAML can be found at <a href="https://github.com/r509/r509">the official r509 documentation</a>.</p>
|
|
164
164
|
|
|
165
165
|
<h2>Middleware (config.ru)</h2>
|
|
166
166
|
|
|
@@ -205,9 +205,9 @@
|
|
|
205
205
|
</div></div>
|
|
206
206
|
|
|
207
207
|
<div id="footer">
|
|
208
|
-
Generated on
|
|
208
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
209
209
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
210
|
-
0.8.
|
|
210
|
+
0.8.7.3 (ruby-2.0.0).
|
|
211
211
|
</div>
|
|
212
212
|
|
|
213
213
|
</body>
|
data/doc/js/app.js
CHANGED
|
@@ -78,7 +78,12 @@ function framesInit() {
|
|
|
78
78
|
if (hasFrames) {
|
|
79
79
|
document.body.className = 'frames';
|
|
80
80
|
$('#menu .noframes a').attr('href', document.location);
|
|
81
|
-
|
|
81
|
+
try {
|
|
82
|
+
window.top.document.title = $('html head title').text();
|
|
83
|
+
} catch(error) {
|
|
84
|
+
// some browsers will not allow this when serving from file://
|
|
85
|
+
// but we don't want to stop the world.
|
|
86
|
+
}
|
|
82
87
|
}
|
|
83
88
|
else {
|
|
84
89
|
$('#menu .noframes a').text('frames').attr('href', framesUrl);
|
|
@@ -211,4 +216,4 @@ $(linkSummaries);
|
|
|
211
216
|
$(keyboardShortcuts);
|
|
212
217
|
$(summaryToggle);
|
|
213
218
|
$(fixOutsideWorldLinks);
|
|
214
|
-
$(generateTOC);
|
|
219
|
+
$(generateTOC);
|
data/doc/js/full_list.js
CHANGED
|
@@ -111,11 +111,11 @@ clicked = null;
|
|
|
111
111
|
function linkList() {
|
|
112
112
|
$('#full_list li, #full_list li a:last').click(function(evt) {
|
|
113
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
|
-
}
|
|
118
114
|
if (this.tagName.toLowerCase() == "li") {
|
|
115
|
+
if ($(this).find('.object_link a').length === 0) {
|
|
116
|
+
$(this).children('a.toggle').click();
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
119
|
var toggle = $(this).children('a.toggle');
|
|
120
120
|
if (toggle.size() > 0 && evt.pageX < toggle.offset().left) {
|
|
121
121
|
toggle.click();
|
|
@@ -125,7 +125,7 @@ function linkList() {
|
|
|
125
125
|
if (clicked) clicked.removeClass('clicked');
|
|
126
126
|
var win = window.top.frames.main ? window.top.frames.main : window.parent;
|
|
127
127
|
if (this.tagName.toLowerCase() == "a") {
|
|
128
|
-
clicked = $(this).
|
|
128
|
+
clicked = $(this).parents('li').addClass('clicked');
|
|
129
129
|
win.location = this.href;
|
|
130
130
|
}
|
|
131
131
|
else {
|
data/doc/method_list.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Top Level Namespace
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.8.
|
|
9
|
+
— Documentation by YARD 0.8.7.3
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
105
|
<div id="footer">
|
|
106
|
-
Generated on
|
|
106
|
+
Generated on Thu Feb 6 10:33:49 2014 by
|
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
108
|
-
0.8.
|
|
108
|
+
0.8.7.3 (ruby-2.0.0).
|
|
109
109
|
</div>
|
|
110
110
|
|
|
111
111
|
</body>
|
|
@@ -202,8 +202,10 @@ module R509
|
|
|
202
202
|
raise ArgumentError, "Serial must be provided"
|
|
203
203
|
end
|
|
204
204
|
|
|
205
|
-
if
|
|
205
|
+
if reason.nil? or reason.empty?
|
|
206
206
|
reason = nil
|
|
207
|
+
else
|
|
208
|
+
reason = reason.to_i
|
|
207
209
|
end
|
|
208
210
|
|
|
209
211
|
crl(ca).revoke_cert(serial, reason)
|
data/spec/http_spec.rb
CHANGED
|
@@ -244,7 +244,7 @@ describe R509::CertificateAuthority::HTTP::Server do
|
|
|
244
244
|
last_response.body.should == "generated crl"
|
|
245
245
|
end
|
|
246
246
|
it "when serial and reason are given" do
|
|
247
|
-
@crls["test_ca"].should_receive(:revoke_cert).with("12345",
|
|
247
|
+
@crls["test_ca"].should_receive(:revoke_cert).with("12345", 1).and_return(nil)
|
|
248
248
|
crl_obj = double("crl-obj")
|
|
249
249
|
@crls["test_ca"].should_receive(:generate_crl).and_return(crl_obj)
|
|
250
250
|
crl_obj.should_receive(:to_pem).and_return("generated crl")
|
|
@@ -259,7 +259,7 @@ describe R509::CertificateAuthority::HTTP::Server do
|
|
|
259
259
|
last_response.body.should == "#<R509::R509Error: some r509 error>"
|
|
260
260
|
end
|
|
261
261
|
it "when reason is not an integer" do
|
|
262
|
-
@crls["test_ca"].should_receive(:revoke_cert).with("12345",
|
|
262
|
+
@crls["test_ca"].should_receive(:revoke_cert).with("12345", 0).and_return(nil)
|
|
263
263
|
crl_obj = double("crl-obj")
|
|
264
264
|
@crls["test_ca"].should_receive(:generate_crl).and_return(crl_obj)
|
|
265
265
|
crl_obj.should_receive(:to_pem).and_return("generated crl")
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: r509-ca-http
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Schulte
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
wQ9nsK5DoJSWf5vG8Xu/TEnv2Gu8z6T4wBrbIr20EYu6lb0i5ekGhrHOcaPRI6X9
|
|
31
31
|
lYMLMTFSyjE66v5QiUlZ9V4oV6O/MPS9fXPxog3TCsYpgfsgA+RlO8I=
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2014-
|
|
33
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: r509
|
metadata.gz.sig
CHANGED
|
Binary file
|