Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite ./botan tls_http_server using the ASIO stream #3659

Closed
reneme opened this issue Aug 9, 2023 · 1 comment · Fixed by #3763
Closed

Rewrite ./botan tls_http_server using the ASIO stream #3659

reneme opened this issue Aug 9, 2023 · 1 comment · Fixed by #3763
Assignees

Comments

@reneme
Copy link
Collaborator

reneme commented Aug 9, 2023

It seems the implementation for said toy HTTP server is quite dated and bug prone. I envision to use Boost Beast to replace the minimal HTTP responder that is currently used on top of the ASIO stream. To be clear: this does not aim to implement a fully functional HTTP server. Instead, it should serve as a nice showcase for how to combine ASIO, Botan's TLS and Beast to build an HTTPS server.

Perhaps, @hrantzsch's example code could be a good starting point for this. This example was initially adapted from Boost Beast's server example in early 2020 and may or may not need some refreshing with the latest Boost code.

@randombit
Copy link
Owner

Yeah, the current version was just sufficient to run some tests with (IIRC) https://github.com/tlsfuzzer/tlsfuzzer which requires that the TLS stack it is talking to also be an HTTP server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants