chrislone / croxy

A TLS tunnel written in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A TLS Tunnel

A TLS Tunnel base on openSSL.

develop locally:

create a self-signed certificate with openSSL

$ mkdir cert
$ openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout cert/localhost.key -out cert/localhost.crt -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost,IP:127.0.0.1,IP:::1"
$ cat cert/localhost.crt cert/localhost.key > cert/localhost.pem

# on Ubuntu
$ sudo cp cert/localhost.crt /usr/local/share/ca-certificates
$ sudo update-ca-certificates

compile the code

$ make croxy

and run

$ ./croxy
$ curl -iv --proxy https://localhost:4433 https://www.bing.com

dependencies

llhttp

openSSL

About

A TLS tunnel written in C++


Languages

Language:C++ 96.9%Language:Makefile 3.1%