{"id":46476951,"url":"https://github.com/tlslink/sslcon","last_synced_at":"2026-05-10T02:58:14.454Z","repository":{"id":60172398,"uuid":"473113399","full_name":"tlslink/sslcon","owner":"tlslink","description":"Go implementation of the OpenConnect VPN Protocol for client side development. Engine for AnyLink Secure Client.","archived":false,"fork":false,"pushed_at":"2025-11-30T09:00:52.000Z","size":455,"stargazers_count":64,"open_issues_count":2,"forks_count":29,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-02T13:30:30.271Z","etag":null,"topics":["anyconnect","anylink","ocserv","openconnect","sslvpn","vpn"],"latest_commit_sha":null,"homepage":"","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/tlslink.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-03-23T09:13:24.000Z","updated_at":"2025-11-30T08:58:27.000Z","dependencies_parsed_at":"2023-01-22T00:01:53.465Z","dependency_job_id":"3b445dd5-7875-4c19-8394-cb91b8cf7b55","html_url":"https://github.com/tlslink/sslcon","commit_stats":null,"previous_names":["tlslink/sslcon"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tlslink/sslcon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlslink%2Fsslcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlslink%2Fsslcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlslink%2Fsslcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlslink%2Fsslcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tlslink","download_url":"https://codeload.github.com/tlslink/sslcon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlslink%2Fsslcon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30165076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"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":["anyconnect","anylink","ocserv","openconnect","sslvpn","vpn"],"created_at":"2026-03-06T07:12:18.321Z","updated_at":"2026-05-10T02:58:14.443Z","avatar_url":"https://github.com/tlslink.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e 除非有不得不用的理由，否则请远离 Electron\n\u003e\n\u003e 安装包体积不是问题，关键是它会在硬盘 cache 目录拉一坨，一坨还好，那一坨又一坨呢？\n\n## sslcon\n\nThis is a Golang implementation of the [OpenConnect VPN Protocol](https://datatracker.ietf.org/doc/html/draft-mavrogiannopoulos-openconnect-04) for client side development. \n\nThe released binaries contain a command line program(sslcon) and a VPN service agent(vpnagent), the latter of which should be run as a separate background service with root privileges, so that the front-end UI does not require an administrator authorization every time it starts. \n\nThe API is exposed through the WebSocket and JSON-RPC 2.0 protocols, so developers can easily customize a graphical interface that meets their needs.\n\n**[There](https://github.com/tlslink/anylink-client) is a GUI client example showing how to use this project.**\n\nCurrently the following servers are supported,\n\n- [AnyLink](https://github.com/bjdgyc/anylink)\n- [OpenConnect VPN server](https://gitlab.com/openconnect/ocserv)\n\n## CLI\n\n```\n$ ./sslcon\nA CLI application that supports the OpenConnect SSL VPN protocol.\nFor more information, please visit https://github.com/tlslink/sslcon\n\nUsage:\n  sslcon [flags]\n  sslcon [command]\n\nAvailable Commands:\n  connect     Connect to the VPN server\n  disconnect  Disconnect from the VPN server\n  status      Get VPN connection information\n\nFlags:\n  -h, --help   help for sslcon\n\nUse \"sslcon [command] --help\" for more information about a command.\n```\n\n### install\n\n```shell\nsudo ./vpnagent install\n# uninstall\nsudo ./vpnagent uninstall\n```\nthe installed service on systemd linux\n\n```\nsudo systemctl stop/start/restart sslcon.service\nsudo systemctl disable/enable sslcon.service\n```\n\nthe installed service on OpenWrt\n\n```\n/etc/init.d/sslcon stop/start/restart/status\n```\n\n### connect\n\n```bash\n./sslcon connect -s test.com -u vpn -g default -k key\n```\n\n### disconnect\n\n```\n./sslcon disconnect\n```\n\n### status\n\n```\n./sslcon status\n```\n\n## APIs\n\nYou can use any WebSocket tool to test the API.\n\nws://127.0.0.1:6210/rpc\n\n### status\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"status\",\n  \"id\": 0\n}\n```\n\n### config\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"config\",\n  \"params\": {\n    \"log_level\": \"Debug\",\n    \"log_path\": \"\"\n  },\n  \"id\": 1\n}\n```\n\n### connect\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"connect\",\n  \"params\": {\n    \"host\": \"vpn.test.com\",\n    \"username\": \"vpn\",\n    \"password\": \"123456\",\n    \"group\": \"\",\n    \"secret\": \"\"\n  },\n  \"id\": 2\n}\n```\n\n### disconnect\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"disconnect\",\n  \"id\": 3\n}\n```\n\n### reconnect\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"reconnect\",\n  \"id\": 4\n}\n```\n\n### stat\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"stat\",\n  \"id\": 7\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlslink%2Fsslcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlslink%2Fsslcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlslink%2Fsslcon/lists"}