rsyslog/tests/omfwd-tls-invalid-permitExpiredCerts.sh
Rainer Gerhards 80b3fc65d5
omfwd: parameter streamdriver.permitexpiredcerts did not work
This commit fixes the issue and adds tests to ensure the parameter
is understood

closes https://github.com/rsyslog/rsyslog/issues/4098
2020-01-11 16:16:03 +01:00

14 lines
411 B
Bash
Executable File

#!/bin/bash
# add 2020-01-08 by Rainer Gerhards, released under ASL 2.0
. ${srcdir:=.}/diag.sh init
generate_conf
add_conf '
action(type="omfwd" target="localhost" port="514" streamdriver.permitexpiredcerts="invld")
action(type="omfile" file="'$RSYSLOG_OUT_LOG'")
'
startup
shutdown_when_empty
wait_shutdown
content_check "streamdriver.permitExpiredCerts must be 'warn', 'off' or 'on' but is 'invld'"
exit_test