ssl-validator
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -5,2 +5,9 @@ # SSL Validator Changelog | ||
## 1.0.4 - 2019-01-07 | ||
- Update pem dependency | ||
- Fix issue with bundle/cert check order | ||
*** | ||
## 1.0.3 - 2019-01-07 | ||
@@ -7,0 +14,0 @@ |
@@ -75,3 +75,3 @@ const { find, trim, isNil, mergeRight } = require('ramda'); | ||
result.bundleInfo = bundleInfo; | ||
const res = await verifySigningChain(certBundle, cert); | ||
const res = await verifySigningChain(cert, certBundle); | ||
if (!res) { | ||
@@ -78,0 +78,0 @@ throw Error('Bundle does not match the certificate.'); |
{ | ||
"name": "ssl-validator", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Validator for certificates, bundles, and keys", | ||
@@ -40,3 +40,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"pem": "^1.13.2", | ||
"pem": "^1.14.1", | ||
"ramda": "^0.26.1" | ||
@@ -43,0 +43,0 @@ }, |
@@ -29,3 +29,3 @@ const should = require('should'); | ||
it('#isValidCertBundle', async () => { | ||
(await Validation.isValidCertBundle(validBundle, '----NOT valid----')).should.be.false(); | ||
(await Validation.isValidCertBundle('----NOT valid----', validBundle)).should.be.false(); | ||
}); | ||
@@ -47,3 +47,3 @@ }); | ||
it('#isValidCertBundle', async () => { | ||
(await Validation.isValidCertBundle(validBundle, validBundleCert)).should.be.true(); | ||
(await Validation.isValidCertBundle(validBundleCert, validBundle)).should.be.true(); | ||
}); | ||
@@ -123,3 +123,3 @@ }); | ||
it('#validateCertBundle', async () => { | ||
const result = await Validation.validateCertBundle(validBundle, validBundleCert); | ||
const result = await Validation.validateCertBundle(validBundleCert, validBundle); | ||
should.exist(result); | ||
@@ -130,3 +130,3 @@ }); | ||
try { | ||
await Validation.validateCertBundle(validBundle, validCert); | ||
await Validation.validateCertBundle(validCert, validBundle); | ||
} catch (e) { | ||
@@ -133,0 +133,0 @@ error = e; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162015
Updatedpem@^1.14.1