brndnmtthws / vault-dcos

Vault on DCOS
Apache License 2.0
44 stars 15 forks source link

How to set VAULT_TLS_* environment variables? #7

Open charlesmims opened 6 years ago

charlesmims commented 6 years ago

How can one assign .pem key and cert to environment variables in marathon? I tried setting it to the base64 encoded string of my key and cert, that didn't work.
Error initializing listener of type tcp: error loading TLS cert: decoded PEM is blank Can someone provide an example for this?

charlesmims commented 6 years ago

I found this issue: https://github.com/mesosphere/marathon-lb/issues/422 where brndnmtthws suggested using $ sed ':a;N;$!ba;s/\n/\\n/g' key.pem to properly format a .pem key, but when I do that, it still has newlines in it (prints in a visually normal block) which isn't correct json afaik.