{"id":19246999,"url":"https://github.com/bytewizer/cert2src","last_synced_at":"2026-06-13T06:33:21.285Z","repository":{"id":93474504,"uuid":"533059266","full_name":"bytewizer/cert2src","owner":"bytewizer","description":"A command line utility to download and export root certificates required for TinyCLR OS to access secure sites.","archived":false,"fork":false,"pushed_at":"2022-09-10T18:44:40.000Z","size":5843,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T06:31:48.495Z","etag":null,"topics":["iot","netmf","sitcore","tinyclr"],"latest_commit_sha":null,"homepage":"","language":"C#","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/bytewizer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-09-05T21:02:52.000Z","updated_at":"2022-09-10T19:10:38.000Z","dependencies_parsed_at":"2023-04-12T08:32:16.555Z","dependency_job_id":null,"html_url":"https://github.com/bytewizer/cert2src","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bytewizer/cert2src","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytewizer%2Fcert2src","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytewizer%2Fcert2src/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytewizer%2Fcert2src/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytewizer%2Fcert2src/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytewizer","download_url":"https://codeload.github.com/bytewizer/cert2src/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytewizer%2Fcert2src/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34275068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":["iot","netmf","sitcore","tinyclr"],"created_at":"2024-11-09T17:35:57.380Z","updated_at":"2026-06-13T06:33:21.250Z","avatar_url":"https://github.com/bytewizer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cert2src\n\n[![Release](https://github.com/bytewizer/cert2src/actions/workflows/release.yml/badge.svg)](https://github.com/bytewizer/cert2src/actions/workflows/release.yml)\n\nThis is a simple command line utility for download and exporting the chain root certificates required for [TinyCLR OS](https://www.ghielectronics.com/) to access secure sites.  Certificate can be exported in Security Certificate File Format (crt) commonly embedded as a binary project resource or a csharp source code array easly added to a project as source code.\n\n```\nUsage: cert2src.exe url [options]\n\nDownload and export root certificates required for TinyCLR OS to access secure sites.\n\noptions:\n --help        Displays general help information about other commands.\n --path        Output chain root certificate as base-64 encoded PEM format to file.\n --code        Set output format as csharp source code array.\n --width       Width of the source code array output (default 18).\n --namespace   Namespace used when creating code array output.\n --classname   Class name structure used when creating code array output.\n```\nNote: you can included the --path flag without a path and it will default to the executable path location. \n\n## Installation\n\nDownload the latest [cert2src.exe](https://github.com/bytewizer/cert2src/releases)  file and unzip to a local working directory.\n\n## Examples\n\n```\nC:\\project\u003ecert2src.exe https://www.google.com --path\n\n-----BEGIN CERTIFICATE-----\nMIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkGA1UEBhMCQkUx\nGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jvb3QgQ0ExGzAZBgNVBAMTEkds\n\n[Intentionally omitted]\n\nhm4qxFYxldBniYUr+WymXUadDKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveC\nX4XSQRjbgbMEHMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A==\n-----END CERTIFICATE-----\n\nRoot certificate successfully exported to 'C:\\project\\certificate.crt'\nRoot certificate downloaded from 'https://www.google.com/'\n```\n\n```\nC:\\project\u003ecert2src.exe https://www.google.com --path --code --width 10\n\nprivate static readonly byte[] Certificate =\n{\n     0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e,\n     0x20, 0x43, 0x45, 0x52, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41,\n\n     [Intentionally omitted]\n\n     0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x43, 0x45,\n     0x2d, 0x2d, 0x2d, 0x2d, 0x0d, 0x0a\n};\n\nRoot certificate successfully exported to 'C:\\project\\certificate.cs'\nRoot certificate downloaded from 'https://www.google.com/'\n```\n\n## Project Files\nAutomate the updating of project resources by adding a command target to the bottom of your project \u003cc\u003e.csproj\u003c/c\u003e file. \n```\n\u003cTarget Name=\"GetSSLCert\" BeforeTargets=\"PrepareForBuild\"\u003e\n  \u003cExec Command=\"$(SolutionDir)tools\\cert2src.exe https://api.host.com --path $(ProjectDir)Resources\" /\u003e\n\u003c/Target\u003e\n```\n\n## Contributions\n\nContributions to this project are always welcome. Please consider forking this project on GitHub and sending a pull request to get your improvements added to the original project.\n\n## Disclaimer\n\nAll source, documentation, instructions and products of this project are provided as-is without warranty. No liability is accepted for any damages, data loss or costs incurred by its use.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytewizer%2Fcert2src","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytewizer%2Fcert2src","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytewizer%2Fcert2src/lists"}