{"id":22239578,"url":"https://github.com/micromaomao/ctclient","last_synced_at":"2025-07-27T23:32:17.811Z","repository":{"id":37499291,"uuid":"263369487","full_name":"micromaomao/ctclient","owner":"micromaomao","description":"Certificate Transparency Log client suitable for monitoring, quick SCT validation, gossiping, etc.","archived":false,"fork":false,"pushed_at":"2021-02-13T18:32:38.000Z","size":6874,"stargazers_count":21,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-24T00:08:39.197Z","etag":null,"topics":["certificate-transparency","cryptography","openssl","pki","rust","tls"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/micromaomao.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":"2020-05-12T15:01:48.000Z","updated_at":"2025-02-05T23:03:21.000Z","dependencies_parsed_at":"2022-07-25T23:49:15.511Z","dependency_job_id":null,"html_url":"https://github.com/micromaomao/ctclient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/micromaomao/ctclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromaomao%2Fctclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromaomao%2Fctclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromaomao%2Fctclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromaomao%2Fctclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micromaomao","download_url":"https://codeload.github.com/micromaomao/ctclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromaomao%2Fctclient/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266861485,"owners_count":23996621,"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-07-24T02:00:09.469Z","response_time":99,"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":["certificate-transparency","cryptography","openssl","pki","rust","tls"],"created_at":"2024-12-03T03:20:05.572Z","updated_at":"2025-07-27T23:32:17.193Z","avatar_url":"https://github.com/micromaomao.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u0026#x1F512; [Certificate Transparency](https://www.certificate-transparency.org/) Log client library\n\n[![live stream domain video demo](./readme_img/demo.gif)](./examples/live_stream_domains.rs)\n\n![Crates.io](https://img.shields.io/crates/l/ctclient)\u0026nbsp;[![Crates.io](https://img.shields.io/crates/v/ctclient)](https://crates.io/crates/ctclient)\u0026nbsp;[![doc link](https://docs.rs/ctclient/badge.svg)](https://docs.rs/ctclient)\n\nCertificate Transparency Log client suitable for monitoring, quick SCT validation, gossiping, etc.\n\n(Not a full-fledged client with UI and everything - will work on that later. This is just a library to make your own client with.)\n\n## Build requirement\n\nOpenSSL \u003e= 1.1.0\n\n## Features\n\n* [Monitor tree head update and certificates](https://docs.rs/ctclient/0.4/ctclient/struct.CTClient.html)\n* Verify consistency and inclusion proof (automatically or via [low level API](https://docs.rs/ctclient/0.4/ctclient/internal/index.html#functions))\n* Verify Signed Tree Head (STH) and Signed Certificate Timestamp (SCT), and [fetch and verify inclusion proof to defend the SCT](https://docs.rs/ctclient/0.4/ctclient/struct.CTClient.html#method.check_inclusion_proof_for_sct).\n* More low level API to [mess with leaf data](https://docs.rs/ctclient/0.4/ctclient/internal/struct.Leaf.html#fields), [proof construction](https://docs.rs/ctclient/0.4/ctclient/internal/fn.consistency_proof_parts.html), etc.\n* [Extract SCT from certificate](https://docs.rs/ctclient/0.4/ctclient/struct.SignedCertificateTimestamp.html#method.from_cert_sct_extension)\n* Lots of comment in code intended as reference for other hackers.\n\n## TODOs\n\n* **Implement gossiping protocols**\n* Use async IO (currently all API requests are blocking)\n* A helper to monitor multiple logs simultaneously\n* Certificate submission\n* More test coverage\n\n## Examples \u0026 DEMOs\n\nNote that you can run those by \u003ccode\u003ecargo run --example \u003ci\u003ename\u003c/i\u003e\u003c/code\u003e\n\n* `examples/parse_sct_list_from_cert.rs`: Parse a certificate with a \"CT Precertificate SCTs\" extension and print out the SCTs. Also check that the logs can provide an inclusion proof for those leafs based on the latest tree head.\n\n\t![screenshot](readme_img/example_parse_sct_list_from_cert.png)\n\n* `examples/live_stream_domains.rs`: Read out certificates as they are published by a log and print out the CA and domain names.\n\n\tDEMO at the top of this README.\n\n* `examples/simple_client/simple_client.rs`: A simple SQLite-backed CT log client monitoring a single log.\n\n\t* Check that the tree is consistent (extend-only) each time a new tree head is received.\n\t* Download and inspect all certificates searching for a hard-coded domain name.\n\t* Store tree heads and matched certificates in SQLite database.\n\t* Intended to be a base on which more sophisticated clients can be built.\n\n\t![screenshot](readme_img/example_simple_client.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromaomao%2Fctclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicromaomao%2Fctclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromaomao%2Fctclient/lists"}