Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10372 closed defect (fixed)

uhttp won't start with https enabled

Reported by: anonymous Owned by: jow
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Updated to revision 28853 of backfire. After applying the update, uhttp would not start. Had to disable line "list listen_https 0.0.0.0:443" in /etc/config/uhttp to have uhttp to start normally.

Certs file are present on the router :
51    0 -rw-r--r--    1 root     root    509 Nov 14  2010 uhttpd.crt
50    1 -rw-r--r--    1 root     root    609 Nov 14  2010 uhttpd.key

Attachments (0)

Change History (9)

comment:1 Changed 6 years ago by Slowmo <slowmo@…>

I also have the same problem. I could not use Luci, because port 80 was not open, so as a workaround I enabled Luci through https.

comment:2 follow-up: Changed 6 years ago by jow

  • Owner changed from developers to jow
  • Status changed from new to accepted

It works as expected here. Did you run "make defconfig" after updating? The uhttpd package has new config symbol which must be set. Did you build against CyaSSL or OpenSSL? Whats the output of "uhttpd -h /www -x /cgi-bin -C /etc/uhttpd.crt -K /etc/uhttpd.key -p 80 -s 443" ?

comment:3 in reply to: ↑ 2 Changed 6 years ago by anonymous

Replying to jow:

It works as expected here. Did you run "make defconfig" after updating? The uhttpd package has new config symbol which must be set. Did you build against CyaSSL or OpenSSL? Whats the output of "uhttpd -h /www -x /cgi-bin -C /etc/uhttpd.crt -K /etc/uhttpd.key -p 80 -s 443" ?

Ran "make defconfig" and HTTPS is back now. Many thanks!

comment:4 Changed 6 years ago by Slowmo <slowmo@…>

I now see what is wrong in my calse.
uhttpd reports it can't load libcyassl.so.0 Why am I missing it? Was it not necessary before? Installing it solves the problem. "make defconfig" did not help.

comment:5 Changed 6 years ago by anonymous

Something similar was fixed in #28769 . I wasn't able to start uhttpd with TLS support.
Just sayin', perhaps this helps in some way.

comment:6 Changed 6 years ago by anonymous

Of course I meant changeset 28769, not ticket. Sorry.

comment:7 Changed 6 years ago by mastabog <mastabog@…>

Same here on trunk snapshot r29045. Starting uhttpd in the console it reports:

uhttpd: can't load library 'libcyassl.so.0'

Apparently, libcyassl should be specified as a package dependency.

Note that I did comment out the both 443 listen ports in /etc/config/uhttpd and I was still getting the error. Installing libcyassl was the only way to fix it for me.

comment:8 Changed 6 years ago by jow

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

This should be fixed with r29152.

comment:9 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.