{"id":17526489,"url":"https://github.com/zmap/zcertificate","last_synced_at":"2025-08-20T22:32:23.937Z","repository":{"id":54438550,"uuid":"90905088","full_name":"zmap/zcertificate","owner":"zmap","description":"Command line utility for parsing certificates  ","archived":false,"fork":false,"pushed_at":"2021-02-17T23:03:07.000Z","size":1749,"stargazers_count":57,"open_issues_count":8,"forks_count":18,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-06-18T14:08:46.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/zmap.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":"2017-05-10T20:23:22.000Z","updated_at":"2024-06-18T14:08:46.797Z","dependencies_parsed_at":"2022-08-13T15:40:41.928Z","dependency_job_id":null,"html_url":"https://github.com/zmap/zcertificate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmap%2Fzcertificate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmap%2Fzcertificate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmap%2Fzcertificate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmap%2Fzcertificate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmap","download_url":"https://codeload.github.com/zmap/zcertificate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230462909,"owners_count":18229865,"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":[],"created_at":"2024-10-20T15:01:49.572Z","updated_at":"2024-12-19T16:12:30.514Z","avatar_url":"https://github.com/zmap.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# ZCertificate\n\n[![CI Status](https://github.com/zmap/zcertificate/workflows/Go/badge.svg)](https://github.com/zmap/zcertificate/actions?query=workflow%3AGo)\n[![Lint Status](https://github.com/zmap/zcertificate/workflows/golangci-lint/badge.svg)](https://github.com/zmap/zcertificate/actions?query=workflow%3Agolangci-lint)\n\nZCertificate parses X.509 certificates and runs [ZLint](https://github.com/zmap/zlint).\n\n### Installing ZCertificate\n\n1. Pick a [ZCertificate release][releases] and download the `.tar.gz` archive for\n   your architecture (for example `Linux_x86_64.tar.gz`):\n\n       wget https://github.com/zmap/zcertificate/releases/download/v0.0.1/zcertificate_0.0.1_Linux_x86_64.tar.gz\n\n1. Extract the archive and change into the extracted directory:\n\n       tar xf zcertificate*.tar.gz\n       cd zcertificate*\n\n1. Make the `zcertificate` program executable:\n\n       chmod +x zcertificate \n\n1. Run the `zcertificate` program:\n\n       ./zcertificate\n\n[releases]: https://github.com/zmap/zcertificate/releases\n\n### Building from source\n\nBuilding ZCertificate from source requires [Go 1.16.x or\nnewer](https://golang.org/doc/install). \n\nAssuming the `go` command is in your `$PATH` you can build ZCertificate from\nsource with:\n\n```bash\ngo get github.com/zmap/zcertificate/cmd/zcertificate\n```\n\n### Usage\n\n```\n$ ./zcertificate --help\nUsage of ./zcertificate:\n  -fatal-parse-errors\n    \tHalt if a certificate cannot be parsed. Default is to log.\n  -json-parse-errors\n    \tOutput json if a certificate cannot be parsed. Default is not to.\n  -format string\n    \tone of {pem, base64} (default \"pem\")\n  -output-file string\n    \tSpecifies file path for the output JSON. (default \"-\")\n  -procs int\n    \tSpecifies number of processes to run on. Default is 0, meaning use current value of $GOMAXPROCS.\n  -workers int\n    \tSpecifies number of goroutines to use to parse and lint certificates. (default 1)\n\n$ cat example.crt | zcertificate | jq .\nINFO[0000] reading from stdin\nINFO[0000] writing to stdout\n{\n  \"raw\": \"...\",\n  \"parsed\": {\n    \"version\": 3,\n    \"serial_number\": \"513\",\n    \"signature_algorithm\": {\n      \"name\": \"SHA1WithRSA\",\n      \"oid\": \"1.2.840.113549.1.1.5\"\n    },\n    \"issuer\": {\n      \"country\": [\n        \"US\"\n      ],\n  ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmap%2Fzcertificate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmap%2Fzcertificate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmap%2Fzcertificate/lists"}