{"id":16625824,"url":"https://github.com/aleclarson/certpem","last_synced_at":"2025-08-16T16:46:55.711Z","repository":{"id":66177597,"uuid":"104270743","full_name":"aleclarson/certpem","owner":"aleclarson","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-15T07:45:24.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T02:44:03.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/aleclarson.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":"2017-09-20T21:45:23.000Z","updated_at":"2017-09-21T00:42:01.000Z","dependencies_parsed_at":"2023-02-20T18:00:19.334Z","dependency_job_id":null,"html_url":"https://github.com/aleclarson/certpem","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.25,"last_synced_commit":"55c184142f11868f1a7703fb7ab292c8c6ed848e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fcertpem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fcertpem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fcertpem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fcertpem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleclarson","download_url":"https://codeload.github.com/aleclarson/certpem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243039629,"owners_count":20226131,"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-12T04:07:22.447Z","updated_at":"2025-03-11T12:51:54.681Z","avatar_url":"https://github.com/aleclarson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# certpem\n\nRead basic info from a cert.pem / x509 certificate.\n\n### CLI\n\nFor basic info (subject, altnames, issuedAt, expiresAt):\n\n```bash\ncertpem /path/to/cert.pem\n```\n\nOutput all info by passing `--debug` or use `--json` to see the basic info pretty-printed.\n\n### Runtime API\n\n```javascript\n'use strict';\n\nvar certpem = require('certpem').certpem\nvar cert = fs.readFile('cert.pem', 'ascii', function (err, certstr) {\n\n  // basic info\n  console.info(certpem.info(certstr));\n\n  // way too much info\n  console.info(certpem.debug(certstr));\n\n});\n```\n\nExample output:\n\n```javascript\n{\n  \"subject\": \"localhost.daplie.com\",\n  \"altnames\": [\n    \"localhost.daplie.com\"\n  ],\n  \"issuedAt\": 1465516800000,\n  \"expiresAt\": 1499731199000\n}\n```\n\nWith a few small changes this could also work in the browser (that's how its dependencies are designed).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fcertpem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleclarson%2Fcertpem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fcertpem/lists"}