{"action":"closed","issue":{"url":"https://api.github.com/repos/ftao/vpn-deploy-playbook/issues/87","labels_url":"https://api.github.com/repos/ftao/vpn-deploy-playbook/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/ftao/vpn-deploy-playbook/issues/87/comments","events_url":"https://api.github.com/repos/ftao/vpn-deploy-playbook/issues/87/events","html_url":"https://github.com/ftao/vpn-deploy-playbook/issues/87","id":96258473,"number":87,"title":"openvpn-skrver 跑完后生成的 ovpn 配置文件","user":{"login":"lexrus","id":219689,"avatar_url":"https://avatars.githubusercontent.com/u/219689?v=3","gravatar_id":"","url":"https://api.github.com/users/lexrus","html_url":"https://github.com/lexrus","followers_url":"https://api.github.com/users/lexrus/followers","following_url":"https://api.github.com/users/lexrus/following{/other_user}","gists_url":"https://api.github.com/users/lexrus/gists{/gist_id}","starred_url":"https://api.github.com/users/lexrus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexrus/subscriptions","organizations_url":"https://api.github.com/users/lexrus/orgs","repos_url":"https://api.github.com/users/lexrus/repos","events_url":"https://api.github.com/users/lexrus/events{/privacy}","received_events_url":"https://api.github.com/users/lexrus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-21T08:28:49Z","updated_at":"2015-07-24T14:32:19Z","closed_at":"2015-07-24T14:32:19Z","body":"想用自动生成的证书来验证，role 跑完后生成的客户端配置文件有 ca 的证书：\r\n```\r\n<ca>\r\n-----BEGIN CERTIFICATE-----\r\nMIIF+jCCA+KgAwIBAgIBATANBgkqh....\r\n</ca>\r\n```\r\n\r\n但是模板里的 cert 和 key 都没有生成到这个配置文件里。\r\n```\r\n{% if openvpn_cert_source == \"gen\" %}\r\n<ca>\r\n{{ ca_cert_content_action.stdout }}\r\n</ca>\r\n{% if client_cert_content_action is defined %}\r\n<cert>\r\n{{ client_cert_content_action.stdout }}\r\n</cert>\r\n{% endif %}\r\n{% if client_key_content_action is defined %}\r\n<key>\r\n{{ client_key_content_action.stdout }}\r\n</key>\r\n{% endif %}\r\n{% endif %}\r\n```\r\n\r\n我用 Tunnelblick 打开这个配置连接时会提示: \r\n```\r\nOptions error: No client-side authentication method is specified.  You must use either --cert/--key, --pkcs12, or --auth-user-pass\r\n```\r\n"}}