{"id":22848787,"url":"https://github.com/membrane/cfssl-example","last_synced_at":"2026-02-03T12:33:22.599Z","repository":{"id":149463941,"uuid":"380173677","full_name":"membrane/cfssl-example","owner":"membrane","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-25T08:37:19.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-04T22:43:56.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/membrane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-06-25T08:26:33.000Z","updated_at":"2021-06-25T08:37:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"9874a32a-f07a-437e-b913-2ffb10bc70e3","html_url":"https://github.com/membrane/cfssl-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/membrane/cfssl-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membrane%2Fcfssl-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membrane%2Fcfssl-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membrane%2Fcfssl-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membrane%2Fcfssl-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/membrane","download_url":"https://codeload.github.com/membrane/cfssl-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membrane%2Fcfssl-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29045939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-12-13T04:14:02.815Z","updated_at":"2026-02-03T12:33:22.573Z","avatar_url":"https://github.com/membrane.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# cfssl Usage Demo\n\n## Workflows\n### CA: generate own cert\n```\ncfssl gencert -initca ca-csr.json | cfssljson -bare ca -\n```\n\n### server: generate own CSR \n```\ncfssl genkey server.json | cfssljson -bare server\n```\n\n### CA: sign server's CSR\n```\ncfssl sign -config=ca-config.json -profile=server -csr=server.csr -ca=ca.pem -ca-key=ca-key.pem | cfssljson -bare server\n```\n\n### client+CA: generate client's CSR \u0026 sign client's CSR \n```\ncfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-config.json -profile=client client.json | cfssljson -bare client\n```\n\n\n## Viewing\n### PEM key\n```\nopenssl rsa -in ca-key.pem -text\n```\n\n### PEM cert\n```\nopenssl x509 -in ca.pem -text\n```\n\n## Conversions\n\n### PEM cert to DER\n```\nopenssl x509 -in ca.pem -inform PEM -out ca.crt -outform DER\n```\n\n### PEM key+cert to PKCS12\n```\nopenssl pkcs12 -export -out client-key.pfx -inkey client-key.pem -in client.pem\n```\n\n## Notes\n\n* Do not issue certificates for 'localhost'.\n* Do not issue certificates for '127.0.0.1'.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembrane%2Fcfssl-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmembrane%2Fcfssl-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembrane%2Fcfssl-example/lists"}