-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ Use the CLI as a standalone acme client, or use the acme.ts library to use it in | |
## CLI | ||
How to get & use the CLI: | ||
```bash | ||
sudo deno install -A --allow-read=. --allow-write=. --allow-net --name acme --root /usr/local/ https://deno.land/x/[email protected].0/cli.ts | ||
sudo deno install -A --allow-read=. --allow-write=. --allow-net --name acme --root /usr/local/ https://deno.land/x/[email protected].1/cli.ts | ||
# http challenge: | ||
sudo acme http example.com,subdomain.example.com | ||
# cloudflare dns challenge: | ||
|
@@ -28,7 +28,7 @@ Note: For http challenges permissions to bind to port 80 are needed. Otherwise u | |
## Library | ||
To use acme as a library in your application, add the following (minimal example with temporary & anonymous acme account creation): | ||
```typescript | ||
import * as ACME from "https://deno.land/x/[email protected].0/acme.ts" | ||
import * as ACME from "https://deno.land/x/[email protected].1/acme.ts" | ||
|
||
// http challenge: | ||
const { domainCertificates } = await ACME.getCertificatesWithHttp("example.com"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "@mw/acme", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"exports": "./acme.ts" | ||
} |