Documentation ¶
Overview ¶
proxy a raw tcp connection via a socks5 proxy raw tcp client ---> socks5 proxy ---> raw tcp server
proxy any tcp connection from iptables REDIRECT to socks5 proxy raw tcp client ---> iptables REDIRECT ---> socks5 proxy ---> raw tcp server
simple https to http proxy server for testing PWA on local side
Create Root Key openssl genrsa -des3 -out rootCA.key 4096 openssl ecparam -genkey -name secp384r1 -out rootCA.key
Create and self sign the Root Certificate openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 3650 -out rootCA.crt
Create the signing (csr) openssl req -new -sha256 -key server.key -subj "/C=TW/O=OAC/CN=lvh.me" -out server.csr
Generate the certificate using the mydomain csr and key along with the CA Root key openssl x509 -req -in server.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out server.crt -days 3650 -sha256
openssl x509 -req \ -extfile <(printf "[v3_req]\nextendedKeyUsage=serverAuth\nsubjectAltName=DNS:*.lvh.me,DNS:lvh.me") \ -extensions v3_req \ -days 3650 -in server.csr -CA rootCA.crt -CAkey rootCA.key \ -CAcreateserial -out server.crt -sha256