{"id":15779854,"url":"https://github.com/rgl/dump-sql-server-certificate-chain","last_synced_at":"2026-04-30T01:37:34.056Z","repository":{"id":57692829,"uuid":"91730361","full_name":"rgl/dump-sql-server-certificate-chain","owner":"rgl","description":"a tool for dumping a given SQL Server certificate chain into local files","archived":false,"fork":false,"pushed_at":"2020-08-17T22:19:53.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T11:06:00.726Z","etag":null,"topics":["sql-server","tls","troubleshooting"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-18T19:29:29.000Z","updated_at":"2023-05-03T18:56:25.000Z","dependencies_parsed_at":"2022-09-26T21:01:05.640Z","dependency_job_id":null,"html_url":"https://github.com/rgl/dump-sql-server-certificate-chain","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rgl/dump-sql-server-certificate-chain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdump-sql-server-certificate-chain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdump-sql-server-certificate-chain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdump-sql-server-certificate-chain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdump-sql-server-certificate-chain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/dump-sql-server-certificate-chain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdump-sql-server-certificate-chain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32451478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: 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":["sql-server","tls","troubleshooting"],"created_at":"2024-10-04T18:21:40.946Z","updated_at":"2026-04-30T01:37:34.039Z","avatar_url":"https://github.com/rgl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\r\n\r\nThis is a tool for dumping a given SQL Server certificate chain into local files.\r\n\r\nThe encrypted SQL Server Tabular Data Stream (TDS) protocol works above, with the exception of the first pre-login message, a standard TLS layer. But because of that initial message we cannot use regular tools (e.g. `openssl s_client`) to troubleshoot certificate issues, hence this tool exists.\r\n\r\nThis tool uses a [modified version](https://github.com/rgl/dump-sql-server-certificate-chain-go-mssqldb) of the [denisenkom/go-mssqldb](https://github.com/denisenkom/go-mssqldb) driver.\r\n\r\n# Build\r\n\r\nSetup the Go workspace:\r\n\r\n\tmkdir -p dump-sql-server-certificate-chain/src/github.com/rgl/dump-sql-server-certificate-chain\r\n\tcd dump-sql-server-certificate-chain\r\n\tgit clone --recursive https://github.com/rgl/dump-sql-server-certificate-chain src/github.com/rgl/dump-sql-server-certificate-chain\r\n\texport GOPATH=$PWD\r\n\texport PATH=$PWD/bin:$PATH\r\n\thash -r # reset bash path\r\n\r\nBuild:\r\n\r\n\tcd src/github.com/rgl/dump-sql-server-certificate-chain\r\n\tgo get\r\n\tgo build\r\n\r\nExecute:\r\n\r\n    ./dump-sql-server-certificate-chain -server sql.example.com\r\n\r\nList the dumped chain certificates:\r\n\r\n    ls -l *.der\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fdump-sql-server-certificate-chain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fdump-sql-server-certificate-chain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fdump-sql-server-certificate-chain/lists"}