Skip to content
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

Possibility to create PKCS12 file #103

Open
mharrend opened this issue Nov 25, 2017 · 0 comments
Open

Possibility to create PKCS12 file #103

mharrend opened this issue Nov 25, 2017 · 0 comments

Comments

@mharrend
Copy link

mharrend commented Nov 25, 2017

First of all thanks for the very useful package.

For one application (Thingsboard) I would need a pkcs12 certificate store instead of PEM files.
Currently, I am using a cron job in /etc/periodic/monthly to do this via

cd /etc/letsencrypt/production/certs/thingsboard/ 
openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out pkcs.p12 -name thingsboard -password pass:PASSWORD

However, this requires to mount /etc/periodic as a volume on the host to keep the cron job persistent.

It would be nice to include this in the binary rancher-letsencrypt.
Maybe in this place:
https://github.com/janeczku/rancher-letsencrypt/blob/master/manager.go#L128
via os/exec.
The reason of using os/exec would be that unfortunately encoding pkcs12 file never made it into x/crypto repo, see golang/go#14125

Would you except a PR in such a manner? If yes, I would work on such one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant