ssltool 0.0.15 → 0.0.16
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
- data/lib/ssltool/certificate.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74747cf89cd77bbc9ef708d1a6ece8b291345ffa
|
4
|
+
data.tar.gz: a2cd31c2d1a0593803889a6adcf2afad4c6ae84e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5b0c59712bb5bd1ce86853c6c8557d4ece6672a33e585504f2cb0a6e70d7e8a58c8771997f28bc190f39b8ca21bb0bbdea8b6377ae2253d3a2ece89008cd953
|
7
|
+
data.tar.gz: 3e6b431d2333d3633c1b2487a20e9c1427e3040b373a25db33902dcf41a76deda487a26fd878c76aa7ff462ecd613283eee68f2d10dd57fb3f454bec03c7f2cb
|
data/lib/ssltool/certificate.rb
CHANGED
@@ -30,6 +30,7 @@ module SSLTool
|
|
30
30
|
def signed_by?(other_cert)
|
31
31
|
verify(other_cert.public_key)
|
32
32
|
rescue OpenSSL::X509::CertificateError => e
|
33
|
+
OpenSSL.errors # clear error queue to prevent pg errors
|
33
34
|
return false if e.message == "wrong public key type" # self.signature_algorithm is incompatible with type of other_cert.public_key; verify is definitely false
|
34
35
|
return nil if e.message == "unknown message digest algorithm" && signature_algorithm =~ /^md2/ # md2 is not present in later versions of openssl; can't tell signature verifies, so returning nil
|
35
36
|
raise e
|