Socket
Socket
Sign inDemoInstall

ssl-validator

Package Overview
Dependencies
Maintainers
8
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssl-validator - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

7

CHANGELOG.md

@@ -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 @@

2

lib/validators.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc