following the openVPN tutoria and step two keeps failing on something that seems very elementary, which is that it seems unable to find the file path. the code and error:
./easyrsa init-pki
-bash: ./easyrsa: No such file or directory
things I’ve tried: accessing as a different user, accessing from a different folder (rather than the cd ~/easy-rsa), modifying the vars path (currently it’s only the two lines recommended:
set_var EASYRSA_ALGO "ec"
set_var EASYRSA_DIGEST "sha512"
but I’ve tried that at the bottom, that plus set_var EASYRSA_PKI “$EASYRSA/pki”, and others but nothing happens. I expect this is a super easy item that I’ve missed somewhere, because I can’t find any other stack overflow questions specifically on it, or the like. so if there’s an easy fix that you all expect I’m all ears. thanks kindly.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hi,
Being logged in as the user that you installed Easy-RSA with, check the content of the directory ~/easy-rsa:
ls -la ~/easy-rsa/
As you followed DO tutorial, you should get a couple of symbolic links (symlinks) as a result of the above command. These symlinks lead to the files in the directory /usr/share/easy-rsa/. There should be a symlink to easyrsa
script there too. Check the script name. Check whether it exists in the directory /usr/share/easy-rsa/:
sudo ls -la /usr/share/easy-rsa/easyrsa*
Let us know how it is going, pls.
additional info: tried
root@ubuntu:~/easy-rsa# sudo find ~/ -iname "easyrsa"
root@ubuntu:~/easy-rsa# sudo find / -iname "easyrsa"
neither returned anything, which makes me think that I missed an install somewhere but I’ve done:
sudo apt install openvpn easy-rsa
Reading package lists... Done
Building dependency tree
Reading state information... Done
easy-rsa is already the newest version (2.2.2-2).
openvpn is already the newest version (2.4.4-2ubuntu1.3).
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
which was what every tutorial I’ve seen has…
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.