forked from TrueCloudLab/lego
Stub out simple CLI example
This commit is contained in:
parent
1b07617a49
commit
c4add3c81e
1 changed files with 17 additions and 0 deletions
17
README.md
17
README.md
|
@ -65,6 +65,23 @@ GLOBAL OPTIONS:
|
|||
|
||||
```
|
||||
|
||||
##### CLI Example
|
||||
|
||||
Assumes the `lego` binary has permission to bind to ports 80 and 443. You can get a pre-built binary from the [releases](https://github.com/xenolf/lego/releases) page.
|
||||
|
||||
Obtain a certificate:
|
||||
|
||||
```bash
|
||||
$ lego --email="foo@bar.com" --domains="example.com" run
|
||||
```
|
||||
|
||||
(Find your certificate in the `.lego` folder of current working directory.)
|
||||
|
||||
To renew the certificate:
|
||||
|
||||
```bash
|
||||
$ lego --email="foo@bar.com" --domains="example.com" renew
|
||||
```
|
||||
|
||||
#### ACME Library Usage
|
||||
|
||||
|
|
Loading…
Reference in a new issue