Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Certificate pinning is a security measure used to make sure your web or mobile app only connects to specific, pre-approved servers. It helps protect your users from potential security risks, like man-in-the-middle attacks or fake websites. Normally, when your app communicates with a server, it checks the server's digital certificate to verify its identity. But sometimes, attackers can create fake certificates that pretend to be from the real server. This is where certificate pinning comes into play.

With pinning, instead of just trusting any certificate that appears valid, your app will "pin" or save saves the real certificate's details (like a fingerprint) the first time it connects to the server. In the future, when your app communicates with the server again, it will check if the pinned certificate matches the one from the server. If they match, it means the connection is secure, and your app can proceed with confidence.

...