I need a little help with STUNNEL on TOMATOUSB and a RT-N66U.
I successfully installed optware on a usb flash drive (ext3). After that, I have this this error when I try to install STUNNEL:
Installing stunnel (4.26-2) to /opt/... Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/stunnel_4.26-2_mipsel.ipk Configuring stunnel Creating /opt/etc/stunnel/stunnel.pem (server certificate) ... Generating a 1024 bit RSA private key .................................++++++ ...++++++ unable to write 'random state' writing new private key to '/opt/etc/stunnel/stunnel.pem' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [PL]
roblems making Certificate Request unable to load certificate
5053:error:0906D06C
EM routines
EM_read_bio:no start line
em_lib.c:645:Expecting: TRUSTED CERTIFICATE
2015.03.17 19:12:07 LOG7[5057:1024]: RAND_status claims sufficient entropy for the PRNG
2015.03.17 19:12:07 LOG7[5057:1024]: PRNG seeded successfully
2015.03.17 19:12:07 LOG4[5057:1024]: Wrong permissions on /opt/etc/stunnel/stunnel.pem
2015.03.17 19:12:07 LOG7[5057:1024]: Certificate: /opt/etc/stunnel/stunnel.pem
2015.03.17 19:12:07 LOG3[5057:1024]: Error reading certificate file: /opt/etc/stunnel/stunnel.pem
2015.03.17 19:12:07 LOG3[5057:1024]: error stack: 140DC009 : error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file
EM lib 2015.03.17 19:12:07 LOG3[5057:1024]: SSL_CTX_use_certificate_chain_file: 906D06C: error:0906D06C
EM routines
EM_read_bio:no start line postinst script returned status 1 ERROR: stunnel.postinst returned 1 Successfully terminated.
I can CHMOD the stunnel.pem to 600 and the "wrong permissions" error is gone.
But, I can't get the service to start:
2015.03.17 20:56:41 LOG7[6334:1024]: RAND_status claims sufficient entropy for the PRNG
2015.03.17 20:56:41 LOG7[6334:1024]: PRNG seeded successfully
2015.03.17 20:56:41 LOG7[6334:1024]: Certificate: /opt/etc/stunnel/stunnel.pem
2015.03.17 20:56:41 LOG3[6334:1024]: Error reading certificate file: /opt/etc/stunnel/stunnel.pem
2015.03.17 20:56:41 LOG3[6334:1024]: error stack: 140DC009 : error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file
EM lib
2015.03.17 20:56:41 LOG3[6334:1024]: SSL_CTX_use_certificate_chain_file: 906D06C: error:0906D06C
EM routines
EM_read_bio:no start line
Any help will be welcomed please.