ssl-test 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -10
- data/lib/{ssl_test.rb → ssl-test.rb} +1 -1
- data/ssl-test.gemspec +1 -1
- data/test/{ssl_test_test.rb → ssl-test_test.rb} +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a756e97336bda8d81ef0fb7a5f1da62c45e26ce5
|
4
|
+
data.tar.gz: f64dd6e1ffa1f3d40fa2f8d2bff5092113856fd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d7223389c9fcd9489222563d8ee513b5f5ca27957d23cb1bc4396330c251494013589756ea1dbb4380c34434407548f297fd800899231b986d82b6e206919b1
|
7
|
+
data.tar.gz: 214b11cad69d2d3d5b51c050974ab6d17755018010b71100a6c9a292633b44df5c5147fa48cf75beaea9087e821792e002c7217d7739b164844ea84bc85fc168
|
data/README.md
CHANGED
@@ -1,22 +1,15 @@
|
|
1
1
|
# SSLTest
|
2
2
|
|
3
|
-
A small
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
3
|
+
A small ruby gem to help you test a website's SSL certificate.
|
8
4
|
|
9
5
|
```ruby
|
10
6
|
gem 'ssl-test'
|
11
7
|
```
|
12
8
|
|
13
|
-
Or install it yourself as:
|
14
|
-
|
15
|
-
$ gem install ssl-test
|
16
|
-
|
17
9
|
## Usage
|
18
10
|
|
19
11
|
Simply call the `SSLTest.test` method and it'll return 3 values:
|
12
|
+
|
20
13
|
1. the validity of the certificate
|
21
14
|
2. the error message (if any)
|
22
15
|
3. the certificate itself
|
@@ -59,7 +52,7 @@ Pretty much the same errors `curl` will:
|
|
59
52
|
|
60
53
|
### GOTCHA: errors SSLTest will NOT detect
|
61
54
|
|
62
|
-
There is a spefic kind or error this code will
|
55
|
+
There is a spefic kind or error this code will **NOT** detect: *revoked certificates*. This is much more complex to handle because it needs an up to date database of revoked certs to check with. This is implemented in most modern browsers but the results vary greatly (chrome ignores this for example).
|
63
56
|
|
64
57
|
Here is an example of website with a revoked certificate: https://revoked.grc.com/
|
65
58
|
|
data/ssl-test.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssl-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrien Jarthon
|
@@ -50,9 +50,9 @@ files:
|
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
52
52
|
- Rakefile
|
53
|
-
- lib/
|
53
|
+
- lib/ssl-test.rb
|
54
54
|
- ssl-test.gemspec
|
55
|
-
- test/
|
55
|
+
- test/ssl-test_test.rb
|
56
56
|
homepage: https://github.com/jarthod/ssl-test
|
57
57
|
licenses:
|
58
58
|
- MIT
|
@@ -78,5 +78,5 @@ signing_key:
|
|
78
78
|
specification_version: 4
|
79
79
|
summary: Test website SSL certificate validity
|
80
80
|
test_files:
|
81
|
-
- test/
|
81
|
+
- test/ssl-test_test.rb
|
82
82
|
has_rdoc:
|