
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
test-acme-client-2
Advanced tools
Automatically Issue and Renew Let's Encrypt Certificates
(ACMEv2)
Utilizes a Daemon
that operates periodically alongside a Mixin
to handle challenge completions.
You can view the full SSL Server Example
to understand the Daemon
and Mixin
The Daemon
runs periodically to Issue or Renew the certificate
/**
* Starts the Let's Encrypt daemon to manage SSL certificates.
*
* @param {array} fqdns - The fully qualified domain name as a SAN ["example.com","www.example.com"]
* @param {string} sslPath - The path where the public and private keys will be stored/loaded from.
* @param {boolean} daysRemaining - The number of days left before the certificate expires
* @param {function} certificateCallback - callback that can be used to update the certificates if auto restart is disabled
* @param {boolean} optGenerateAnyway - (optional) True to generate certificates before the 60 days has passed
* @param {boolean} optStaging - (optional) True to use staging mode instead of production
* @param {boolean} optAutoRestart - (optional) True to restart after certificates are generated, You don't need to do this but you might want to
* @param {function} countdownHandler - (optional) paramterless function that will fire every second during the restart count down
* @param {function} countdownTime - (optional) how long in seconds to countdown before restarting, default 30 seconds
*/
export async function startLetsEncryptDaemon(fqdns, sslPath, daysRemaining, certificateCallback, optGenerateAnyway, optStaging, optAutoRestart, countdownHandler, countdownTime)
HTTP Mixin
that completes the HTTP-01
Challenges created by the Daemon
/**
* Node.js Middleware function to check and respond to ACME HTTP-01 challenges inside the HTTP Server.
*
* @example
* createServerHTTP((req, res) => { if (checkChallengesMixin(req, res)) { return; } }).listen(80);
*/
export async function checkChallengesMixin(req, res)
FAQs
ACME Client Implementation
We found that test-acme-client-2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.