{"action":"opened","issue":{"url":"https://api.github.com/repos/mbruzek/layer-tls/issues/5","labels_url":"https://api.github.com/repos/mbruzek/layer-tls/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/mbruzek/layer-tls/issues/5/comments","events_url":"https://api.github.com/repos/mbruzek/layer-tls/issues/5/events","html_url":"https://github.com/mbruzek/layer-tls/issues/5","id":122149474,"number":5,"title":"base64 encode the root_certificate config parameter","user":{"login":"mbruzek","id":6385185,"avatar_url":"https://avatars.githubusercontent.com/u/6385185?v=3","gravatar_id":"","url":"https://api.github.com/users/mbruzek","html_url":"https://github.com/mbruzek","followers_url":"https://api.github.com/users/mbruzek/followers","following_url":"https://api.github.com/users/mbruzek/following{/other_user}","gists_url":"https://api.github.com/users/mbruzek/gists{/gist_id}","starred_url":"https://api.github.com/users/mbruzek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbruzek/subscriptions","organizations_url":"https://api.github.com/users/mbruzek/orgs","repos_url":"https://api.github.com/users/mbruzek/repos","events_url":"https://api.github.com/users/mbruzek/events{/privacy}","received_events_url":"https://api.github.com/users/mbruzek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-14T22:46:04Z","updated_at":"2015-12-14T22:46:04Z","closed_at":null,"body":"In testing I was not able to set a root_certificate because the contents of a certificate get interpreted as a new command.\r\n\r\n```bash\r\njuju set tls root_certificate=`cat /home/mbruzek/ca.crt`\r\nerror: flag provided but not defined: -----END\r\n```\r\nWe should fix the charm to accept base64 encoded certificate which means the code needs to change to decode it on config_get."}}