Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@dynacom/blaze
Advanced tools
Tiny acme client library and CLI to obtain ssl certificates (without using external commands like openssl).
sudo npm install letiny -g
-h, --help output usage information
-e, --email <email> your email address
-w, --webroot <path> path for webroot verification
-m, --manual use manual verification
-d, --domains <domains> domains (comma seperated)
-c, --cert <path> path to save your certificate (cert.pem)
-k, --key <path> path to load or save your private key (privkey.pem)
-i, --ca <path> path to save issuer certificate (cacert.pem)
-a, --account <path> path to load or save account key (optional)
--pfx <path> path to save PKCS#12 certificate (optional)
--password <password> password for PKCS#12 certificate (optional)
--aes use AES instead of 3DES for PKCS#12
--agree agree terms of the ACME CA (required)
--url <URL> optional AMCE server URL
--debug print debug information
When --pfx is used without --cert, --key and --ca no .pem files will be created.
letiny -e me@example.com -w /var/www/example.com -d example.com --agree
letiny -e me@example.com -m -d example.com -a account.pem -c cert.pem -k key.pem -i ca.pem --agree
letiny -e me@example.com -m -d example.com,www.example.com --agree
letiny -e me@example.com -m -d example.com --pfx cert.pfx --password secret --agree
letiny --email me@example.com --webroot ./ --domains example.com --agree
npm install letiny
This will create a file in /var/www/example.com/.well-known/acme-challenge/
to verify the domain.
require('letiny').getCert({
email:'me@example.com',
domains:['example.com', 'www.example.com'],
webroot:'/var/www/example.com',
agreeTerms:true
}, function(err, cert, key, caCert, accountKey) {
console.log(err || cert+'\n'+key+'\n'+caCert);
});
This allows you to provide the challenge data on your own, so you can obtain certificates on-the-fly within your software.
require('letiny').getCert({
email:'me@example.com',
domains:'example.com',
challenge:function(domain, path, data, done) {
// make http://+domain+path serving "data"
done();
},
agreeTerms:true
}, function(err, cert, key, caCert, accountKey) {
console.log(err || cert+'\n'+key+'\n'+caCert);
});
require('letiny').getCert({
email:'me@example.com',
domains:'example.com,www.example.com',
webroot:'/var/www/example.com',
certFile:'/etc/ssl/private/example.com/cert.pem',
caFile:'/etc/ssl/private/example.com/ca.pem',
privateKey:'/etc/ssl/private/example.com/key.pem',
accountKey:'/etc/ssl/private/example.com/account.pem',
agreeTerms:true
}, function(err) {
console.log(err);
});
Executing the same code again later, will renew the certificate using the existing account and private key.
email
: (string), Your email adressdomains
: (comma seperated string or array)agreeTerms
: (boolean), You need to agree the termswebroot
(string) or challenge
(function)If you provide "webroot" and "challenge" option, "challenge" will be ignored.
certFile
: (string), Path to save certificatekeyFile
: (string), Path to save private keycaFile
: (string), Path to save issuer certificatepfxFile
: (string), Path to save PKCS#12 certificatepfxPassword
: (string), Password for PKCS#12 certificateaccountKey
: (string), PEM or path to load or save keyprivateKey
: (string), PEM or path to load or save keyaes
: (boolean), use AES instead of 3DES for PKCS#12 certificateurl
: (string), server URL, use https://acme-staging.api.letsencrypt.org for testingfork
: (boolean), fork a child processServes webroot challenge files from a directory (can differ from public directory).
app.use(letiny.webrootChallengeMiddleware('/some/path'));
app.use(letiny.webrootChallengeMiddleware()); // default: './'
Returns a javascript Date for "validBefore" field of a Base64 encoded DER certificate string.
var expires=letiny.getExpirationDate(certPem);
MPL 2.0
FAQs
Unknown package
The npm package @dynacom/blaze receives a total of 28 weekly downloads. As such, @dynacom/blaze popularity was classified as not popular.
We found that @dynacom/blaze 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.