Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.4 to 1.0.5

10

CHANGELOG.md

@@ -5,2 +5,10 @@ # SSL Validator Changelog

## 1.0.5 - 2019-06-28
- Update pem dependency
- Fix a spelling errors, improved error messages
- Add Node 12 to travis.yml
***
## 1.0.4 - 2019-01-07

@@ -40,2 +48,2 @@

- Initial release
- Initial release

8

lib/validators.js

@@ -18,3 +18,3 @@ const { find, trim, isNil, mergeRight } = require('ramda');

if (!isCertValidFormat(cert)) {
throw new Error('Certificate must start and end with proper formating.');
throw new Error('Certificate must start and end with proper formatting.');
}

@@ -38,3 +38,3 @@ const info = await readCertificateInfo(cert);

if (!found) {
throw Error('The cert does not match the domain.');
throw Error('The certificate does not match the domain.');
}

@@ -47,3 +47,3 @@ return found;

if (!isKeyValidFormat(key)) {
throw new Error('Key must start and end with proper formating.');
throw new Error('Key must start and end with proper formatting.');
}

@@ -64,3 +64,3 @@ return getModulus(key);

if (certMod.modulus !== keyMod.modulus) {
throw Error('The provided cert and key do not match.');
throw Error('The provided certificate and key do not match.');
}

@@ -67,0 +67,0 @@ result.keyMod = keyMod;

{
"name": "ssl-validator",
"version": "1.0.4",
"version": "1.0.5",
"description": "Validator for certificates, bundles, and keys",

@@ -40,9 +40,9 @@ "main": "lib/index.js",

"dependencies": {
"pem": "^1.14.1",
"pem": "^1.14.2",
"ramda": "^0.26.1"
},
"devDependencies": {
"@losant/eslint-config-losant": "^1.3.5",
"husky": "^1.3.1",
"lint-staged": "^8.1.0",
"@losant/eslint-config-losant": "^1.3.6",
"husky": "^2.7.0",
"lint-staged": "^8.2.1",
"mocha": "^5.2.0",

@@ -49,0 +49,0 @@ "should": "^13.2.3"

@@ -124,2 +124,2 @@ # Node SSL Validator

The module is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
The module is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

@@ -61,3 +61,3 @@ const should = require('should');

}
error.message.should.equal('Certificate must start and end with proper formating.');
error.message.should.equal('Certificate must start and end with proper formatting.');
});

@@ -84,3 +84,3 @@ it('#validateSSLCert should throw error when formatted correctly but cert is still bad', async () => {

}
error.message.should.equal('Key must start and end with proper formating.');
error.message.should.equal('Key must start and end with proper formatting.');
});

@@ -107,3 +107,3 @@ it('#validateSSLKey should throw error when formatted correctly but key is still bad', async () => {

}
error.message.should.equal('The cert does not match the domain.');
error.message.should.equal('The certificate does not match the domain.');
});

@@ -121,3 +121,3 @@ it('#validateCertKeyPair', async () => {

}
error.message.should.equal('The provided cert and key do not match.');
error.message.should.equal('The provided certificate and key do not match.');
});

@@ -124,0 +124,0 @@ it('#validateCertBundle', async () => {

Sorry, the diff of this file is not supported yet

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