
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Simple module to split a single certificate authority chain file (aka: bundle, ca-bundle, ca-chain, etc.) into an array, as expected by the node.js tls api.
Simple node.js module to split a single certificate authority chain file (bundle, ca-bundle, ca-chain, etc.) into an array, as expected by the node.js tls api
npm install split-ca
Usage will depend on your server module of choice, but most https modules require an options hash with ca
, key
, and cert
. Simply give split-ca the filepath of your bundle file.
var https = require('https');
var fs = require('fs');
var splitca = require('split-ca');
var options = {
ca: splitca("path/to/ca_bundle_file"),
key:fs.readFileSync("path/to/server_key_file"),
cert:fs.readFileSync("path/to/server_cert_file"),
requestCert: true,
rejectUnauthorized: true
};
https.createServer(options, function (req, res) {
res.writeHead(200);
res.end("hello world\n");
}).listen(8000);
split-ca('filepath','split-string','encoding')
filepath
A standard node path to your object. An error is thrown if the file cannot be parsed, is not formatted properly.
split-string
Optional. Defaults to "\n"
, can be replaced with anything.
encoding
Optional. Defaults to "utf-8"
, can be replaced with anything accepted by node's fs
module.
Thanks to Benjie Gillam for the blog post and sample code that was unashamedly ripped for this module.
FAQs
Simple module to split a single certificate authority chain file (aka: bundle, ca-bundle, ca-chain, etc.) into an array, as expected by the node.js tls api.
The npm package split-ca receives a total of 1,060,019 weekly downloads. As such, split-ca popularity was classified as popular.
We found that split-ca 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.