6 Commits

Author SHA1 Message Date
fcffb063e3 tls: Added support to configure certificate verify depth
Support added in omfwd as instance parameter:
streamdriver.TlsVerifyDepth
Support added in imtcp as module parameter:
streamdriver.TlsVerifyDepth

Can be 2 or higher.

Support added into ossl driver
Support added into gtls driver
Added testcases for both drivers.

Parameter
streamdriver.TlsVerifyDepth

closes: https://github.com/rsyslog/rsyslog/issues/4035
2020-01-08 11:40:14 +01:00
2f20fdd8c2 openssl network driver: Added support setting openssl configcommands
We are using the gnutlsPriorityString setting variable, to pass
configuration commands to openssl.
The format is one command per line, command and value separated by equal sign (=).
See this sample:
	gnutlsPriorityString="command=value
	secondcommand=value"

Also added a test that disables certain TLS/SSL Version through this parameter which
causes the connection within the test to fail due wrong tls version number.
This error is checked and if found the test will pass.

Support only on OpenSSL 1.02 or higher.
Testcase will log an error if OpenSSL Versions has not TLSv1.3 support.
This can be ignored. The tests works regardless of this logged error.

closes: https://github.com/rsyslog/rsyslog/issues/3605
2019-04-11 11:31:38 +02:00
3d9b8df6fb tls(ossl/gtls): add new Option "StreamDriver.PermitExpiredCerts"
The new Option can have one of the following values:
on = Expired certificates are allowed
off = Expired certificates are not allowed
warn = Expired certificates are allowed but warning will be logged (Default)

Includes necessary tests to validate new code.

closes https://github.com/rsyslog/rsyslog/issues/3364
2018-12-21 15:24:41 +01:00
937dbcb801 bugfix tls subsystem: Receiver hang due to insufficient TLS buffersize.
gtls and ossl driver used a default buffersize of 8 x 1024 bytes to store
received TLS packets. When tls read returned more than buffersize, the additional
buffer was not processed until new data arrived on the socket again.

TLS RFCs require up to 16KB buffer for a single TLS record.

closes https://github.com/rsyslog/rsyslog/issues/3325
2018-12-18 14:44:58 +01:00
Rainer Gerhards
72ee7a201a some cleanup 2018-10-24 19:20:43 +02:00
2f30c4270a add openssl TLS driver (#2761)
add openssl TLS driver

Also fixes some nits in existing testbench tests (e.g. expired test certs) and extend tcpflood to support openssl as well.

closes: https://github.com/rsyslog/rsyslog/issues/1390
closes: https://github.com/rsyslog/rsyslog/issues/1840
closes: https://github.com/rsyslog/rsyslog/issues/1352
closes: https://github.com/rsyslog/rsyslog/issues/1702
closes: https://github.com/rsyslog/rsyslog/issues/2547
2018-06-13 13:20:23 +02:00