
Security News
Static vs. Runtime Reachability: Insights from Latio’s On the Record Podcast
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Access the system certificate store on Windows, macOS and Linux.
import { systemCertsSync, systemCertsAsync } from 'system-ca';
console.log(systemCertsSync())
console.log(await systemCertsAsync())
tls.connect({
host: 'google.com',
port: 443,
ca: await systemCertsAsync({ includeNodeCertificates: true })
})
The systemCertsSync()
and systemCertsAsync()
functions perform the same
operation, namely, listing all trusted certificates as an array of PEM-formatted
X.509 certificates.
The result can be passed directly to the ca
option of tls.connect()
and similar methods.
systemCertsAsync()
may be preferable, because accessing the
system store can be slow, especially on Windows.systemCertsAsync()
uses a worker thread under the hood on Windows and macOS./etc/ssl
, /etc/pki
).Apache-2.0
FAQs
Access the system certificate store on Windows, macOS and Linux
The npm package system-ca receives a total of 57,053 weekly downloads. As such, system-ca popularity was classified as popular.
We found that system-ca demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 33 open source maintainers 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.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.