How it works...
Without diving too much into the mathematics behind public key algorithms such as Rivest-Shamir-Adleman (RSA) or Elliptic-Curve Diffie Hellman (ECDH), the security of the encryption hinges on certificates. These certificates, or the private and public keys, are used to encrypt or digitally sign data.
In order to encrypt data, you must know the public key of your recipients. On a Windows system, for example, this is achieved by importing a base64 encoded *.cer file into your personal certificate store. The recipient must be in possession of their private key in order to decrypt the data that was meant for them. Only entities in the possession of the private key can decrypt the data.
A digital signature, on the other hand, works ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access