{"id":19338011,"url":"https://github.com/scrive/pkcs10-hs","last_synced_at":"2025-10-28T12:43:46.324Z","repository":{"id":226261610,"uuid":"768203948","full_name":"scrive/pkcs10-hs","owner":"scrive","description":"Haskell PKCS #10 library","archived":false,"fork":false,"pushed_at":"2024-03-07T14:30:58.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-24T08:16:11.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scrive.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-06T16:53:49.000Z","updated_at":"2024-03-14T14:58:05.000Z","dependencies_parsed_at":"2024-03-06T18:43:33.129Z","dependency_job_id":"dbe21274-a092-4970-b248-1669bb97fd3e","html_url":"https://github.com/scrive/pkcs10-hs","commit_stats":null,"previous_names":["scrive/pkcs10-hs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scrive/pkcs10-hs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrive%2Fpkcs10-hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrive%2Fpkcs10-hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrive%2Fpkcs10-hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrive%2Fpkcs10-hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scrive","download_url":"https://codeload.github.com/scrive/pkcs10-hs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrive%2Fpkcs10-hs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281441023,"owners_count":26501758,"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-10-28T02:00:06.022Z","response_time":60,"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":[],"created_at":"2024-11-10T03:16:05.132Z","updated_at":"2025-10-28T12:43:46.295Z","avatar_url":"https://github.com/scrive.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"PKCS#10 library\n=========\n\n[![Build Status](https://travis-ci.org/fcomb/pkcs10-hs.svg)](https://travis-ci.org/fcomb/pkcs10-hs)\n\n### Example\n\n```haskell\nimport           Crypto.Hash\nimport           Crypto.PubKey.RSA\nimport           Data.X509\nimport           Data.X509.PKCS10\n\nmain :: IO ()\nmain = do\n  let rsaKeySize = 128\n  let publicExponent = 3\n  (pubKey, privKey) \u003c- generate rsaKeySize publicExponent\n  let subjectAttrs = makeX520Attributes [(X520CommonName, \"node.fcomb.io\"), (X520OrganizationName, \"fcomb\")]\n  let extAttrs = PKCS9Attributes [PKCS9Attribute $ ExtBasicConstraints False Nothing, PKCS9Attribute $ ExtKeyUsage [KeyUsage_digitalSignature,KeyUsage_nonRepudiation,KeyUsage_keyEncipherment]]\n  Right req \u003c- generateCSR subjectAttrs extAttrs (KeyPairRSA pubKey privKey) SHA512\n  putStrLn . show . toPEM $ req -- export in PEM format\n  putStrLn . show $ verify (csrToSigned req) $ PubKeyRSA pubKey -- sign CSR before verifying\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrive%2Fpkcs10-hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrive%2Fpkcs10-hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrive%2Fpkcs10-hs/lists"}