0.3.0 • Published 2 years ago

json-web-certificate v0.3.0

Weekly downloads
-
License
Apache 2.0
Repository
gitlab
Last release
2 years ago

This Package implements JSON Web Certificates.

Create a CA root

    // Create a defualt CA Root with a new Jey
    let ca = await JsonWebCertificate.createCaRoot();

    // Send the certificate as json
    let json = JSON.stringify(ca.cert.toJson());

Sign a certificate request

    // Signing certificate with private key from somewhere...
    let ca = ...

    // Parse the request
    let request = await JsonWebCertificateRequest.parse(JSON.parse(jsonStringFromSomewhere));

    // Validate the request
    await request.validate();

    let certificate = await request.approve(ca);
0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.1

3 years ago