{"id":19321986,"url":"https://github.com/farcaller/tls-utils","last_synced_at":"2025-10-09T06:09:04.985Z","repository":{"id":66874217,"uuid":"576890284","full_name":"farcaller/tls-utils","owner":"farcaller","description":"A handy collection of tls plumbing scripts","archived":false,"fork":false,"pushed_at":"2022-12-11T10:34:20.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T05:31:44.399Z","etag":null,"topics":["openssl","tls"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farcaller.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-12-11T10:23:52.000Z","updated_at":"2024-09-11T18:16:13.000Z","dependencies_parsed_at":"2023-02-23T18:16:13.328Z","dependency_job_id":null,"html_url":"https://github.com/farcaller/tls-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/farcaller/tls-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaller%2Ftls-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaller%2Ftls-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaller%2Ftls-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaller%2Ftls-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farcaller","download_url":"https://codeload.github.com/farcaller/tls-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farcaller%2Ftls-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000853,"owners_count":26082950,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["openssl","tls"],"created_at":"2024-11-10T01:39:48.241Z","updated_at":"2025-10-09T06:09:04.943Z","avatar_url":"https://github.com/farcaller.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tls-utils\n\nA handy collection of tls plumbing scripts\n\nYou know that question on server fault on how to [display a remote SSL\ncertificate details using CLI tools][serverfault-openssl]? I keep forgetting the\nright set of openssl flags too, every so often.\n\nToday's the day I decided enough is enough and made this small collection of all\nthings SSL \u0026 TLS that just do the right thing.\n\n## Installing on nix\n\nJust add them to your profile:\n\n```\n$ nix profile install github:farcaller/tls-utils\n```\n\n## Usage\n\n### show-remote-cert\n\nReturns the certificate presented by the remote.\n\n```\n$ show-remote-cert example.com\ndepth=2 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA\nverify return:1\ndepth=1 C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1\nverify return:1\ndepth=0 C = US, ST = California, L = Los Angeles, O = Internet\\C2\\A0Corporation\\C2\\A0for\\C2\\A0Assigned\\C2\\A0Names\\C2\\A0and\\C2\\A0Numbers, CN = www.example.org\nverify return:1\nDONE\nCertificate:\n    Data:\n        Version: 3 (0x2)\n        Serial Number:\n            0f:aa:63:10:93:07:bc:3d:41:48:92:64:0c:cd:4d:9a\n        Signature Algorithm: sha256WithRSAEncryption\n        Issuer: C = US, O = DigiCert Inc, CN = DigiCert TLS RSA SHA256 2020 CA1\n...\n```\n\nYou can optionally specify the port:\n\n```\n$ show-remote-cert localhost 6443\ndepth=1 CN = k3s-server-ca@1664454296\nverify error:num=19:self-signed certificate in certificate chain\nverify return:1\ndepth=1 CN = k3s-server-ca@1664454296\nverify return:1\ndepth=0 O = k3s, CN = k3s\nverify return:1\nDONE\nCertificate:\n    Data:\n        Version: 3 (0x2)\n        Serial Number: 7888028153356117863 (0x6d77e7d01b126767)\n        Signature Algorithm: ecdsa-with-SHA256\n        Issuer: CN = k3s-server-ca@1664454296\n...\n```\n\n## License\n\nDistributed under Apache-2.0\n\n[serverfault-openssl]:\n    https://serverfault.com/questions/661978/displaying-a-remote-ssl-certificate-details-using-cli-tools\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarcaller%2Ftls-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarcaller%2Ftls-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarcaller%2Ftls-utils/lists"}