strongbox 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/strongbox.rb +1 -1
- data/lib/strongbox/lock.rb +1 -1
- metadata +2 -2
data/lib/strongbox.rb
CHANGED
data/lib/strongbox/lock.rb
CHANGED
@@ -114,7 +114,7 @@ module Strongbox
|
|
114
114
|
private
|
115
115
|
def get_rsa_key(key,password = '')
|
116
116
|
return key if key.is_a?(OpenSSL::PKey::RSA)
|
117
|
-
if key !~
|
117
|
+
if key !~ /^-+BEGIN .* KEY-+$/
|
118
118
|
key = File.read(key)
|
119
119
|
end
|
120
120
|
return OpenSSL::PKey::RSA.new(key,password)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Spike Ilacqua
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-06-08 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|