{"id":39104018,"url":"https://github.com/eigerco/rustls-gcp-kms","last_synced_at":"2026-01-17T19:19:37.480Z","repository":{"id":292431722,"uuid":"976246241","full_name":"eigerco/rustls-gcp-kms","owner":"eigerco","description":"Rustls Google Cloud Platform TLS CryptoProvider","archived":false,"fork":false,"pushed_at":"2025-06-07T09:01:48.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T10:17:54.342Z","etag":null,"topics":["google-cloud-platform","rustls"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/eigerco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2025-05-01T19:03:24.000Z","updated_at":"2025-06-07T09:00:52.000Z","dependencies_parsed_at":"2025-05-26T14:34:04.607Z","dependency_job_id":null,"html_url":"https://github.com/eigerco/rustls-gcp-kms","commit_stats":null,"previous_names":["vaporif/rustls-gcp-kms","eigerco/rustls-gcp-kms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eigerco/rustls-gcp-kms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Frustls-gcp-kms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Frustls-gcp-kms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Frustls-gcp-kms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Frustls-gcp-kms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eigerco","download_url":"https://codeload.github.com/eigerco/rustls-gcp-kms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eigerco%2Frustls-gcp-kms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28516741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"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":["google-cloud-platform","rustls"],"created_at":"2026-01-17T19:19:36.896Z","updated_at":"2026-01-17T19:19:37.471Z","avatar_url":"https://github.com/eigerco.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rustls KMS Provider\nA Rust library that enables TLS client authentication via rustls using private keys stored in Google Cloud KMS (Key Management Service).\n\n[![Build Status](https://github.com/eigerco/rustls-gcp-kms/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/eigerco/rustls-gcp-kms/actions/workflows/ci.yaml?query=branch%3Amain)\n\n\n## Installation\n\nAdd the library to your Cargo.toml:\n\n```toml\n[dependencies]\nrustls-gcp-kms = { git = \"https://github.com/eigerco/rustls-gcp-kms.git\" }\n\n```\n\n## Features\n- serde: adds Serialize/Deserialize for `KmsConfig`\n\n\n## Example\n\n```rust\nuse std::sync::Arc;\nuse google_cloud_kms::client::{Client, ClientConfig};\nuse rustls::pki_types::CertificateDer;\nuse rustls::RootCertStore;\nuse rustls_gcp_kms::{dummy_key, provider, KmsConfig};\n\nasync fn send_request() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    // Configure KMS\n    let kms_config = KmsConfig::new(\n        \"my-project-id\",\n        \"global\",\n        \"my-keyring\",\n        \"my-signing-key\",\n        \"1\",\n    );\n\n    let client_config = ClientConfig::default()\n        .with_auth()\n        .await?;\n\n    let client = Client::new(client_config)\n        .await\n        .unwrap();\n\n    // Create the crypto provider with KMS\n    let crypto_provider = provider(client, kms_config).await?;\n\n    // Load your client certificate\n    let cert = std::fs::read(\"path/to/client.crt\")?;\n    let cert = CertificateDer::from_slice(\u0026cert).into_owned();\n\n    let client_config = rustls::ClientConfig::builder_with_provider(Arc::new(crypto_provider))\n        .with_safe_default_protocol_versions()\n        .unwrap()\n        .with_root_certificates(RootCertStore::empty())\n        .with_client_auth_cert(vec![cert], dummy_key());\n\n    // Configure reqwest with KMS-backed TLS\n    let client = reqwest::Client::builder()\n        .use_rustls_tls()\n        .use_preconfigured_tls(client_config)\n        .build()?;\n\n    // Make a request with client certificate authentication\n    let response = client\n        .get(\"https://api.example.com/secure-endpoint\")\n        .send()\n        .await?;\n\n    println!(\"Response: {}\", response.status());\n\n    Ok(())\n}\n```\n\n## About Eiger\n\nWe are engineers. We contribute to various ecosystems by building low level implementations and core components. Contact us at hello@eiger.co\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feigerco%2Frustls-gcp-kms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feigerco%2Frustls-gcp-kms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feigerco%2Frustls-gcp-kms/lists"}