By Scottj
Connected Tutorial(This question is a follow-up to this tutorial):
How to set up and configure an OpenVPN Server on UbuntuPer the article step 1 I made the ~/easy-rsa/ directory and made keys in there using easy-rsa.
When I start the OpenVPN service it fails to start and drops this in the log file;
Options error: --dh fails with 'dh.pem': No such file or directory (errno=2)
Options error: --ca fails with 'ca.crt': No such file or directory (errno=2)
Options error: --cert fails with 'server.crt': No such file or directory (errno=2)
etc,etc
Per step 7 I am using user nobody but remarking that out doesn’t help as I’m assuming the service account doesn’t have access to those files either with the way step 1 sets that up.
Even declaring the full path to the key files in the config like "ca /home/username/easy-rsa/pki/ca.crt"doesn’t get it to work, assumed permission issue.
What am I missing here?
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!
Figured it out, I missed steps. Example, bottom of step 3, they just dump the necessary keys in the server directory.
sudo cp /home/sammy/easy-rsa/pki/private/server.key /etc/openvpn/server/
Hi @Scottj,
It does seem like you’ve missed a couple of steps as the error suggests there are some missing files :
Options error: --dh fails with 'dh.pem': No such file or directory (errno=2)
Options error: --ca fails with 'ca.crt': No such file or directory (errno=2)
Options error: --cert fails with 'server.crt': No such file or directory (errno=2)
etc,etc
I can see you’ve managed to see that and I’m glad as well!
Having said that, if you encounter any other issues, feel free to ask a question in the community, that is why it is here for. So that we can support eachother.
Regards, KFSys
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.