LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2006, 06:47 AM   #1
jbinc1
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Rep: Reputation: 0
dh error in openvpn


Hello all,

When I try to start my openvpn server ir receive this error:

Mon Aug 21 07:27:30 2006 Cannot open etc/openvpn/openvpn/keys/dh1024.pem for DH parameters: error:02001002:system library:fopen:No such file or directory: error:2006D080:BIO routines:BIO_new_file:no such file
Mon Aug 21 07:27:30 2006 Exiting

Has anyone else had this problem?

My server.conf file points to the correct place where the file is located.

I successfully started the server the first time. This error happened after I tried to restart.

I've seen some posts on this subject on other forums, but no solutions.

Any help will be greatly appreciated.

Thanks in advance.
 
Old 08-21-2006, 07:36 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
- your config does say /etc/openvpn... right? (leading /)
- are you trying to start the service as root?
- you have checked file permissions of the files?
 
Old 08-21-2006, 08:47 AM   #3
jbinc1
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
-Yes my config does have leading /

-I am attempting to run as root

-file permissions are as follows:

-rw-r--r-- 1 root root 245 2006-08-20 21:34 /etc/openvpn/openvpn/keys/dh1024.pem
 
Old 08-21-2006, 09:04 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
what distro are you running on?
did you install via a package or did you build from source?
did you make the certs and dh using the openssl command or using scripts that came with openvpn?

sorry for all these q's
 
Old 08-21-2006, 12:39 PM   #5
jbinc1
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I'm running this on Kubuntu
I installed this as a package from the repositories.
I used scripts in easy-rsa that came in the package.

No problem with the questions. I appreciate the help.
 
Old 08-23-2006, 07:45 AM   #6
jbinc1
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Problem solved. I changed the route to the dh1024.pem file back to the original route from the sample config file, and saved it. Tried to start OpenVPN. No good. Then I changed it back to the location where the file resides on my machine, saved it, and tried to start OpenVPN again. It worked. Don't ask me to explain it. It's working now. I guess that's all I can ask for.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
openVPN... lakshminarayan Linux - Networking 5 07-23-2006 04:52 AM
OpenVPN wwnexc Linux - Software 6 05-20-2006 02:34 PM
Error in openVPN client GUI about openssl sailershen Linux - Security 1 01-26-2006 07:24 PM
OpenVPN dunmarie Linux - Networking 1 03-31-2004 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration