Showing how to create and use Certificates, use ECDiffieHellmanCng to establish a shared secret and use AES encryption with a random initialization vector to encrypt a secret message.
This method enables establishing a shared secret over an untrusted connection. The certificate ensures, that the client can know that it does the exchange with a trusted source (server).