Security

Certificate Pinning

Description

Associating a host with their expected X.509 certificate or public key.

Where to use

  • Mobile App Security.
  • \n
  • Preventing MITM.

Real World Example

App contains the hash of the backend's SSL cert and rejects any other certs.

Code Example

class CertificatePinning:\n    def __init__(self):\n        pass\n\n    def execute(self):\n        print('Executing Certificate Pinning')