{"id":18151241,"url":"https://github.com/msantos/tlsexec-go","last_synced_at":"2025-04-06T23:29:28.037Z","repository":{"id":136621764,"uuid":"467102180","full_name":"msantos/tlsexec-go","owner":"msantos","description":"tlsexec: a minimal, UCSPI TLS inetd","archived":false,"fork":false,"pushed_at":"2024-06-25T11:54:09.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T05:30:08.842Z","etag":null,"topics":["daemontools","exec","inetd","tls"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msantos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-03-07T13:18:12.000Z","updated_at":"2024-08-22T22:11:14.000Z","dependencies_parsed_at":"2024-06-25T13:08:22.341Z","dependency_job_id":"915710a0-3360-4696-98c7-52d0a37416ab","html_url":"https://github.com/msantos/tlsexec-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ftlsexec-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ftlsexec-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ftlsexec-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Ftlsexec-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msantos","download_url":"https://codeload.github.com/msantos/tlsexec-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247568820,"owners_count":20959753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["daemontools","exec","inetd","tls"],"created_at":"2024-11-02T01:07:02.621Z","updated_at":"2025-04-06T23:29:28.013Z","avatar_url":"https://github.com/msantos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\n\ntlsexec [*OPTION*] [*IPADDR:*]*PORT* *COMMAND* *...*\n\n# DESCRIPTION\n\ntlsexec: a minimal, [UCSPI](https://jdebp.uk/FGA/UCSPI.html) inetd\n\n`tlsexec` attaches the standard input and output of a command to a\nTLS socket:\n\n* `SO_REUSEPORT`: multiple processes concurrently listen and accept data\n  on the same port\n\n# EXAMPLES\n\nGenerate a self-signed cert for testing:\n\n```\nopenssl req -nodes -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem \\\n  -days 3650 -subj '/CN=example.com'\n```\n\n## echo server\n\n```\n$ tlsexec :9090 cat\n\n$ tlsexec 127.0.0.1:9090 cat\n\n$ tlsexec [::1]:9090 env\n```\n\n## Supervised using daemontools\n\nAn echo server allowing 3 concurrent connections:\n\n```\nservice/\n├── echo1\n│   └── run\n├── echo2\n│   └── run\n└── echo3\n    └── run\n```\n\n* service/echo1/run\n\n```\n#!/bin/sh\n\nexec tlsexec 127.0.0.1:9090 cat\n```\n\n* service/echo2/run\n\n```\n#!/bin/sh\n\nexec tlsexec 127.0.0.1:9090 cat\n```\n\n* service/echo3/run\n\n```\n#!/bin/sh\n\nexec tlsexec 127.0.0.1:9090 cat\n```\n\nThen run:\n\n```\nsvscan service\n```\n\n# Build\n\n```\nCGO_ENABLED=0 go build -C cmd/tlsexec -trimpath -ldflags \"-w\"\n```\n\n# OPTIONS\n\ncert *string*\n: Path to TLS cert file (default \"cert.pem\")\n\nenable-strict-tls\n: Restrict TLS protocols to TLS 1.2+ and use a reduced cipher suite for\nTLS 1.2 (default true)\n\nkey *string*\n: Path to TLS key file (default \"key.pem\")\n\nverbose\n: Display service information\n\n# ENVIRONMENT VARIABLES\n\nPROTO\n: protocol, always set to SSL\n\nSSLREMOTEIP\n: source IPv4 or IPv6 address\n\nSSLREMOTEPORT\n: source port\n\nSSLLOCALIP\n: destination IPv4 or IPv6 address\n\nSSLLOCALPORT\n: destination port\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Ftlsexec-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsantos%2Ftlsexec-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Ftlsexec-go/lists"}