LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2009, 05:26 AM   #1
please
Member
 
Registered: Apr 2007
Posts: 195

Rep: Reputation: 30
Smile VPN error


Hi sir
I am running openvpn and I created keys

Now I started openvpn

I got failed

Please check my log

Jun 1 23:13:03 Cent-Test openvpn[3544]: OpenVPN 2.0.9 i386-redhat-linux-gnu [SSL] [LZO] [EPOLL] built on Mar 8 2007
Jun 1 23:13:03 Cent-Test openvpn[3544]: Diffie-Hellman initialized with 1024 bit key
Jun 1 23:13:03 Cent-Test openvpn[3544]: Cannot load certificate file keys/server.crt: error:0906D06C:PEM routines:PEM_read_bio:no start line: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
Jun 1 23:13:03 Cent-Test openvpn[3544]: Exiting


Thanks
 
Old 06-01-2009, 05:45 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What does
Code:
grep crt /etc/openvpn/server.conf
show
 
Old 06-02-2009, 03:20 AM   #3
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Hi

[root@Cent-Test openvpn]# grep crt /etc/openvpn/server.conf
ca keys/ca.crt
cert keys/server.crt
[root@Cent-Test openvpn]#

Thanks for reply
 
Old 06-02-2009, 03:22 AM   #4
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
following is My server.conf

[root@Cent-Test openvpn]# cat /etc/openvpn/server.conf
port 80
proto udp
dev tun
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh keys/dh1024.pem
server 192.168.15.0 255.255.255.0
client-config-dir ccd
#########
######### Put your Public DNS Servers here
#########
push "dhcp-option DNS 192.168.15.240"

ifconfig-pool-persist ipp.txt
push "redirect-gateway"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status server-tcp.log
verb 3
[root@Cent-Test openvpn]#

Thanks
 
Old 06-02-2009, 04:18 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try putting the full path for the keys, so

ca /etc/openvpn/keys/ca.crt

etc.
 
Old 06-02-2009, 04:50 AM   #6
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Hi Billy

I got same error

Pls help me again
 
Old 06-02-2009, 05:06 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you show

ls /etc/openvpn/keys
 
Old 06-02-2009, 05:11 AM   #8
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
Can you show

ls /etc/openvpn/keys
ya

Please check

[root@Cent-Test openvpn]# ls -l keys/
total 32
-rw-r--r-- 1 root root 1269 Jun 1 22:36 ca.crt
-rw------- 1 root root 887 Jun 1 22:36 ca.key
-rw-r--r-- 1 root root 0 Jun 1 23:07 client1.crt
-rw-r--r-- 1 root root 790 Jun 1 23:07 client1.csr
-rw-r--r-- 1 root root 887 Jun 1 23:07 client1.key
-rw-r--r-- 1 root root 245 Jun 1 23:08 dh1024.pem
-rw-r--r-- 1 root root 0 Jun 1 22:34 index.txt
-rw-r--r-- 1 root root 3 Jun 1 22:34 serial
-rw-r--r-- 1 root root 0 Jun 1 23:05 server.crt
-rw-r--r-- 1 root root 790 Jun 1 23:05 server.csr
-rw-r--r-- 1 root root 887 Jun 1 23:05 server.key
[root@Cent-Test openvpn]#
 
Old 06-02-2009, 05:31 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you show

ls -l /etc/openvpn
 
Old 06-02-2009, 10:07 PM   #10
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
Can you show

ls -l /etc/openvpn

Hi Billy

[root@Cent-Test ~]# ls -l /etc/openvpn/
total 196
-rw-r--r-- 1 root root 28 Jun 1 22:12 AUTHORS
-rw-r--r-- 1 root root 91748 Jun 1 22:12 ChangeLog
drwxr-xr-x 4 root root 4096 Jun 1 22:12 contrib
-rw-r--r-- 1 root root 9330 Jun 1 22:12 COPYING
-rw-r--r-- 1 root root 17943 Jun 1 22:12 COPYRIGHT.GPL
drwxr-xr-x 5 root root 4096 Jun 1 22:58 easy-rsa
-rw-r--r-- 1 root root 10450 Jun 1 22:12 INSTALL
-rw------- 1 root root 0 Jun 1 23:09 ipp.txt
drwx------ 2 root root 4096 Jun 1 23:14 keys
drwxr-xr-x 2 root root 4096 Jun 1 22:12 management
-rw-r--r-- 1 root root 0 Jun 1 22:12 NEWS
-rw------- 1 root root 0 Jun 3 16:06 openvpn-status.log
-rw-r--r-- 1 root root 3847 Jun 1 22:12 PORTS
-rw-r--r-- 1 root root 2019 Jun 1 22:12 README
-rw-r--r-- 1 root root 2590 Jun 1 22:12 README.auth-pam
-rw-r--r-- 1 root root 866 Jun 1 22:12 README.down-root
-rw-r--r-- 1 root root 1515 Jun 1 22:12 README.plugins
drwxr-xr-x 2 root root 4096 Jun 1 22:12 sample-config-files
drwxr-xr-x 2 root root 4096 Jun 1 22:12 sample-keys
drwxr-xr-x 2 root root 4096 Jun 1 22:12 sample-scripts
-rw-r--r-- 1 root root 484 Jun 2 23:31 server.conf
-rw------- 1 root root 0 Jun 2 22:50 server-tcp.log
[root@Cent-Test ~]#


Thanks
 
Old 06-02-2009, 11:39 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does it work if you turn SELinux off (setenforce 0)

Also show

ls -Z /etc/openvpn

and

ls -Z /etc/openvpn/keys
 
Old 06-03-2009, 10:10 PM   #12
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
Does it work if you turn SELinux off (setenforce 0)

Also show

ls -Z /etc/openvpn

and

ls -Z /etc/openvpn/keys

Sorry for my delay reply

[root@Cent-Test ~]# ls -Z /etc/openvpn/
-rw-r--r-- root root AUTHORS
-rw-r--r-- root root ca.crt
-rw------- root root ca.key
-rw-r--r-- root root ChangeLog
drwxr-xr-x root root contrib
-rw-r--r-- root root COPYING
-rw-r--r-- root root COPYRIGHT.GPL
-rw-r--r-- root root dh1024.pem
drwxr-xr-x root root easy-rsa
-rw-r--r-- root root INSTALL
-rw------- root root ipp.txt
drwx------ root root keys
drwxr-xr-x root root management
-rw-r--r-- root root NEWS
-rw------- root root openvpn-status.log
-rw-r--r-- root root PORTS
-rw-r--r-- root root README
-rw-r--r-- root root README.auth-pam
-rw-r--r-- root root README.down-root
-rw-r--r-- root root README.plugins
drwxr-xr-x root root sample-config-files
drwxr-xr-x root root sample-keys
drwxr-xr-x root root sample-scripts
-rw-r--r-- root root server.conf
-rw-r--r-- root root server.crt
-rw-r--r-- root root server.key
-rw------- root root server-tcp.log
[root@Cent-Test ~]# ls -Z /etc/openvpn/keys/
-rw-r--r-- root root ca.crt
-rw------- root root ca.key
-rw-r--r-- root root client1.crt
-rw-r--r-- root root client1.csr
-rw-r--r-- root root client1.key
-rw-r--r-- root root dh1024.pem
-rw-r--r-- root root index.txt
-rw-r--r-- root root serial
-rw-r--r-- root root server.crt
-rw-r--r-- root root server.csr
-rw-r--r-- root root server.key
[root@Cent-Test ~]#
 
Old 06-03-2009, 10:33 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What distro are you running? I thought it was redhat.
 
Old 06-03-2009, 11:21 PM   #14
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Hi

I am running CentOs 5.3
Can You instruction to me step by step?

Thanks
 
Old 06-03-2009, 11:27 PM   #15
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
When you installed CentOS, did you turn off SELinux, or have you done so subsequently? I'm surprised that there are no security contexts associated with your files.

What file system are you using (mount will tell you)?

As for instructions, the step by step on the openvpn site works (I've used it on CentOS myself). Something is strange with your system form what I can tell.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
vpn error through LAN Golzari-Ali Linux - Networking 1 09-10-2006 01:37 PM
VPN build error on 64 bit ronban Programming 2 09-09-2005 02:48 AM
VPN gives Error 734 Wynand1 Linux - Networking 1 06-08-2005 01:57 AM
Cisco VPN - insmod error anacharya Linux - Networking 15 05-07-2005 10:57 AM
VPN potop compilation error dezeque Linux - Networking 1 03-08-2004 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:31 PM.

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