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:
def __init__(self):
pass
def execute(self):
print('Executing Certificate Pinning')
