SSL and TLS: Designing and Building Secure Systems / Edition 1

SSL and TLS: Designing and Building Secure Systems / Edition 1

by Eric Rescorla
     
 

ISBN-10: 0201615983

ISBN-13: 9780201615982

Pub. Date: 10/17/2000

Publisher: Addison-Wesley

"This is the best book on SSL/TLS. Rescorla knows SSL/TLS as well as anyone and presents it both clearly and completely.... At times, I felt like he's been looking over my shoulder when I designed SSL v3. If network security matters to you, buy this book."
Paul Kocher, Cryptography Research, Inc.
Co-Designer of SSL v3

"Having the right

…  See more details below

Overview

"This is the best book on SSL/TLS. Rescorla knows SSL/TLS as well as anyone and presents it both clearly and completely.... At times, I felt like he's been looking over my shoulder when I designed SSL v3. If network security matters to you, buy this book."
Paul Kocher, Cryptography Research, Inc.
Co-Designer of SSL v3

"Having the right crypto is necessary but not sufficient to having secure communications. If you're using SSL/TLS, you should have SSL and TLS sitting on your shelf right next to Applied Cryptography."
Bruce Schneier, Counterpane Internet Security, Inc.
Author of Applied Cryptography

"Everything you wanted to know about SSL/TLS in one place. It covers the protocols down to the level of packet traces. It covers how to write software that uses SSL/TLS. And it contrasts SSL with other approaches. All this while being technically sound and readable!"
Radia Perlman, Sun Microsystems, Inc.
Author of Interconnections

Secure Sockets Layer (SSL) and its IETF successor, Transport Layer Security (TLS), are the leading Internet security protocols, providing security for e-commerce, web services, and many other network functions. Using SSL/TLS effectively requires a firm grasp of its role in network communications, its security properties, and its performance characteristics. SSL and TLS provides total coverage of the protocols from the bits on the wire up to application programming.

This comprehensive book not only describes how SSL/TLS is supposed to behave but also uses the author's free ssldump diagnostic tool to show the protocols in action. The author covers each protocol feature, first explaining how it works and then illustrating it in a live implementation. This unique presentation bridges the difficult gap between specification and implementation that is a common source of confusion and incompatibility.

In addition to describing the protocols, SSL and TLS delivers the essential details required by security architects, application designers, and software engineers. Use the practical design rules in this book to quickly design fast and secure systems using SSL/TLS. These design rules are illustrated with chapters covering the new IETF standards for HTTP and SMTP over TLS.

Written by an experienced SSL implementor, SSL and TLS contains detailed information on programming SSL applications. The author discusses the common problems faced by implementors and provides complete sample programs illustrating the solutions in both C and Java. The sample programs use the free OpenSSL and PureTLS toolkits so the reader can immediately run the examples.

0201615983B04062001

Read More

Product Details

ISBN-13:
9780201615982
Publisher:
Addison-Wesley
Publication date:
10/17/2000
Edition description:
New Edition
Pages:
528
Sales rank:
1,004,051
Product dimensions:
7.24(w) x 9.05(h) x 1.18(d)

Table of Contents

Preface.

1. Security Concepts.

Introduction.

The Internet Threat Model.

The Players.

The Goals of Security.

Tools of the Trade.

Putting It All Together.

A Simple Secure Messaging System.

A Simple Secure Channel.

The Export Situation.

Real Cryptographic Algorithms.

Symmetric Encryption: Stream Ciphers.

Symmetric Encryption: Block Ciphers.

Digest Algorithms.

Key Establishment.

Digital Signature.

MACs.

Key Length.

Summary.

2. Introduction to SSL.

Introduction.

Standards and Standards Bodies.

SSL Over view.

SSL/TLS Design Goals.

SSL and the TCP/IP Suite.

SSL History.

SSL for the Web.

Everything over SSL.

Getting SSL.

Summary.

3. Basic SSL.

Introduction.

SSL Over view.

Handshake.

SSL Record Protocol.

Putting the Pieces Together.

A Real Connection.

Some More Connection Details.

SSL Specification Language.

Handshake Message Structure.

Handshake Messages.

Key Derivation.

Record Protocol.

Alerts and Closure.

Summary.

4. Advanced SSL.

Introduction.

Session Resumption.

Client Authentication.

Ephemeral RSA.

Rehandshake.

Server Gated Cryptography.

DSS and DH.

Elliptic Curve Cipher Suites.

Kerberos.

FORTEZZA.

The Story So Far.

Session Resumption Details.

Client Authentication Details.

Ephemeral RSA Details.

SGC Details.

DH/DSS Details.

FORTEZZA Details.

Error Alerts.

SSLv2 Backward Compatibility.

Summary.

5. SSL Security.

Introduction.

What SSL Provides.

Protect the master_secret.

Protect the Server's Private Key.

Use Good Randomness.

Check the Certificate Chain.

Algorithm Selection.

The Story So Far.

Compromise of the master_secret.

Protecting Secrets in Memory.

Securing the Server's Private Key.

Random Number Generation.

Certificate Chain Verification.

Partial Compromise.

Known Attacks.

Timing Cryptanalysis.

Million Message Attack.

Small-Subgroup Attack.

Downgrade to Export.

Summary.

6. SSL Performance.

Introduction.

SSL Is Slow.

Performance Principles.

Cryptography Is Expensive.

Session Resumption.

Handshake Algorithm and Key Choice.

Bulk Data Transfer.

Basic SSL Performance Rules.

The Story So Far.

Handshake Time Allocation.

Normal RSA Mode.

RSA with Client Authentication.

Ephemeral RSA.

DSS/DHE.

DSS/DHE with Client Authentication.

Performance Improvements with DH.

Record Processing.

Java.

SSL Servers under Load.

Hardware Acceleration.

Inline Hardware Accelerators.

Network Latency.

The Nagle Algorithm.

Handshake Buffering.

Advanced SSL Performance Rules.

Summary.

7. Designing with SSL.

Introduction.

Know What You Want to Secure.

Client Authentication Options.

Reference Integrity.

Inappropriate Tasks.

Protocol Selection.

Reducing Handshake Overhead.

Design Strategy.

The Story So Far.

Separate Ports.

Upward Negotiation.

Downgrade Attacks.

Reference Integrity.

Username/Password Authentication.

SSL Client Authentication.

Mutual Username/Password Authentication.

Rehandshake.

Secondary Channels.

Closure.

Summary.

8. Coding with SSL.

Introduction.

SSL Implementations.

Sample Programs.

Context Initialization.

Client Connect.

Server Accept.

Simple I/O Handling.

Multiplexed I/O Using Threads.

Multiplexed I/O with select().

Closure.

Session Resumption.

What's Missing?

Summary.

9. HTTP over SSL.

Introduction.

Securing the Web.

HTTP.

HTML.

URLs.

HTTP Connection Behavior.

Proxies.

Virtual Hosts.

Protocol Selection.

Client Authentication.

Reference Integrity.

HTTPS.

HTTPS Overview.

URLs and Reference Integrity.

Connection Closure.

Proxies.

Virtual Hosts.

Client Authentication.

Referrer.

Substitution Attacks.

Upgrade.

Programming Issues.

Proxy CONNECT.

Handling Multiple Clients.

Summary.

10. SMTP over TLS.

Introduction.

Internet Mail Security.

Internet Messaging Overview.

SMTP.

RFC 822 and MIME.

E-Mail Addresses.

Mail Relaying.

Virtual Hosts.

MX Records.

Client Mail Access.

Protocol Selection.

Client Authentication.

Reference Integrity.

Connection Semantics.

STARTTLS.

STARTTLS Overview.

Connection Closure.

Requiring TLS.

Virtual Hosts.

Security Indicators.

Authenticated Relaying.

Originator Authentication.

Reference Integrity Details.

Why Not CONNECT?

What's STARTTLS Good For?

Programming Issues.

Implementing STARTTLS.

Server Startup.

Summary.

11. Contrasting Approaches.

Introduction.

The End-to-End Argument.

The End-to-End Argument and SMTP.

Other Protocols.

IPsec.

Security Associations.

ISAKMP and IKE.

AH and ESP.

Putting It All Together: IPsec.

IPsec versus SSL.

Secure HTTP.

CMS.

Message Format.

Cryptographic Options.

Putting It All Together: S-HTTP.

S-HTTP versus HTTPS.

S/MIME.

Basic S/MIME Formatting.

Signing Only.

Algorithm Choice.

Putting It All Together: S/MIME.

Implementation Barriers.

S/MIME versus SMTP/TLS.

Choosing the Appropriate Solution.

Summary.

Appendix A: Example Code.

Chapter 8.

Examples.

Java Examples.

Chapter 9.

HTTPS Examples.

mod_ssl Session Caching.

Appendix B: SSLv2.

Introduction.

SSLv2 Overview.

Missing Features.

Security Problems.

PCT.

What about SSLv1?

Bibliography.

Index. 0201615983T04062001

Read More

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >