Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mutalisk999/tls-proxy-py

Socks5 proxy on TLS tunnel
https://github.com/mutalisk999/tls-proxy-py

socks5-proxy tls

Last synced: 2 months ago
JSON representation

Socks5 proxy on TLS tunnel

Awesome Lists containing this project

README

        

# tls-proxy-py

### How to generate cert file and key file

```
mkdir certs
rm certs/*

# CA key and cert
openssl genrsa -out certs/ca.key 2048
openssl req -new -key certs/ca.key -out certs/ca.csr
openssl x509 -req -in certs/ca.csr -out certs/ca.pem -signkey certs/ca.key -CAcreateserial -days 36500

# for tls server
openssl genrsa -out certs/server.key 2048
openssl req -new -key certs/server.key -out certs/server.csr
openssl x509 -req -in certs/server.csr -out certs/server.pem -signkey certs/server.key -CA certs/ca.pem -CAkey certs/ca.key -CAcreateserial -days 36500

# for tls client
openssl genrsa -out certs/client.key 2048
openssl req -new -key certs/client.key -out certs/client.csr
openssl x509 -req -in certs/client.csr -out certs/client.pem -signkey certs/client.key -CA certs/ca.pem -CAkey certs/ca.key -CAcreateserial -days 36500
```

### Client

* Modify client.json
```
cp client_example.json client.json
```

### Server

* Modify server.json
```
cp server_example.json server.json
```