LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-27-2017, 12:08 PM   #1
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Rep: Reputation: Disabled
Openvpn makes suddenly certificate 0 bytes


Hi, I am running a openvpn server where create certs and put on pcs. I noticed that after unplug and plug network cable to server that now 0 bytes certificate is creating. In keys folder i notice that allways with sertificate generating a .pem file. Now there is no .pem file, only 4 files .ovpn, .key and so on. Where can be mistake? I try on virtual machine with my /var/www and with my /etc/openvpn folders and its working, but on live machine dont, I tried to remove index.txt file in keys folder but not working. I restarter openvpn and apache service and same error.

Thanks in advance!
 
Old 06-29-2017, 02:40 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
What's log output after link down and up?
 
Old 06-29-2017, 02:53 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
A certificate can become zero bytes if there's already an entry for it in its database file (conf/index).

You will get an "Error 3" (or somesuch) message instead of "Data Base Updated."

Last edited by sundialsvcs; 07-05-2017 at 02:37 PM.
 
Old 07-05-2017, 01:53 PM   #4
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
I put any name and got 0 bytes. I cant figure why this error shows up. Do you maybe have some advice what to try or something to do?
 
Old 07-05-2017, 02:30 PM   #5
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
If certificate is 0 byte, it means that an error come out during link down and up. The certificate generation stop. The log might tell you something.
 
Old 07-05-2017, 03:15 PM   #6
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
can you tell me where to find that log?
 
Old 07-06-2017, 02:14 PM   #7
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
1)If you are using the network manager plugin (network-manager-openvpn), look into /var/log/syslog
This should give you the last logs of openvpn:

$ grep VPN /var/log/syslog

Connection details are to be found in /etc/openvpn/

2)You can configure where log is saved.
However, your config files can set the logfile location explicitly, e.g.:

log-append /var/log/openvpn.log

3)The --verb option can be used to set the log file verbosity from 0 (no output except for fatal errors) to 11 (for maximum debugging information).
 
Old 08-20-2017, 05:57 AM   #8
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
i found log in /etc/openvpn openvpn.log and try to create CERT. i see that file last modifed is time and date now, which i try to make it, but in log file there is no errors, just some connection goes through these days. Nothing about now. In last line just stay todays date.
Code:
Sun Aug 20
. I found some error like TLS handshake failed and thats all. i find some error PHP Notice: Undefined offset 1 in error_log in /var/log/httpd.
this line is:

Code:
list($u1, $u2) = split(",", $line); $u1 = ltrim(rtrim($u1)); $u2 = ltrim(rtrim($u2));
I cant figure out where is problem. No one change anything of code inside php. Maybe to restart php service? I tried with openvpn and apache2.


,
 
Old 08-22-2017, 02:40 PM   #9
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
What's your log level, in debugging or fatal error?
 
Old 09-03-2017, 10:01 AM   #10
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
i am newbie, but i must solve this, it is a big problem for us.
 
  


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 certificate is 0 bytes Sleen Linux - Networking 11 12-17-2016 08:33 PM
Why aren't Certificate Authorities used for links between TOR nodes but they in OpenVPN? Ulysses_ Linux - Security 6 05-17-2016 12:34 AM
Setting up server certificate verification method in OpenVPN for VPNBook? LadyIris Linux - Security 0 06-03-2015 09:44 PM
UDP client / server program in c++ suddenly limited to 1468 bytes bricedebrignaisplage Linux - Networking 5 07-25-2008 12:13 AM
OpenVPN CA Certificate Invalid fukawi2 Linux - Networking 4 05-07-2008 11:01 PM

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

All times are GMT -5. The time now is 03:39 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