![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
check-cert-expiration
Advanced tools
query an SSL/TLS server and report its certificate's expiration date
Queries an SSL/TLS server and reports when its certificate expires.
npm install --global check-cert-expiration # for the command line utility
npm install --save check-cert-expiration # for the library function
The check-cert-expiration
script accepts 1 or more URLs as command line arguments and prints the results.
Happy path (return code is 0
):
$ check-cert-expiration tomcort.com github.com
host=tomcort.com port=443 valid_to="Apr 15 13:54:00 2016 GMT" daysLeft=26
host=github.com port=443 valid_to="May 17 12:00:00 2018 GMT" daysLeft=787
Error path (return code is 1
):
$ check-cert-expiration does-not-exist.example.com
host=does-not-exist.example.com port=443 message="getaddrinfo ENOTFOUND"
Parameters:
targetUrl
- a server URL (e.g. https://www.tomcort.com/
) or hostname (e.g. tomcort.com
).callback
- a callback function which accepts (err, result
). result
will have the following properties:host
- hostname of the host checked.port
- TCP port number of the host checked,valid_to
- JavaScript Date string.daysLeft
- how many days left until the certificate expires."use strict";
var checkCertExpiration = require('check-cert-expiration');
checkCertExpiration('tomcort.com', function (err, result) {
if (err) {
console.error(err);
return;
}
console.log("%s days until the certificate expires for %s:%s", result.daysLeft, result.host, result.port);
});
npm test
See LICENSE.md
FAQs
query an SSL/TLS server and report its certificate's expiration date
The npm package check-cert-expiration receives a total of 37 weekly downloads. As such, check-cert-expiration popularity was classified as not popular.
We found that check-cert-expiration 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.