
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@cto.af/ca
Advanced tools
Testing-only Certificate Authority (CA) for your local development environment ONLY. This is in no way suitable for production of any kind.
Testing-only Certificate Authority (CA) for your local development environment ONLY. This is in no way suitable for production of any kind.
This package will automatically create new keypairs as needed, with the CA cert lasting a year by default and the leaf certs 3 days by default.
Currently, there is NO SECURITY for the private keys. These should be stored in an OS-specific keychain one day.
npm install @cto.af/ca
Full API documentation is available.
Example:
import {createCert} from '@cto.af/ca';
import {createServer} from 'node:tls';
// This reads and writes files from a user-scoped config directory for
// the CA cert and cwd()/.cert for the certificate.
const {key, cert} = await createCert({
host: 'foo.local', // Default: 'localhost'
});
const server = createServer({key, cert}, () => {
// Handle connection
});
A rudimentary CLI is provided.
Usage: cto-af-ca [options] [command]
Options:
-d,--dir <DIRECTORY> Directory for CA certs (default:
"[User config directory]/@cto.af/ca-nodejs")
-h, --help display help for command
-q,--quiet Less verbose
-v,--verbose More verbose
Commands:
cert [options] Create a cert signed by the CA
create [options] Create a CA certificate
dir Show directory for certs
list List exising certs by subject
rm <SUBJECT> Remove a CA cert by subject
help [command] display help for command
FAQs
Testing-only Certificate Authority (CA) for your local development environment ONLY. This is in no way suitable for production of any kind.
We found that @cto.af/ca demonstrated a healthy version release cadence and project activity because the last version was released less than 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 threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.