Examples of use cases for certificates for the use case encryption

A simple example of using certificates is outlined here to illustrate the principle. The task is for Alice to send a file to Bob in a way that prevents Mallory from reading it if she intercepts it. To do this, Bob creates a key pair consisting of a private and a public key. The private key remains with Bob and is kept secret. The public key is filed in a certificate and stored as a certificate file. Upon Alice's request, Bob sends the certificate to Alice. Mallory could intercept this and read it as well.

Ein Bild, das Diagramm, Text, Reihe, Screenshot enthält.

Automatisch generierte Beschreibung

Example for encryption in one way (asymmetric encryption)

Alice takes Bob's public key from his certificate and uses it to encrypt the file to be transferred. If this file is transmitted to Bob and intercepted by Mallory, she cannot read it even if she knows Bob's public key. Bob, in turn, can use his private key to decrypt the file and then read it in plain text. If Bob then wants to send an encrypted reply to Alice, the transport takes place the other way around.

Ein Bild, das Diagramm, Text, Plan, technische Zeichnung enthält.

Automatisch generierte Beschreibung

Example for encryption in both ways (asymmetric encryption)

First, Alice generates a pair of keys and puts the public key in a certificate. Then, Bob requests Alice's certificate which contains a key that he can use to encrypt the file. Even if Mallory possesses Alice's public key, she cannot read the file in transit. However, Alice can use the private key to decrypt and read the file.