5 if [ -s "/etc/stunnel/stunnel.pem" ]; then
6 chmod og-rwx /etc/stunnel/stunnel.pem
9 [ -e /etc/stunnel/config ] && \
12 X509_CN=${X509_CN:-"router"}
13 X509_O=${X509_O:-"openwrt.org"}
14 X509_OU=${X509_OU:-"open-source firmware"}
16 [ -x /sbin/keygen ] && {
17 (keygen "$X509_CN" "$X509_O" "$X509_OU" > /etc/stunnel/stunnel.pem;
18 chmod og-rwx /etc/stunnel/stunnel.pem;