traefikjam 0.0.6
Install from the command line:
Learn more about npm packages
$ npm install @jojobyte/traefikjam@0.0.6
Install via package.json:
"@jojobyte/traefikjam": "0.0.6"
About this version
A small (zero dependency) Node.js CLI utility to convert Traefik Let's Encrypt certificates from acme.json to PEM files
npm install -g traefikjam
yarn global add traefikjam
pnpm add -g traefikjam
deno run --compat --unstable --allow-env \
--allow-read --allow-write=./certs \
bin/traefik-jam.js ./data/acme.json example.net
# show help
traefikjam -h
# extract all domains from ./data/acme.json
traefikjam ./data/acme.json
# extract example.net & github.com from ./data/acme.json
traefikjam ./data/acme.json example.net github.com
# watch ./data/acme.json and export selected domains on change
traefikjam --watch ./data/acme.json example.net github.com
import { exportCerts } from 'traefikjam'
exportCerts('./path/to/acme.json', 'example.domain.com')
# show help
docker run --rm -it \
-v $PWD/data:/opt/app/data \
-v $PWD/certs:/opt/app/certs \
jojobyte/traefikjam:latest -- -h
# extract example.net from /acme.json
docker run --rm -it \
-v $PWD/data:/opt/app/data \
-v $PWD/certs:/opt/app/certs \
jojobyte/traefikjam:latest -- ./data/acme.json example.net