I'm having some trouble navigating the confusing world of Ruby OpenSSL libraries.
The desired end result would be dynamically creating SSL server certs and keys for use with WEBrick::HTTPProxyServer
, each with a CN
corresponding to the requested domain and all sharing the same CA.
The reason for this is to allow for an HTTP proxy to intercept and monitor HTTPS traffic of websites that have the HSTS
header enabled, by first loading the CACert into the browser, thus making my self-signed certificates look legit for each given site.
If anyone's got experience with this sort of thing code examples would be greatly appreciated.
Thanks in advance.
PS. Nothing sinister going on here, just improving a feature of a penetration testing software.
Figured it out. :)
Helpful resources: