{"action":"opened","issue":{"url":"https://api.github.com/repos/pivpn/pivpn/issues/563","repository_url":"https://api.github.com/repos/pivpn/pivpn","labels_url":"https://api.github.com/repos/pivpn/pivpn/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/pivpn/pivpn/issues/563/comments","events_url":"https://api.github.com/repos/pivpn/pivpn/issues/563/events","html_url":"https://github.com/pivpn/pivpn/issues/563","id":342584937,"node_id":"MDU6SXNzdWUzNDI1ODQ5Mzc=","number":563,"title":"Path error for pivpn add","user":{"login":"xiaohk","id":15007159,"node_id":"MDQ6VXNlcjE1MDA3MTU5","avatar_url":"https://avatars2.githubusercontent.com/u/15007159?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaohk","html_url":"https://github.com/xiaohk","followers_url":"https://api.github.com/users/xiaohk/followers","following_url":"https://api.github.com/users/xiaohk/following{/other_user}","gists_url":"https://api.github.com/users/xiaohk/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaohk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaohk/subscriptions","organizations_url":"https://api.github.com/users/xiaohk/orgs","repos_url":"https://api.github.com/users/xiaohk/repos","events_url":"https://api.github.com/users/xiaohk/events{/privacy}","received_events_url":"https://api.github.com/users/xiaohk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-19T05:35:52Z","updated_at":"2018-07-19T05:35:52Z","closed_at":null,"author_association":"NONE","body":"I have successfully install `pivpn`, but it seems there is a path error when I run `pivpn add`.\r\n\r\n`pivpn` tries to save the `.ovpn` file in `/home//ovpns/` which is an illegal directory.\r\n\r\nAre there any way to redirect the output path?\r\n\r\n```\r\npi@raspberrypi:/etc/openvpn/easy-rsa $ pivpn add\r\ncat: /etc/pivpn/INSTALL_USER: No such file or directory\r\nEnter a Name for the Client:  jay\r\nEnter the password for the client:\r\nEnter the password again to verify:\r\nspawn ./easyrsa build-client-full jay\r\n\r\nNote: using Easy-RSA configuration from: ./vars\r\nrand: Use -help for summary.\r\nGenerating a 2048 bit RSA private key\r\n.........................................................................+++\r\n.....................+++\r\nwriting new private key to '/etc/openvpn/easy-rsa/pki/private/jay.key.83vu0LVX1q'\r\nEnter PEM pass phrase:\r\nVerifying - Enter PEM pass phrase:\r\n-----\r\nUsing configuration from /etc/openvpn/easy-rsa/openssl-1.0.cnf\r\nCheck that the request matches the signature\r\nSignature ok\r\nThe Subject's Distinguished Name is as follows\r\ncommonName            :ASN.1 12:'jay'\r\nCertificate is to be certified until Jul 16 05:32:48 2028 GMT (3650 days)\r\n\r\nWrite out database with 1 new entries\r\nData Base Updated\r\nspawn openssl rsa -in pki/private/jay.key -aes128 -out pki/private/jay.key\r\nEnter pass phrase for pki/private/jay.key:\r\nwriting RSA key\r\nEnter PEM pass phrase:\r\nVerifying - Enter PEM pass phrase:\r\nClient's cert found: jay.crt\r\nClient's Private Key found: jay.key\r\nCA public Key found: ca.crt\r\ntls-auth Private Key found: ta.key\r\ncat: Default.txt: No such file or directory\r\ncp: cannot create regular file '/home//ovpns/jay.ovpn': No such file or directory\r\nchown: cannot access '/home//ovpns/jay.ovpn': No such file or directory\r\n\r\n\r\n========================================================\r\nDone! jay.ovpn successfully created!\r\njay.ovpn was copied to:\r\n  /home//ovpns\r\nfor easy transfer. Please use this profile only on one\r\ndevice and create additional profiles for other devices.\r\n========================================================\r\n```"}}
{"actor":{"display_login":"xiaohk"}}