Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jojobyte/traefikjam
A tiny (zero dependency) Node.js CLI utility to convert Traefik Let's Encrypt certificates from acme.json to PEM files
https://github.com/jojobyte/traefikjam
certificates cli devops docker dockerfile javascript js letsencrypt letsencrypt-certificates no-dependencies node node-js nodejs pem ssl ssl-certificates traefik traefik-docker zero-dependencies zero-dependency
Last synced: 2 months ago
JSON representation
A tiny (zero dependency) Node.js CLI utility to convert Traefik Let's Encrypt certificates from acme.json to PEM files
- Host: GitHub
- URL: https://github.com/jojobyte/traefikjam
- Owner: jojobyte
- Created: 2022-06-02T07:33:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-17T02:27:37.000Z (10 months ago)
- Last Synced: 2024-10-29T20:47:51.918Z (3 months ago)
- Topics: certificates, cli, devops, docker, dockerfile, javascript, js, letsencrypt, letsencrypt-certificates, no-dependencies, node, node-js, nodejs, pem, ssl, ssl-certificates, traefik, traefik-docker, zero-dependencies, zero-dependency
- Language: JavaScript
- Homepage: https://jojo.io/posts/export-traefik-certs-with-node-to-pem
- Size: 15.6 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
![npm](https://img.shields.io/npm/v/traefikjam)
[![Node Build](https://github.com/jojobyte/traefikjam/actions/workflows/node-build.yml/badge.svg)](https://github.com/jojobyte/traefikjam/actions/workflows/node-build.yml)
![Docker Image Version](https://img.shields.io/docker/v/jojobyte/traefikjam/latest?label=DockerHub)
[![Docker Build](https://github.com/jojobyte/traefikjam/actions/workflows/docker-build.yml/badge.svg)](https://github.com/jojobyte/traefikjam/actions/workflows/docker-build.yml)# Traefik Jam
A small (zero dependency) Node.js CLI utility to convert Traefik Let's Encrypt certificates from acme.json to PEM files
## Node.js Install
```sh
npm install -g traefikjamyarn global add traefikjam
pnpm add -g traefikjam
```
[Install from NPM](https://www.npmjs.com/package/traefikjam)[Install from GitHub Packages](https://github.com/jojobyte/traefikjam/packages/1456711)
## Deno Usage
```sh
deno run --compat --unstable --allow-env \
--allow-read --allow-write=./certs \
bin/traefik-jam.js ./data/acme.json example.net
```## CLI Usage
```sh
# 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
```## API Usage
```js
import { exportCerts } from 'traefikjam'exportCerts('./path/to/acme.json', 'example.domain.com')
```## Docker
```sh
# 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
```[Install from Docker Hub](https://hub.docker.com/r/jojobyte/traefikjam)
[Install from GitHub Container Registry](https://github.com/jojobyte/traefikjam/pkgs/container/traefikjam)