Categories
Uncategorized

Capturing http2 traffic

After setup my wordpress site with http/2.0 I wanted to capture traffic with wireshark.

It will be needed to setup TLS decryption. Usually, libssl allows to record symmetric keys for encryption from TLS when SSLKEYLOGFILE export variable is set to an specific file.

It will be also needed to add private key to wireshark in order to decrypt initial public key setup:

HTTP 2.0 traffic capture
Categories
Uncategorized

WordPress http2 setup

Finally I was able to run my wordpress docker setup with http v2. I would have expected this task to be an easy one but it was not.

Let’s start, first, http2 needs SSL, that was the easy part, I got my SSL certificate, I enabled SSL module in apache, I defined paths for my SSL certificate and my private key of course. Then I enabled http2 module in apache but then problems started here. It turns out that http2 module throws an error because it did not like the mpm_prefork module. Ok, that is easy, I disabled the mpm_prefork module and enabled mpm_event module, but now this module complains that it needs php compiled for multithread support, not sure what to do here I found that for this situation is better to use php with fpm support… Long story short, I was able to find an unofficial docker image. Read this post:

https://github.com/Wadoom/wordpress-http2

Now this site is hosted in my laptop using docker!.

Time to restore my old blog!

Categories
Uncategorized

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!