Download SECURING OPEN SOURCE VIRTUAL PRIVATE NETWORKS: A

Transcript
115
server and is never made public. Data that is encrypted with the public key can be
decrypted only with the private key, and data encrypted with the private key can be
decrypted only with the public key. Whitfield Diffie and Martin Hellman invented public
key cryptography in 1976, and for this reason, it is sometimes called Diffie-Hellman
encryption.
How PKI Works
In an Internet transaction, the client's Internet browser, or other Internet
application, randomly creates a public and private key pair for the SSL session. The client
uses the generated private key to encrypt a message, thereby providing for a means of
source authentication of the message. The encrypted message is then encrypted with the
server’s public key to provide confidentiality since only the server is able to do the initial
decryption of the message using its private key. The server then uses the client's public
key to decrypt the encrypted message. Only the client has access to its private key, and
therefore, the server is assured that the encrypted message was actually sent from the
client.
A message digest is also applied at the time of the initial encryption of the
message. The message digest is used to verify no one has tampered with the message’s
contents. To create a message digest, the sender applies a hash function, the part of the
private key known as the fingerprint, to the message. The digest is appended to the
original message, thereby providing a message signature. No matter how long the
message, the signature's length is constant. Making any change in the message will
change the length of the signature and will provide proof of the changes in the message
(OpenSSL core team, n.d.).