Skip to content

Commit

Permalink
refactor architecture; more reliable challenges; fix readme; cli: fix…
Browse files Browse the repository at this point in the history
… domains with subdomains
  • Loading branch information
wille-io committed Mar 23, 2024
1 parent 7c2094c commit 9c09739
Show file tree
Hide file tree
Showing 4 changed files with 530 additions and 245 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.crt
*.pem
deno.lock
deno.lock
.deno-acme/
.DS_Store
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
sudo deno install -A --allow-read=. --allow-write=. --allow-net --name acme --root /usr/local/ https://deno.land/x/acme@v0.3.0/cli.ts
sudo deno install -A --allow-read=. --allow-write=. --allow-net --name acme --root /usr/local/ https://deno.land/x/acme@v0.3.1/cli.ts
# http challenge:
sudo acme http example.com,subdomain.example.com
# cloudflare dns challenge:
Expand All @@ -27,7 +27,7 @@ sudo acme cloudflare example.com,subdomain.example.com
## Library
To use acme as a library in your application, add the following:
```
import * as ACME from "https://deno.land/x/acme@v0.3.0/acme.ts"
import * as ACME from "https://deno.land/x/acme@v0.3.1/acme.ts"
// http challenge:
const { domainCertificates } = await ACME.getCertificatesWithHttp("example.com", "https://acme-staging-v02.api.letsencrypt.org/directory");
Expand Down
Loading

0 comments on commit 9c09739

Please sign in to comment.