{"id":36445959,"url":"https://github.com/cesbit/tlsproxy","last_synced_at":"2026-01-11T22:44:06.148Z","repository":{"id":210061803,"uuid":"725620186","full_name":"cesbit/tlsproxy","owner":"cesbit","description":"TLS Proxy","archived":false,"fork":false,"pushed_at":"2023-12-04T08:25:41.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-21T06:27:07.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cesbit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"cesbit"}},"created_at":"2023-11-30T14:26:32.000Z","updated_at":"2023-11-30T14:35:56.000Z","dependencies_parsed_at":"2023-12-04T09:36:48.110Z","dependency_job_id":null,"html_url":"https://github.com/cesbit/tlsproxy","commit_stats":null,"previous_names":["cesbit/tlsproxy"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cesbit/tlsproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesbit%2Ftlsproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesbit%2Ftlsproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesbit%2Ftlsproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesbit%2Ftlsproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cesbit","download_url":"https://codeload.github.com/cesbit/tlsproxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cesbit%2Ftlsproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28326144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-11T22:44:05.658Z","updated_at":"2026-01-11T22:44:06.143Z","avatar_url":"https://github.com/cesbit.png","language":"Go","funding_links":["https://github.com/sponsors/cesbit"],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/cesbit/tlsproxy/workflows/CI/badge.svg)](https://github.com/cesbit/tlsproxy/actions)\n[![Release Version](https://img.shields.io/github/release/cesbit/tlsproxy)](https://github.com/cesbit/tlsproxy/releases)\n\n# TLS Proxy\n\n## Installation\n\nJust clone the project and make a build\n\n```\ngit clone git@github.com:cesbit/tlsproxy.git\ncd tlsproxy\ngo build\n```\n\n## Example usage\n\nThe following assumes a server.crt and server.key and will forward 443-\u003e80 and 8000-\u003e8000 to just-a-host.local\n\n```\nTLSPROXY_TARGET=just-a-host.local \\\nTLSPROXY_PORTS=443:80,8000 \\\nTLSPROXY_CERT_FILE=server.crt \\\nTLSPROXY_KEY_FILE=server.key \\\ntlsproxy\n```\n\n## Environment variable\n\nEnvironment             | Description\n----------------------- | -----------\n`TLSPROXY_TARGET`       | Address of the host.\n`TLSPROXY_PORTS`        | Specify the ports you want to secure with TLS. You can list multiple ports separated by commas. Use the following syntax: `\u003coutside\u003e:\u003cinside\u003e` _(example `443:80`)_. If the outside and inside ports are the same, you can simply specify the port number _(example `8000`)_.\n`TLSPROXY_CERT_FILE`    | Path to the certificate file _(example `/certs/server.crt`)_.\n`TLSPROXY_KEY_FILE`     | Path to the key file _(example `/certs/server.key`)_.\n`TLSPROXY_DEBUG`        | A value of `1` or `enable` will enable debug logging.\n## Certificates\n\nFor testing, one can create certificates using the following commands:\n\nGenerate private key (.key)\nKey considerations for algorithm \"RSA\" ≥ 2048-bit\n```\nopenssl genrsa -out server.key 2048\n```\nKey considerations for algorithm \"ECDSA\" (X25519 || ≥ secp384r1)\nhttps://safecurves.cr.yp.to/\nList ECDSA the supported curves (openssl ecparam -list_curves)\n```\nopenssl ecparam -genkey -name secp384r1 -out server.key\n```\nGeneration of self-signed(x509) public key (PEM-encodings .pem|.crt) based on the private (.key)\n```\nopenssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesbit%2Ftlsproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesbit%2Ftlsproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesbit%2Ftlsproxy/lists"}