nemasu / asmttpd

Web server for Linux written in amd64 assembly.
GNU General Public License v2.0
3.03k stars 199 forks source link

Support https? #47

Open JoshuaBehrens opened 4 years ago

JoshuaBehrens commented 4 years ago

Are there any plans on supporting secure connections? They are already possible by proxying through nginx to add a certificate for https. But when I have nginx running I don't need asmttpd to serve static content.

nemasu commented 4 years ago

Since it doesn't use any libraries, it would have to be implemented using only Linux kernel syscalls. From what I remember, there are some crypto methods available, but I haven't looked into it too much. It sounds like it would be a ton of code and work though, so nothing is planned at the moment.

JoshuaBehrens commented 4 years ago

Thanks for the quick answer. I don't know how rwasa implements it by heart and I understand that is difficult to handle it by only syscalls. I am up to see that feature here.

nemasu commented 4 years ago

Looks like TLS is in the kernel. But it seems it's only for client side connections.

JoshuaBehrens commented 4 years ago

Aw snap