Be able to explain the role of TLS and HTTPS in the TCP/IP stack
Network Stack with HTTP(application layer)
HTTP, Mail(MIME), FTP- cleartext
pass through SSL/TLS(inserting a new layer- converting plaintext into securing text)
→HTTPS, S/MIME,SFTP
Transport layer(TCP) segments
Network layer(IP) packets
Datalink (Ethernet) frames
Physical (bits)
TLS
- TLS 1.3 latest version
Services of SSL/TLS-
untrusted site (does not have certificate), can compromise your communication.
SSL handshake protocol - establish connection and session between client(browser) and server(e.g netbank), authenticating and negotiating encryption algorithm and keys
SSL Alert Protocol- alert messages for client and server w information if critical. e.g certificate expired, algoruthm not working, key expired. ensuring secure connection
SSL Record Protocol(is important) converts application data encrypted - encryption, decryption, checking message authentication, compression, decompress, application data breaks from segments into fragments.
SSL uses which what echange protocol?
Explain diffie-hellman key exchange
DIFFIE-HELLMAN KEY EXCHANGE
4.Exchange public keys- does not matter if public key is hacked as well
5.Mix public key with common code for common secret key(used for securing the information)
Secret common key = K = y^X % q
they exchange public keys and power it with their private keys % q. will be same for both.(used for secure communication.)
-Works so well due to Discrete logarithms as it hard to decode and reverse
TLS PHASES
1.SSL/TLS Handshake
Client and server authenticate each other by exchanging certificate, session ID ,and shared key.
2.TLS Record-
After exahgne of Change Cipher Spec ,
there is encryption of data generating message authentication code for integrity check.
alert when communication issue
Authentication with Certificates-
igital certificates are in public key, help to initialize the SSL/TLS connections
certificate helps to provide additional info for public
owner of matching private key used to decrypt
Every certificate checks:
validity(expiry date)
subject name
issuer name
other paramters
TRUSTED CERTIFICATE AUTHORITY-
e.g verisign
A Certificate Authority(CA) is a trusted entity issuing digital trusted certificates
help to link an entity(useer,browser,device,etc) with a public key.
authenticates entity with certificate
Diffie -hellman /RSA to exchangen digital cert.
Certificates can have problems
What is a VPN?
A VPN is an extension to private network across public network.
IPSec and how it is used for VPNs?
-IPSec(Network layer)- network layer.
packets can be encrypted.
IPSec provides authentication, confidentiality, and key management
2 Modes for IPSec
Used for VPNs and host-to-host/ host-to-network / network-to-network communication