{"id":16244612,"url":"https://github.com/indexzero/read-ssl","last_synced_at":"2025-08-12T01:10:29.424Z","repository":{"id":31682882,"uuid":"35248452","full_name":"indexzero/read-ssl","owner":"indexzero","description":"A simple node library to read SSL certificate files according to a basic convention. ","archived":false,"fork":false,"pushed_at":"2016-02-01T22:20:19.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T21:04:20.913Z","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/indexzero.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":"2015-05-07T23:26:01.000Z","updated_at":"2024-07-03T09:11:36.000Z","dependencies_parsed_at":"2022-08-25T07:40:15.016Z","dependency_job_id":null,"html_url":"https://github.com/indexzero/read-ssl","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fread-ssl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fread-ssl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fread-ssl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fread-ssl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indexzero","download_url":"https://codeload.github.com/indexzero/read-ssl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247829517,"owners_count":21002997,"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-10T14:19:56.515Z","updated_at":"2025-04-08T11:20:11.193Z","avatar_url":"https://github.com/indexzero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# read-ssl\n\nA simple node library to read SSL certificate files according to a basic convention.\n\n## Usage\n\n``` js\nvar readSsl = require('read-ssl');\n\nreadSsl({\n  root: __dirname,\n  key: 'relative/path/to/file.key',\n  cert: 'relative/path/to/file.cert',\n  ca: 'relative/path/to/ca.pem'\n  //\n  // `ca` can alternatively be an Array\n  //\n  ca: [\n    'relative/path/to/ca.pem'\n    'relative/path/to/intermediate-ca.pem'\n  ]\n}, function (err, res) {\n  assert(Buffer.isBuffer(res.key));\n  assert(Buffer.isBuffer(res.cert));\n  assert(Buffer.isBuffer(res.ca));\n});\n```\n\n`readSsl` can also be used to create the `crypto` context necessary for performing operations like responding appropriately to an `SNICallback`:\n\n``` js\nvar readSsl = require('read-ssl');\n\nreadSsl.createContext({\n  root: __dirname,\n  key: 'relative/path/to/file.key',\n  cert: 'relative/path/to/file.cert'\n}, function (err, context) {\n  //\n  // Context is the result of\n  // require('crypto').createCredentials().context\n  // with the result of a `readSsl` call.\n  //\n});\n```\n\n##### AUTHOR: [Charlie Robbins](https://github.com/indexzero)\n##### LICENSE: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findexzero%2Fread-ssl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findexzero%2Fread-ssl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findexzero%2Fread-ssl/lists"}