{"id":29023011,"url":"https://github.com/bamlab/react-native-ssl-pinning","last_synced_at":"2025-07-19T10:03:35.584Z","repository":{"id":192077013,"uuid":"686012622","full_name":"bamlab/react-native-ssl-pinning","owner":"bamlab","description":"Implements SSLPinning with expo-module and expo-plugin ","archived":false,"fork":false,"pushed_at":"2023-12-04T14:23:28.000Z","size":277,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-09T06:09:38.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/bamlab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-09-01T14:25:28.000Z","updated_at":"2025-05-22T21:39:02.000Z","dependencies_parsed_at":"2023-12-11T15:47:48.281Z","dependency_job_id":null,"html_url":"https://github.com/bamlab/react-native-ssl-pinning","commit_stats":{"total_commits":27,"total_committers":4,"mean_commits":6.75,"dds":0.2222222222222222,"last_synced_commit":"3ade3617792b1a3d632e771feb2bc19eb0677801"},"previous_names":["bamlab/config-plugin-ssl-pinning"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bamlab/react-native-ssl-pinning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-ssl-pinning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-ssl-pinning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-ssl-pinning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-ssl-pinning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bamlab","download_url":"https://codeload.github.com/bamlab/react-native-ssl-pinning/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-ssl-pinning/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261990349,"owners_count":23241188,"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":"2025-06-26T03:04:58.390Z","updated_at":"2025-06-26T03:04:58.992Z","avatar_url":"https://github.com/bamlab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⛔️ [DEPRECATED] react-native-ssl-pinning\n\n**This package has been superseeded by [react-native-app-security](https://github.com/bamlab/react-native-app-security). Please head there for a more up-to-date SSL pinning implementation.**\n\n## Overview\n\nThis module implements SSL Pinning using an expo-module and an expo-plugin\n\n## Setting up the plugin\n\n1. Add the plugin to your dev dependencies\n\n   ```bash\n   yarn add -D @bam.tech/react-native-ssl-pinning\n   ```\n\n1. In your `app.config.ts` file, add the following attributes.\n\n   ```ts\n   //Example of host name and certificates with google.com\n   const hostName = \"google.com\";\n\n   //Do not include the 'sha256/' part in certificates\n   const certificateSHAFinal = \"We74o5ME3USRtL6+B2UhXnwY9FR91QPJMYDtUNk6tEc=\";\n   const certificateSHAIntermediate = \"zCTnfLwLKbS9S2sbp+uFz4KZOocFvXxkV06Ce9O5M2w=\";\n   const certificateSHARoot = \"hxqRlPTu1bMS/0DITB1SSu0vd4u/8l8TjPgfaAp63Gc=\";\n\n   const config: ExpoConfig = {\n     plugins: [\n       [\n         \"@bam.tech/react-native-ssl-pinning\",\n         {\n           hostName: hostName,\n           certificates: [\n             certificateSHAFinal,\n             certificateSHAIntermediate,\n             certificateSHARoot,\n           ],\n         },\n       ],\n     ],\n   };\n\n   module.exports = config;\n   ```\n\n## Using the plugin\n\n1. To use the plugin, run the following commands:\n\n```bash\n  npx expo prebuild --clean\n```\n\n1. It generates the configuration file for our plugin, then run\n\n```bash\n  npx pod-install\n```\n\n1. You might need to clean your caches. If required, run :\n\n```bash\n    rm -rf ~/Library/Developer/Xcode/DerivedData\n```\n\n## Testing the plugin\n\n1. To test if SSL Pinning is working, you can:\n\n- break (change) one or several certificates and see if the connexion with the server is still up when you rebuild the app\n- set up a proxy such as Proxyman and check if the connexion fails\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamlab%2Freact-native-ssl-pinning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbamlab%2Freact-native-ssl-pinning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamlab%2Freact-native-ssl-pinning/lists"}