Modify

Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#5897 closed defect (fixed)

stunnel

Reported by: tom@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Kamikaze 8.09
Keywords: stunnel fix Cc:

Description

For me stunnel doesn't work by default setup

the first: no /sbin/keygen

need manualy install openssl-utils witch generate certificate

change /etc/stunnel/stunnel.conf

-cert = /etc/stunnel/stunnel.pem
+cert = /etc/stunnel/stunnel.cert
-key = /usr/etc/stunnel/mail.pem
+key = /etc/stunnel/stunnel.key

change /etc/init.d/stunnel:

--- stunnel.old Thu Sep 24 11:58:39 2009
+++ stunnel.new Thu Sep 24 11:54:19 2009
@@ -3,10 +3,9 @@

START=90

-case "$1" in

  • start|boot)
  • if [ -s "/etc/stunnel/stunnel.pem" ]; then
  • chmod og-rwx /etc/stunnel/stunnel.pem

+start() {
+ if [ -s "/etc/stunnel/stunnel.cert" ]; then
+ chmod og-rwx /etc/stunnel/stunnel.cert

stunnel

else

[ -e /etc/stunnel/config ] && \

@@ -17,14 +16,14 @@

X509_OU=${X509_OU:-"kamikaze"}

[ -x /sbin/keygen ] && {

  • (keygen "$X509_CN" "$X509_O" "$X509_OU" > /etc/stunnel/stunnel.pem;
  • chmod og-rwx /etc/stunnel/stunnel.pem;

+ (keygen "$X509_CN" "$X509_O" "$X509_OU" > /etc/stunnel/stunnel.cert;
+ chmod og-rwx /etc/stunnel/stunnel.cert;

stunnel) &

}

fi

  • ;;
  • stop)

+}
+stop () {

killall stunnel
killall -9 stunnel

  • ;;

-esac
+}

after that it's working well

PS: wrt54gs with kamikaze/8.09/brcm-2.4/nopppoe/openwrt-wrt54gs-squashfs.bin on it

Attachments (1)

stunnel.init.diff.txt (1.0 KB) - added by tom@… 8 years ago.
/etc/init.d/stunnel (diff file)

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by tom@…

/etc/init.d/stunnel (diff file)

comment:1 Changed 8 years ago by florian

You just change the extension of the key file in your init script, what is wrong with the current extension?

comment:2 Changed 8 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

I had a closer look at your diff, it was indeed required. Fixed with r18994.

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.