2016-04-10 13:56:13 +00:00
|
|
|
# Cert
|
2016-06-18 12:59:46 +00:00
|
|
|
Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeScript ready.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
import {Cert} from "cert";
|
|
|
|
|
2016-06-18 13:42:09 +00:00
|
|
|
let myCert = new Cert({
|
2016-06-18 12:59:46 +00:00
|
|
|
cfEmail = "some@cloudflare.email",
|
|
|
|
cfKey = "someCloudflareApiKey",
|
|
|
|
outputPath = "someOutputPath" // NOTE: if you already have certificates, make sure you put them in here, so cert only requires the missing ones
|
|
|
|
});
|
|
|
|
|
|
|
|
myCert.getDomainCert("example.com");
|
|
|
|
```
|