stunnel配置

sudo apt-get install stunnel

sudo vim /etc/default/stunnel4
ENABLED=1

openssl req -new -x509 -days 36500 -nodes -out stunnel.pem -keyout stunnel.pem

sudo vim /etc/stunnel/stunnel.conf
cert = /etc/stunnel/stunnel.pem
key = /etc/stunnel/stunnel.pem

sudo /etc/init.d/stunnel4 restart

发表评论

电子邮件地址不会被公开。 必填项已用*标注