sslsplit

Transparent SSL/TLS proxy for intercepting and analyzing encrypted traffic

brewmacoslinux
Try with needOr install directly
Source

About

Man-in-the-middle attacks against SSL encrypted network connections

Commands

sslsplit

Examples

Start sslsplit listening on localhost:8080 and forward HTTPS traffic$ sslsplit -l 127.0.0.1:8080 https 127.0.0.1:443
Intercept both HTTP and HTTPS traffic on port 8080 with logging to /tmp$ sslsplit -l 127.0.0.1:8080 -L /tmp/sslsplit.log http 127.0.0.1:80 https 127.0.0.1:443
Run sslsplit in daemon mode with custom certificate file$ sslsplit -d -c /path/to/cert.pem -l 127.0.0.1:8080 https 127.0.0.1:443