{"id":25190121,"url":"https://github.com/keyfactor/keyfactor-csharp-client-sdk","last_synced_at":"2025-09-16T16:13:43.171Z","repository":{"id":64268145,"uuid":"558976853","full_name":"Keyfactor/keyfactor-csharp-client-sdk","owner":"Keyfactor","description":"Client SDK in C# for the Keyfactor Web API","archived":false,"fork":false,"pushed_at":"2022-12-08T19:03:46.000Z","size":116,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-09T21:18:56.932Z","etag":null,"topics":["keyfactor-api-client"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Keyfactor.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":"2022-10-28T18:21:05.000Z","updated_at":"2023-03-23T16:26:09.000Z","dependencies_parsed_at":"2023-01-25T07:30:13.415Z","dependency_job_id":null,"html_url":"https://github.com/Keyfactor/keyfactor-csharp-client-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyfactor%2Fkeyfactor-csharp-client-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyfactor%2Fkeyfactor-csharp-client-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyfactor%2Fkeyfactor-csharp-client-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Keyfactor%2Fkeyfactor-csharp-client-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Keyfactor","download_url":"https://codeload.github.com/Keyfactor/keyfactor-csharp-client-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247167808,"owners_count":20895004,"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","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":["keyfactor-api-client"],"created_at":"2025-02-09T21:18:59.179Z","updated_at":"2025-09-16T16:13:38.128Z","avatar_url":"https://github.com/Keyfactor.png","language":"C#","readme":"# Community supported \nWe welcome contributions.\n \nThe Keyfactor C# Client SDK is open source and community supported, meaning that there is **no SLA** applicable for these tools.\n\nTo report a problem or suggest a new feature, use the **[Issues](../../issues)** tab. If you want to contribute actual bug fixes or proposed enhancements, use the **[Pull requests](../../pulls)** tab.\n\n# Keyfactor C# Client SDK\nClient SDK in C# for the Keyfactor Web API\n\nThe SDK includes the request/response structures and methods to make a web request to any endpoint supported by the Keyfactor Platform Web API. The entire source code is in [KeyfactorClientSDK/Client.cs](KeyfactorClientSDK/Client.cs); this is auto-generated by Visual Studio 2019 in conjunction with a Keyfactor-maintained tool. Usage examples are shown in the \"Harness\" project and below:\n\n```\nusing Keyfactor;\nusing System;\nusing System.Collections.Generic;\nusing System.Net.Http;\n\nnamespace Harness\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            Client c = new Client(\"http://192.168.78.139/KeyfactorAPI\", \"RE9NQUlOXHVzZXI6UGFzc3dvcmQ=\");\n\n            PFXEnrollmentResponse pfxResp = c.PostPFXEnrollAsync(\"PFX\", new PFXEnrollmentRequest()\n            {\n                Subject=\"CN=CSharpTest\",\n                Timestamp = DateTime.UtcNow,\n                Template = \"WebServer\",\n                IncludeChain = false,\n                PopulateMissingValuesFromAD = false\n            }).Result;\n            Console.WriteLine(pfxResp.CertificateInformation.Thumbprint);\n\n            c.UpdateMetadataAsync(null, new MetadataUpdateRequest()\n            {\n                Id = pfxResp.CertificateInformation.KeyfactorId.Value,\n                Metadata = new Dictionary\u003cstring, string\u003e() { { \"Email-Contact\", \"keyfactor@example.com\" } }\n            });\n\n            CertificateRetrievalResponse resp = c.GetCertificateAsync(pfxResp.CertificateInformation.KeyfactorId.Value, null, null, null, 4).Result;\n            Console.WriteLine(Convert.ToBase64String(resp.ContentBytes));\n            Console.WriteLine(resp.Metadata[\"Email-Contact\"]);\n        }\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyfactor%2Fkeyfactor-csharp-client-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyfactor%2Fkeyfactor-csharp-client-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyfactor%2Fkeyfactor-csharp-client-sdk/lists"}