{"id":46732616,"url":"https://github.com/rickar/getcert","last_synced_at":"2026-03-09T15:37:06.273Z","repository":{"id":57602217,"uuid":"173507615","full_name":"rickar/getcert","owner":"rickar","description":"A utility for retrieving server certificates from a web server or direct TCP connection.","archived":false,"fork":false,"pushed_at":"2025-03-23T23:39:20.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T00:28:09.699Z","etag":null,"topics":["certificate","go","golang","golang-tools","tls-certificate"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rickar.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}},"created_at":"2019-03-02T22:52:33.000Z","updated_at":"2025-03-23T23:39:23.000Z","dependencies_parsed_at":"2022-09-26T20:00:56.560Z","dependency_job_id":null,"html_url":"https://github.com/rickar/getcert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rickar/getcert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickar%2Fgetcert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickar%2Fgetcert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickar%2Fgetcert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickar%2Fgetcert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickar","download_url":"https://codeload.github.com/rickar/getcert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickar%2Fgetcert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30301117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"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":["certificate","go","golang","golang-tools","tls-certificate"],"created_at":"2026-03-09T15:37:04.176Z","updated_at":"2026-03-09T15:37:06.261Z","avatar_url":"https://github.com/rickar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# getcert\n\nA utility for retrieving server certificates from a web server or direct tcp \nconnection.\n\nThis is useful for getting copies of certificates to add to trust stores.\n\n# Installing\n\n```\ngo get -u github.com/rickar/getcert\n```\n\n# Using\nRun `getcert -help` to display command line options. They are reproduced below:\n\n```\n  -chain\n    \toutput entire trust chain\n  -clientCert file\n    \tclient certificate file (pem format)\n  -clientKey file\n    \tclient private key file (pem format)\n  -dir path\n    \toutput cert(s) to path directory using subject CN for filename\n  -format type\n    \toutput file type (\"pem\" or \"der\") (default \"pem\")\n  -host host\n    \thost to use when making direct TCP connection\n  -interactive\n    \tinteractive mode\n  -method string\n    \tHTTP method (GET, HEAD, OPTIONS, etc.) to use with url (default \"HEAD\")\n  -out filename\n    \toutput filename\n  -port port\n    \tport to use when making a direct TCP connection (default 443)\n  -proxy url\n    \tproxy server url to use when retreiving https certificate\n  -timeout duration\n    \tconnection timeout duration (default \"60s\")\n  -type protocol\n    \tconnection protocol to use (\"https\" or direct \"tcp\") (default \"https\")\n  -url url\n    \turl to use when retrieving https certificate\n  -verify\n    \tverify certificates (default true)\n```\n\nHTTPS usage requires `-url` and `-out` parameters. Direct TCP usage requires `-host`, `-port`, and `-out` parameters.\n\n## Examples\n\nExport the certificate for github.com to github.cer in PEM format:\n```\ngetcert -url https://github.com -out github.cer\n```\n\nExport the entire certificate chain for github.com to github*.cer:\n```\ngetcert -url https://github.com -out github.cer -chain\n```\n\nExport an untrusted certificate to untrusted.cer:\n```\ngetcert -url https://untrusted-root.badssl.com/ -out untrusted.cer -verify=false\n```\n\nExport the certificate for a non-web server:\n```\ngetcert -type tcp -host smtp.gmail.com -port 465 -out email.cer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickar%2Fgetcert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickar%2Fgetcert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickar%2Fgetcert/lists"}