SSL/TLS 101
Shih-Chiang Chien
Outline
Requirement for network security
What is SSL/TLS
History of SSL/TLS
TLS Record Protocol
Uninterpreted data from higher layers in non-empty blocks of arbitrary size.
Data Encryption
Data Integrity
TLS Handshake protocol
Establish Security Capabilities
Key Exchange
RSA
Diffie-Hellman
Key Calculation
master_secret = PRF(pre_master_secret,� "master secret",� client_random + server_random)� [0..47];�key_block = PRF(master_secret,� "key expansion",� server_random + client_random);
Perfect Forward Secrecy
Authentication
Certificate Validation
Change Cipher Spec Protocol
Alert Protocol
enum { close_notify(0), unexpected_message(10), bad_record_mac(20),� decryption_failed_RESERVED(21), record_overflow(22),� decompression_failure(30), handshake_failure(40),� no_certificate_RESERVED(41), bad_certificate(42),� unsupported_certificate(43), certificate_revoked(44),� certificate_expired(45), certificate_unknown(46),� illegal_parameter(47), unknown_ca(48), access_denied(49),� decode_error(50), decrypt_error(51), export_restriction_RESERVED(60),� protocol_version(70), insufficient_security(71),� internal_error(80), user_canceled(90), no_renegotiation(100),� unsupported_extension(110), (255)�} AlertDescription;
TLS False Start
Session Resumption
Session Ticket
Application Layer Protocol Negotiation (ALPN)
Server Name Indication (SNI)
HTTP Strict Transport Security
HTTP Public Key Pinning
CSP for enforcing HTTPS