You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+50-8Lines changed: 50 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,36 @@ Automatically Create and Renew `LetsEncrypt! SSL Certificates`, including `Wildc
4
4
5
5
### Getting Started
6
6
7
-
This most recent version of this package is implemented in [`SSL Server`](https://github.com/FirstTimeEZ/server-ssl) and you can use that to understand how it works if the `jsdoc` isn't enough information.
You can generate `Wild Card Certificates` if you are using a supported `DNS Provider`
13
+
Create a `LetsEncryptDaemon` and then start the `Daemon`
14
+
15
+
```javascript
16
+
constdaemon=newLetsEncryptDaemon();
17
+
awaitdaemon.startLetsEncryptDaemon(...); // You can only start this once, it will configure itself to run again.
18
+
daemon.checkChallengesMixin(...); // You must check the HTTP-01 Challenges for each LetsEncryptDaemon
19
+
```
20
+
21
+
#### Complete Example Usage
22
+
23
+
This most recent version of this package is implemented in [`SSL Server`](https://github.com/FirstTimeEZ/server-ssl)
24
+
25
+
You can use [`SSL Server`](https://github.com/FirstTimeEZ/server-ssl) to understand how it works if the `jsdoc` isn't enough information.
26
+
27
+
--------
28
+
29
+
### Wild Card Certificates
12
30
13
31
| Supported DNS Providers |
14
32
|-------------------------|
15
33
| Cloud Flare |
16
34
35
+
You can generate `Wild Card Certificates` if you are using a supported `DNS Provider`
36
+
17
37
```
18
38
let dnsProvider = {
19
39
name: "Cloud Flare",
@@ -28,11 +48,21 @@ let dnsProvider = {
28
48
29
49
### LetsEncrypt! Daemon
30
50
51
+
`LetsEncryptDaemon` is the default exported class
52
+
53
+
```javascript
54
+
constdaemon=newLetsEncryptDaemon();
55
+
```
56
+
57
+
### Daemon
58
+
31
59
The `Daemon` runs periodically to `Create` or `Renew` the `Certificate`
32
60
61
+
### Jsdoc
62
+
33
63
```javascript
34
64
/**
35
-
* Starts the LetsEncrypt! Daemon to Manage the SSL Certificate for the Server
65
+
* Starts the LetsEncrypt! Daemon to Manage a SSL Certificate
36
66
*
37
67
* @param{Array<string>}fqdns - The fully qualified domain names as a SAN (e.g., ["example.com", "www.example.com"]), You must use a `dnsProvider` if you include a wild card
38
68
* @param{string}sslPath - The path where your acme account, keys and generated certificate will be stored or loaded from
@@ -50,7 +80,12 @@ The `Daemon` runs periodically to `Create` or `Renew` the `Certificate`
50
80
* @note
51
81
* If you start this more than once nothing will happen
0 commit comments