TLS fails to start on the client side...

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

Re: TLS fails to start on the client side...

Postby rgerhards on Mon Oct 06, 2008 12:51 pm

no problem. I now see the error cause, looks like in some instance a user error is not generated. There is a problem with the certificate, GnuTLS returns that it can't read it. I think the one in question is the CA file.
User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: TLS fails to start on the client side...

Postby martin_pg on Mon Oct 06, 2008 5:19 pm

Hmm... the CA file? I'll go through the whole process again...

thanks for the advice...
martin_pg
Avarage
 
Posts: 15
Joined: Thu Jul 03, 2008 3:30 pm

Re: TLS fails to start on the client side...

Postby rgerhards on Mon Oct 06, 2008 5:20 pm

did you use the step-by-step guide from the doc set? If not, I suggest it.
User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

Re: TLS fails to start on the client side...

Postby martin_pg on Wed Oct 08, 2008 1:06 pm

Hi,

it has been sorted.

The problems were 2:

1. wrong filename for a certificate file... my bad :)
2. the order of rsyslog's directives in /etc/rsyslog.conf is also important.

--
$ModLoad immark.so # provides --MARK-- message capability
$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command)
$ModLoad imklog.so # provides kernel logging support (previously done by rklogd)
$ModLoad imudp.so # provides UDP syslog reception
$ModLoad imtcp.so # load module

# make gtls driver the default
$DefaultNetstreamDriver gtls

# certificate files
$DefaultNetstreamDriverCAFile /etc/certs/mainca.pem
$DefaultNetstreamDriverCertFile /etc/certs/logserver-cert.pem
$DefaultNetstreamDriverKeyFile /etc/certs/logserver-key.pem

# UDP Syslog Server:
$UDPServerRun 514 # start a UDP syslog server at standard port 514

$InputTCPServerStreamDriverAuthMode x509/name
$InputTCPServerStreamDriverPermittedPeer *.domain.tld
$InputTCPServerStreamDriverMode 1 # run driver in TLS-only mode
$InputTCPServerRun 514

--

My 2 cents...
Martin
martin_pg
Avarage
 
Posts: 15
Joined: Thu Jul 03, 2008 3:30 pm

Re: TLS fails to start on the client side...

Postby rgerhards on Wed Oct 08, 2008 1:12 pm

glad it works now. And sorry I overlooked the order issue. With rsyslog, order is very important, in anything you do in the config file.
User avatar
rgerhards
Site Admin
 
Posts: 1667
Joined: Thu Feb 13, 2003 11:57 am

Google Ads


Previous

Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron