{"id":19404291,"url":"https://github.com/hasithaishere/mtls-with-nodejs","last_synced_at":"2025-08-12T06:33:35.286Z","repository":{"id":196336218,"uuid":"695757012","full_name":"hasithaishere/mtls-with-nodejs","owner":"hasithaishere","description":"Discover how to implement mTLS in Node.js for secure communication. Practical code examples and easy steps for enhanced application security.","archived":false,"fork":false,"pushed_at":"2024-01-26T18:12:29.000Z","size":425,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T00:36:54.172Z","etag":null,"topics":["api","certificates","mtls","mtls-authentication","nodejs","security","tls"],"latest_commit_sha":null,"homepage":"https://blog.hasitha.xyz/securing-nodejs-communication-a-deep-dive-into-mutual-tls-mtls","language":"JavaScript","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/hasithaishere.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":"2023-09-24T05:55:55.000Z","updated_at":"2023-09-24T07:26:05.000Z","dependencies_parsed_at":"2024-11-10T12:16:09.340Z","dependency_job_id":null,"html_url":"https://github.com/hasithaishere/mtls-with-nodejs","commit_stats":null,"previous_names":["hasithaishere/mtls-with-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hasithaishere/mtls-with-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Fmtls-with-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Fmtls-with-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Fmtls-with-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Fmtls-with-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasithaishere","download_url":"https://codeload.github.com/hasithaishere/mtls-with-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasithaishere%2Fmtls-with-nodejs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270014238,"owners_count":24512608,"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-08-12T02:00:09.011Z","response_time":80,"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":["api","certificates","mtls","mtls-authentication","nodejs","security","tls"],"created_at":"2024-11-10T11:33:54.459Z","updated_at":"2025-08-12T06:33:35.247Z","avatar_url":"https://github.com/hasithaishere.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Deep Dive into Mutual TLS (mTLS) with NodeJS\n\nThis project contains source code and supporting files for a server and client application that demonstrate mutual TLS (mTLS) authentication between a client and a server. The server and client is written in NodeJS.\n\nThis is a companion project to the blog post [Securing Node.js Communication: A Deep Dive into Mutual TLS (mTLS)](https://blog.hasitha.xyz/securing-nodejs-communication-a-deep-dive-into-mutual-tls-mtls).\n\n## Getting Started\n\nTo get started, clone this repository and install the dependencies.\n\n```bash\ngit clone git@github.com:hasithaishere/mtls-with-nodejs.git\ncd nodejs-mtls\nnpm install\n```\n\n## Running the Server\n\nTo run the server, run the following command:\n\n```bash\nnpm run server\n```\n\n## Running the Client\n\nTo run the client, run the following command:\n\n```bash\nnpm run client\n```\n\n----\n\nFor the sample code to run correctly, please add the test domain names to your `/etc/hosts` file. This will prevent connection errors.\n\n\u003cp align='center'\u003e \u003cimg src=\"https://cdn.hashnode.com/res/hashnode/image/upload/v1706291269586/25b2b7f3-8781-438d-b929-c381e7279541.gif\"/\u003e\u003c/p\u003e\n\n### Related Videos\n\n- [Exploring  Mutual TLS (mTLS) : How to Create Certificate Authority(CA) Certificate using OpenSSL](https://youtu.be/Wueq9fjjyE0)\n- [Exploring  Mutual TLS (mTLS) : Generate Server Certificates](https://youtu.be/l6KSu9phQVo)\n- [Exploring  Mutual TLS (mTLS) : Generate Client Certificates](https://youtu.be/hgMZ7RyMP68)\n\n\nIf you have any questions, please feel free to reach out to me in the comments section of the blog post or on my site [hasitha.xyz](https://hasitha.xyz).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasithaishere%2Fmtls-with-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasithaishere%2Fmtls-with-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasithaishere%2Fmtls-with-nodejs/lists"}