![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.
@sealsystems/tlscert
Advanced tools
@sealsystems/tlscert provides TLS key and certificate.
npm install @sealsystems/tlscert
First you need to add a reference to @sealsystems/tlscert within your application.
const tlscert = require('@sealsystems/tlscert');
To get the content of the certificate and private key from a specific directory, first you need to set the TLS_DIR
environment variable:
export TLS_DIR=$(pwd)
Then, call the get
function:
const keystore = await tlscert.get();
console.log(keystore);
// => {
// key: '...',
// cert: '...',
// ca: '...'
// isFallback: true/false
// }
If you do not set the environment variable, a default key and a default certificate will be returned. In this case the property isFallback
is set to true
.
if (keystore.isFallback) {
console.log('This is the fallback key and certificate provided by the module.');
}
Please note that the files must be called key.pem
, cert.pem
and ca.pem
, and that they have to be stored in PEM format. Having a ca.pem
file is optional.
This module uses a self-signed certificate if no other is provided. This certificate is valid for 10 years (3650 days to be exact ;-)). To see the details of the certificate, call:
npm run show-cert
To create a new one (with a new expiration date), run:
npm run generate-cert
Do not forget to release a new version in order to publish the created certificate.
BTW: It should be no problem if a system contains multiple versions of the self-signed certificate as long as they are not expired.
To build this module use roboter.
$ bot
FAQs
Provides TLS key and certificate
The npm package @sealsystems/tlscert receives a total of 11 weekly downloads. As such, @sealsystems/tlscert popularity was classified as not popular.
We found that @sealsystems/tlscert demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
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.