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.
|
|
|
|
|
2016-06-18 14:03:46 +00:00
|
|
|
> Note: this package is in pre-alpha stage and will be ready soon.
|
|
|
|
|
2016-06-18 12:59:46 +00:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
import {Cert} from "cert";
|
|
|
|
|
2016-06-18 13:42:09 +00:00
|
|
|
let myCert = new Cert({
|
2016-06-18 14:03:46 +00:00
|
|
|
cfEmail: "some@cloudflare.email",
|
|
|
|
cfKey: "someCloudflareApiKey",
|
|
|
|
sslDir: "someOutputPath", // NOTE: if you already have certificates, make sure you put them in here, so cert only requires the missing ones
|
|
|
|
gitOriginRepo: "git@githhub.com/someuser/somereopo" // good for pesistence in highly volatile environments like docker
|
2016-06-18 12:59:46 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
myCert.getDomainCert("example.com");
|
2016-06-18 13:59:03 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### sslDir
|
|
|
|
to use the certificates it is important to understand what the structure of the ssl directory looks like.
|