openssl-extensions 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module OpenSSLExtensions
2
- Version = '0.0.6'
2
+ Version = '0.0.7'
3
3
  end
@@ -12,6 +12,13 @@ module OpenSSLExtensions::X509::Certificate
12
12
  end
13
13
  alias :sans :subject_alternative_names
14
14
 
15
+ ##
16
+ # Returns the bit strength of the public certificate.
17
+ #
18
+ def strength
19
+ public_key.n.num_bits
20
+ end
21
+
15
22
  def subject_key_identifier
16
23
  read_extension_by_oid('subjectKeyIdentifier')
17
24
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl-extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathaniel Bibler
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-29 00:00:00 -04:00
18
+ date: 2010-11-02 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency