angristan / openvpn-install

Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS or Arch Linux.
https://stanislas.blog
MIT License
13.49k stars 2.95k forks source link

OpenVPN 2.4 Script Error #42

Closed SquirrelCoder closed 7 years ago

SquirrelCoder commented 7 years ago
--2017-03-05 21:32:18--  https://github.com/OpenVPN/easy-rsa/releases/download/3.0.1/EasyRSA-3.0.1.tgz
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-cloud.s3.amazonaws.com/releases/4519663/9dab10e8-7b6a-11e5-91af-0660987e9192.tgz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20170305%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170305T193219Z&X-Amz-Expires=300&X-Amz-Signature=b4786b817ecde82af276b0f62745ea14b5d2778ff1dbbdbff336784539530ca2&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DEasyRSA-3.0.1.tgz&response-content-type=application%2Foctet-stream [following]
--2017-03-05 21:32:19--  https://github-cloud.s3.amazonaws.com/releases/4519663/9dab10e8-7b6a-11e5-91af-0660987e9192.tgz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20170305%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170305T193219Z&X-Amz-Expires=300&X-Amz-Signature=b4786b817ecde82af276b0f62745ea14b5d2778ff1dbbdbff336784539530ca2&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DEasyRSA-3.0.1.tgz&response-content-type=application%2Foctet-stream
Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 54.231.41.75
Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.41.75|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 40960 (40K) [application/octet-stream]
Saving to: ‘/root/EasyRSA-3.0.1.tgz’

100%[=======================================================================================================================================================================>] 40,960       140KB/s   in 0.3s   

2017-03-05 21:32:20 (140 KB/s) - ‘/root/EasyRSA-3.0.1.tgz’ saved [40960/40960]

Note: using Easy-RSA configuration from: ./vars

init-pki complete; you may now create a CA or requests.
Your newly created PKI dir is: /etc/openvpn/easy-rsa/pki

unable to create curve (sect571r1)

Easy-RSA error:

Curve sect571r1 not found. Run openssl ecparam -list_curves to show a
list of supported curves.

Note: using Easy-RSA configuration from: ./vars

Easy-RSA error:

Missing expected CA file: serial (perhaps you need to run build-ca?)
Run without commands for usage and command help.

Note: using Easy-RSA configuration from: ./vars

Easy-RSA error:

Missing expected CA file: serial (perhaps you need to run build-ca?)
Run without commands for usage and command help.

Note: using Easy-RSA configuration from: ./vars

Easy-RSA error:

Missing expected CA file: serial (perhaps you need to run build-ca?)
Run without commands for usage and command help.
cp: cannot stat ‘pki/ca.crt’: No such file or directory
cp: cannot stat ‘pki/private/ca.key’: No such file or directory
cp: cannot stat ‘pki/issued/server.crt’: No such file or directory
cp: cannot stat ‘pki/private/server.key’: No such file or directory
cp: cannot stat ‘/etc/openvpn/easy-rsa/pki/crl.pem’: No such file or directory
chmod: cannot access ‘/etc/openvpn/crl.pem’: No such file or directory
450
success
success
success
success
331
Job for openvpn@server.service failed because the control process exited with error code. See "systemctl status openvpn@server.service" and "journalctl -xe" for details.
cat: /etc/openvpn/easy-rsa/pki/ca.crt: No such file or directory
cat: /etc/openvpn/easy-rsa/pki/issued/client.crt: No such file or directory
cat: /etc/openvpn/easy-rsa/pki/private/client.key: No such file or directory

Finished!

I have tested it on 4 different KVM VPS'es, all of them running CentOS 7, and this has happened on all of them :(.

angristan commented 7 years ago

Please just read before reporting bugs. Also, I never said my PR was working, so please keep the discussion here.

screenshot_05-03-2017_b druovcmu

SquirrelCoder commented 7 years ago

Oh, shit, sorry man. Still learning GitHub :D. Sorry.

angristan commented 7 years ago

You are forgiven 😉