2016-07-07 10:19:15 +02:00
|
|
|
[Unit]
|
|
|
|
Description=SSL tunnel for uucp
|
|
|
|
After=syslog.target network.target
|
2016-07-28 12:55:59 +02:00
|
|
|
# The config needs to be adjusted by the admin, see example file in /etc/uucp/
|
2017-03-31 16:49:30 +02:00
|
|
|
# Just an proposal without any without obligation, without any warranty, and
|
|
|
|
# at your own risk:
|
|
|
|
#
|
|
|
|
# Creation of /etc/uucp/stunnel.pem used in /etc/uucp/suucp-server.conf(.example)
|
|
|
|
# > umask 022
|
|
|
|
# > cp -p /etc/uucp/suucp-server.conf.example /etc/uucp/suucp-server.conf
|
|
|
|
# > openssl req -new -x509 -days 3650 -utf8 -nodes -keyout /etc/uucp/stunnel.pem -out /etc/uucp/stunnel.pem
|
|
|
|
# > dd if=/dev/urandom count=4 | openssl dhparam -rand - 1024 >> /etc/uucp/stunnel.pem
|
|
|
|
#
|
|
|
|
# Fingerprint
|
|
|
|
# > openssl x509 -text -subject -dates -fingerprint -noout -in /etc/uucp/stunnel.pem
|
|
|
|
#
|
2016-07-28 12:55:59 +02:00
|
|
|
ConditionPathExists=/etc/uucp/suucp-server.conf
|
2016-07-07 10:19:15 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=uucp
|
|
|
|
ExecStart=/usr/sbin/stunnel /etc/uucp/suucp-server.conf
|
|
|
|
Type=forking
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|