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

How do I use the bundled libressl with libh2o? (was: HTTP/2 does not work with examples-simple) #290

Open
kysnm opened this Issue Apr 19, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@kysnm

kysnm commented Apr 19, 2015

I am try to compile with -DWITH_BUNDLED_SSL=on option, But examples-simple does not work as expected.

h2o version is v1.0.2

Below is a compile logs:
https://gist.github.com/kysnm/e9b21edab26d3d754685

Please tell me how should be

@kazuho

This comment has been minimized.

Member

kazuho commented Apr 19, 2015

@kysnm libh2o uses an external SSL library regardless of how -DWITH_BUNDLED_SSL is configured. So you would need to have either of: OpenSSL (1.0.2 or above), LibreSSL, boringssl installed, and the build script of H2O should be instructed to use the library (as an argument to cmake).

This has been designed as such since it is a bad idea to have dependencies statically linked within an library.

EDIT. and in case of your configuration, the reason why HTTP/2 is not working is because the SSL library being linked is OpenSSL 0.9.8za according to the log; it is too old to support ALPN that is mandatory per the HTTP/2 specification (nor does it support NPN which is supported by some of the client implementations).

@kysnm

This comment has been minimized.

kysnm commented Apr 19, 2015

I understand. Thanks for your reply.

EDIT:
I understand that to work correctly with the following

brew install openssl
brew link openssl --force

@kysnm kysnm closed this Apr 19, 2015

@kysnm

This comment has been minimized.

kysnm commented Apr 19, 2015

Sorry. I closed this issue by mistake

@kysnm kysnm reopened this Apr 19, 2015

@kazuho kazuho added FAQ libh2o labels Apr 20, 2015

@kazuho kazuho changed the title from HTTP/2 does not work with examples-simple to How do I use the bundled libressl with libh2o? (was: HTTP/2 does not work with examples-simple) Apr 20, 2015

@kazuho

This comment has been minimized.

Member

kazuho commented Apr 20, 2015

No problem.

Changed the title, marked as FAQ so that in the hope that this issue would help others having the same question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment