zerossl-client
v1.1.1
Published
Unofficial Node client for Zero SSL
Downloads
9
Readme
ZeroSSL Client
Unofficial Node.js client for the ZeroSSL API
Features
- Easy management of SSL certificates.
- Straightforward integration with the ZeroSSL API.
- Supports all key operations such as creating, revoking, and getting the status of certificates.
Installation
npm install zerossl-client
yarn add zerossl-client
pnpm install zerossl-client
Usage
To use the Zero SSL Client, you need to instantiate it with your ZeroSSL API token. Here is a basic example:
import {ZeroSSL} from 'zerossl-client';
const client = new ZeroSSL('your-api-token');
// Generating a new CSR
const csr = await client.generateCsr({
common_name: "example.com",
organization: "Example Inc",
organizational_unit: "IT",
locality: "San Francisco",
state: "California",
country: "US",
email: "[email protected]",
});
// Creating a new SSL certificate
await client.createCertificate({
certificate_domains: "example.com",
certificate_csr: csr,
});
Disclaimer
This library is a community open source project. There is no connection with ZeroSSL or Stack Holdings GmbH. The term ZeroSSL/zerossl is recognised as ZeroSSL™, a trademark of Stack Holdings GmbH in the USA, EU & UK and this library is provided in good faith as a community open source project.