-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACME file format description #1012
Comments
I am still trying to figure out the format of the private key. I need to use the key in another service to encrypt the token. Does maybe traefik offer an option store the keys as files in pem format? |
I would like traefik automatic generate pem files after updating acme.json. What is the format of the acme.json private keys?
Shell script to get the pem files. cat acme/acme.json | head -n {line} | tail -n 1 | cut -d ":" -f 2 | cut -d "\"" -f 2 | base64 --decode > certs/private.pem
cat acme/acme.json | head -n {line} | tail -n 1 | cut -d ":" -f 2 | cut -d "\"" -f 2 | base64 --decode > certs/certificate.pem |
To make this a more stable process, I just submitted a PR for a script to |
I'm also wondering how to get a folder with Let’s Encrypt certs so that the they could be reused inside the services (gitlab and docker-mailserver in particular). These services are declared with services:
gitlab:
#...
volumes:
#...
- 'certs:/etc/gitlab/ssl'
volumes:
certs:
external:
name: acme_certs In my current setup, a global docker volume called @brianredbeard is your PR generating such a folder? If yes, how can I tell traefik to always keep it up-to-date so that I could use it as a volume for my other dockerized services? |
@kachkaev See #2418 (comment) for a (hacky) solution to create such volume from acme.json |
Is there a way to to the opposite? I want to migrate from nginx to traefik and I want to import the existing PEM files from Letsencrypt into the acme.json file |
@tompson: it looks like it's just a base64 encoding of the
And then pate those value into the relevant sections below (
|
What version of Traefik are you using (
traefik version
)?1.1.2
What is your environment & configuration (arguments, toml...)?
I need to get the private key to sign a token in a downstream service. I need to get the private key in the .pem format or convert it into this format.
What is the format of the acme.json private keys?
Why are there 2 private keys?
Is there a way to get a key in the pem format?
The text was updated successfully, but these errors were encountered: