Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
syswide-cas
Advanced tools
Enable node to use system wide certificate authorities in conjunction with bundled root CAs
Enable node to use system wide certificate authorities in conjunction with bundled root CAs.
Node does not support system-wide installed trusted certificate authorities. It is only possible to specify a custom
CA via the ca
option in the tls
and https
modules, or fallback to using the bundled list of root CAs that
node is compiled with.
This module enables loading custom CAs located in a system-wide directory in conjunction with the node bundled root CAs.
npm install --save syswide-cas
Add require('syswide-cas')
as soon as possible as it affects all later TLS calls.
// "require('syswide-cas')" immediatley loads CAs from the following locations:
// /etc/ssl/certs, /etc/pki/tls/certs, /etc/ssl/ca-bundle.pem, /etc/pki/tls/cacert.pem
const syswidecas = require('syswide-cas');
// optionally load all files from a custom directory
syswidecas.addCAs('/my/custom/path/to/certs/dir');
// or multiple directories
syswidecas.addCAs(['/my/custom/path/to/certs/dir1', '/my/other/path/to/certs/dir2']);
// optionally load a file directly
syswidecas.addCAs('/my/custom/path/to/cert.pem');
// or multiple files
syswidecas.addCAs(['/my/custom/path/to/cert1.pem', '/my/other/path/to/cert2.pem']);
const https = require('https');
https.get('https://my.custom.domain.com/with/self/signed/cert');
Copyright 2016 Capriza. Code released under the MIT license
FAQs
Enable node to use system wide certificate authorities in conjunction with the bundled root CAs
The npm package syswide-cas receives a total of 4,427 weekly downloads. As such, syswide-cas popularity was classified as popular.
We found that syswide-cas 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.