r509-ca-http 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82d99b04e38d9cc8ebfb61eae8abdd48bf707ca4
4
- data.tar.gz: 24f2a0b80c757e1a5f4d93276095f8d3d7bd3b85
3
+ metadata.gz: 895a78b7038b43df203c040f64cea4b157b4faa5
4
+ data.tar.gz: d3d5e1fc5d0543f4f1fac1d5097fabf84d76923c
5
5
  SHA512:
6
- metadata.gz: 7ad00ec81b2064448527af0b848dd1402536a438fee49f1023e204c438eab30ad357edcc6aadfd0655fadfaac6ce9190d30f038074d78150581a1bd11c81cb76
7
- data.tar.gz: 79d2cc8d3fdaa2070f0c245c89d54a94f7259dc9c4dd24f9e062c6d85987fcd0aa1cbe1a3f904356129a2788aaf5c022caaf95a8ca5a09e78c95e08b7b54767d
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/reaperhulk/r509).
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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'>&quot;</span><span class='tstring_content'>0.3.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
109
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.3.1</span><span class='tstring_end'>&quot;</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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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.6.1
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.6.1</h1>
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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
202
+ 0.8.7.3 (ruby-2.0.0).
203
203
  </div>
204
204
 
205
205
  </body>
data/doc/class_list.html CHANGED
@@ -15,6 +15,7 @@
15
15
  <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
16
 
17
17
 
18
+ <title>Class List</title>
18
19
  <base id="base_target" target="_parent" />
19
20
  </head>
20
21
  <body>
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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/reaperhulk/r509">the official r509 documentation</a>.</p>
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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
210
+ 0.8.7.3 (ruby-2.0.0).
211
211
  </div>
212
212
 
213
213
  </body>
data/doc/file_list.html CHANGED
@@ -15,6 +15,7 @@
15
15
  <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
16
 
17
17
 
18
+ <title>File List</title>
18
19
  <base id="base_target" target="_parent" />
19
20
  </head>
20
21
  <body>
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.6.1</title>
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
- if (match) {
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
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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/reaperhulk/r509">the official r509 documentation</a>.</p>
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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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
- window.top.document.title = $('html head title').text();
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).parent('li').addClass('clicked');
128
+ clicked = $(this).parents('li').addClass('clicked');
129
129
  win.location = this.href;
130
130
  }
131
131
  else {
data/doc/method_list.html CHANGED
@@ -15,6 +15,7 @@
15
15
  <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
16
 
17
17
 
18
+ <title>Method List</title>
18
19
  <base id="base_target" target="_parent" />
19
20
  </head>
20
21
  <body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Top Level Namespace
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; 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 Sun Jan 26 14:20:49 2014 by
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.6.1 (ruby-2.0.0).
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 not reason.nil? and reason.empty?
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)
@@ -1,7 +1,7 @@
1
1
  module R509
2
2
  module CertificateAuthority
3
3
  module HTTP
4
- VERSION="0.3.0"
4
+ VERSION="0.3.1"
5
5
  end
6
6
  end
7
7
  end
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", "1").and_return(nil)
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", "foo").and_return(nil)
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.0
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-01-26 00:00:00.000000000 Z
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