
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
node-ssllabs
Advanced tools
A node.js library for the SSL Labs API.
SSL Labs APIs expose the complete SSL/TLS server testing functionality in a programmatic fashion, allowing for scheduled and bulk assessment. We are making the APIs available to encourage site operators to regularly test their server configuration.
npm install node-ssllabs
var ssllabs = require("node-ssllabs");
ssllabs.scan("www.ssllabs.com", function (err, host) {
console.dir(host);
});
Testing with Mocha and Should.js.
var ssllabs = require("node-ssllabs"),
should = require("should");
describe("www.ssllabs.com", function () {
it("should get an A+", function (done) {
ssllabs.scan("www.ssllabs.com", function (err, host) {
if (err) {
throw err;
}
host.endpoints.forEach(function (endpoint) {
endpoint.grade.should.equal("A+");
});
done();
});
});
});
var ssllabs = require("node-ssllabs");
ssllabs.scan({
"host": "www.ssllabs.com",
"fromCache": true,
"maxAge": 24
}, function (err, host) {
console.dir(host);
});
ssllabs.info(function (err, info) {
console.dir(info);
});
ssllabs.analyze({
"host": "www.ssllabs.com",
"publish": true,
"startNew": true,
"all": "done"
}, function (err, host) {
console.dir(host);
});
ssllabs.analyze({
"host": "www.ssllabs.com",
"fromCache": true,
"maxAge": 72,
"all": "on",
"ignoreMismatch": true
}, function (err, host) {
console.dir(host);
});
ssllabs.getEndpointData({
"host": "www.ssllabs.com",
"s": "64.41.200.100",
"fromCache": true
}, function (err, endpointData) {
console.dir(endpointData);
});
ssllabs.getStatusCodes(function (err, statusCodes) {
console.dir(statusCodes);
});
ssllabs.getRootCertsRaw(function (err, rootCertsRaw) {
console.dir(rootCertsRaw);
});
ssllabs.getRootCertsRaw({
trustStore: 5
}, function (err, rootCertsRaw) {
console.dir(rootCertsRaw);
});
ssllabs.getRootCerts(function (err, rootCerts) {
console.dir(rootCerts);
});
ssllabs.getRootCerts({
trustStore: 5
}, function (err, rootCerts) {
console.dir(rootCerts);
});
As of version 1.1.0, this library will respect your HTTPS_PROXY
environment variable and tunnel all requests to the specified URL. Compatible with all protocols supported by proxy-agent.
As of version 2.1.0, this library will set the proxy agent on each request it makes and will not override the global HTTP agent.
node-ssllabs is available under the MIT License.
scan
function emit events for polling progress2.1.0— April 16, 2020
2.0.0— April 10, 2020
1.1.3— April 10, 2020
1.1.2— May 22, 2019
1.1.1— May 21, 2019
1.1.0— May 4, 2019
1.0.2— May 3, 2019
1.0.1— May 3, 2019
1.0.0— May 3, 2019
0.6.0— May 2, 2019
scan()
trustStore
parameter to the getRootCertsRaw()
callgetRootCerts()
call that returns the data as a plain-old object0.5.0 — July 14, 2016
getRootCertsRaw
normalizeOptions
function0.4.3 — May 1, 2015
0.4.2 — April 27, 2015
info
before calling analyze
in the scan
function0.4.1 — April 27, 2015
scan
function to use analyze
function for dryness0.4.0 — April 23, 2015
startNew
and fromCache
options are both true0.3.0 — April 21, 2015
scan
function to encapsulate protocol usage0.2.0 — April 20, 2015
0.1.0 — April 20, 2015
getEndpointData
api endpoint.getStatusCodes
api endpoint.0.0.1 — April 20, 2015
Initial version
supports two api endpoints, info
and analyze
FAQs
A node.js library for the SSL Labs API.
The npm package node-ssllabs receives a total of 554 weekly downloads. As such, node-ssllabs popularity was classified as not popular.
We found that node-ssllabs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.