brndnmtthws / vault-dcos

Vault on DCOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set VAULT_TLS_* environment variables?

charlesmims opened this issue · comments

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?

I found this issue: mesosphere/marathon-lb#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.