![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.
A library to generate a certificate for HTTPS use using AWS Private Certificate Authority (PCA)
A library to generate and fetch a certificate for HTTPS use using AWS Private Certificate Authority (PCA).
Required:
npm i aws-pca pem aws-sdk
import AWS from 'aws-sdk'
import pem from 'pem'
import { PCA } from 'aws-pca'
export async function sample () {
// See https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ACMPCA.html#constructor-property
// for possible options
const acmpca = new AWS.ACMPCA()
// The value of your CA (Certificate Authority) ARN in AWS PCA
const CA_ARN = 'arn:aws:acm-pca:us-west-2:123456789012:certificate-authority/4819f73f-af7c-4abf-8753-62e40512cac6'
const pca = new PCA(acmpca, pem, CA_ARN)
// Create a CSR + client key which will be used to issue a certificate
// See https://www.deineagentur.com/projects/pem/module-pem.html#.createCSR
const csrData = await pca.createCSR({
hash: 'sha256',
country: 'US',
state: 'California',
locality: 'San Francisco',
organization: 'Fake Company, Inc',
organizationUnit: 'Engineering',
commonName: 'fake.com',
altNames: ['alt-fake.com']
})
// Create the server certificate
// See https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ACMPCA.html#issueCertificate-property
// - no need to specify CertificateAuthorityArn since you specified it in the constructor
// - also waits for the issue certificate task on AWS to complete (this takes around 5+ secs)
const issueData = await pca.issueCertificate(csrData.csr, {
SigningAlgorithm: 'SHA256WITHRSA',
Validity: {
Type: 'YEARS',
Value: 1
}
})
// issueData will have { CertificateArn, Certificate, CertificateChain }
// You can technically stop here as you have the Certificate + CertificateChain data
// Get the server certificate (not needed if you've just called issueCertificate()
const certData = await pca.getCertificate(issueData.CertificateArn)
// certData will have { Certificate, CertificateChain }
// Get the CA certificate if you need to add it to your trust stores
const caData = await pca.getCaCertificate()
// caData will have { Certificate, CertificateChain }
}
1.0.1 - Mon Jan 14 2019 01:21:41
issueCertificate()
since calling ACMPCA#issueCertificate()
only creates an AWS
task to create a certificateFAQs
A library to generate a certificate for HTTPS use using AWS Private Certificate Authority (PCA)
The npm package aws-pca receives a total of 0 weekly downloads. As such, aws-pca popularity was classified as not popular.
We found that aws-pca 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.