Analyze on SourceCode of OpenSSL Handshake

Author
XieFei
Advisor
ZuoZhongPing
School
Huazhong University of Science and Technology
Major
Software Engineering
Classification
TP393.08 Computer Network Security
Degree
Master's thesis
Year
2007
Downloads
413
Citations
4

Request the full text

Abstract

With the rapid development and wide application of the Internet , the importance and urgency of the network and information security is becoming increasingly prominent. Netscape, the Secure Sockets Layer protocol SSL ( Secure Socket Layer ) protocol is based on public key technology , can guarantee the confidentiality and reliability of the communication between the two entities , the industry standard secure communications on the Internet . We currently use a lot of software is written in the United States . The United States in the past had the encryption algorithms export restrictions . January 2000 U.S. to relax restrictions on exports of high - strength encryption algorithm has allowed the export , but we can not guarantee that such high strength algorithms are integrated in the software we use . Our own cryptographic algorithms used in SSL and TLS is still the best option. OpenSSL implementations of SSL protocol and its public documents released in the OpenSSL website , its documentation is limited to the OpenSSL command-line tool usage , as well as the API instructions . OpenSSL source code analysis article in the open publication is difficult to retrieve . First made ??a theoretical analysis of the SSL handshake process , they are able to ensure the security of the communication . The handshake process includes a variety of message exchange . To understand the entire agreement , you must understand these messages in the order , structure , content and role , as well as hidden in subsequent calculations . Followed by the OpenSSL source code , combined with theoretical depth study of the SSL handshake process is how to achieve , including the SSL session key is generated in the handshake process , that is the key derivation function . Finally, all messages in the SSL connection tracked by ssldump software , analysis of the three modes of SSL handshake : one-way authentication , mutual authentication, session restore .

Table of contents

Abstract 4-5 Abstract 5-9 1 Introduction 9-11 1.1 Background topics 9-10 1.2 of this paper mainly work 10-11 2 SSL protocol outlined 11-18 2.1 SSL protocol architecture 11-12 the basic features and functions 2.2 SSL protocol 12-13 2.2.1 SSL protocol features 12-13 2.2.2 SSL protocol basic functions 13 2.3 SSL protocol layering model 13-17 2.3.1 recording layer protocol 14-16 2.3.2 change the encryption contractual agreements 16 2.3.3 Alerting Protocol 16-17 2.3.4 handshake protocol 17 2.4 Summary 17-18 3 SSL handshake theory 18-23 3.1 SSL handshake purpose 18 3.2 SSL handshake messages 18-20 3.3 SSL handshake process 20-22 3.4 Summary 22-23 4 SSL handshake process to achieve the analysis 23-43 4.1 connection establishment process of the OpenSSL 23-27 4.1.1 initialize the SSL environment 23-25 4.1.2 establish SSL connection 25-26 4.1.3 transfer data 26 4.1.4 Close SSL connection 26-27 4.2 OpenSSL handshake message structure 27-32 4.2.1 Client Hello message 28-29 4.2.2 Server Hello messages 29 4.2.3 Server Certificate news 29-30 4.2.4 Server Key Exchange messages 30 4.2.5 Certificate Request messages 30 4.2.6 Server Hello Done messages 30 4.2.7 Client Certificate news 30 4.2.8 Client Key Exchange messages 30-31 4.2.9 Certificate Verify messages 31 4.2.10 Finished message 31-32 4.2.11 to end the session and connection messages 32 4.3 SSL connection details 32-40 4.3.1 SSL connection client implementation details are found; 32-34 4.3.2 SSL to connect to the server-side implementation details 34-36 4.3.3 key generate 36-40 4.4 once the real SSL connection 40-41 4.5 Summary 41-43 5 SSL connection tracking analysis 43-52 5.1 test content and purpose 43 5.2 test environment 43 5.3 testing process and results analysis 43-51 5.3.1 unidirectional authentication mode 43-46 5.3.2 bidirectional authentication mode 46-49 5.3.3 session recovery mode 49-51 5.4 Summary 51-52 6 Conclusion 52-54 6.1 work summarizes 52-53 6.2 further work 53-54 Acknowledgements 54-55 the References 55-57

Related dissertations

  1. SSL protocol used in network conference system improvement and research
  2. The Security Analysis on Password-based Authentication Scheme in Mac OS X
    LinShuQiang ·Xiamen University ·2014 ·Master's thesis
  3. Research on the Attack Method Against at SSL Protocol
    HuDeQi ·Hefei University of Technology ·2013 ·Master's thesis
  4. Demand grade encryption SSL VPN Application System and Implementation
    LiuCong ·Qufu Normal University ·2008 ·Master's thesis
  5. Research of Vehicle Monitoring System in Security and Data Communications
  6. Research of Electronic Commerce Security Protocols and Simulation of B2C Trade System
    XiongDanDan ·Shanghai Jiaotong University ·2008 ·Master's thesis
  7. Analysis and Improvement of Performance and Security on SSL VPN
  8. Based on the SET protocol payment model SafePay
  9. Research of Components and Security of E-Business Platform
    LiuZhiJun ·Institute of Software ·2002 ·Master's thesis
  10. Based on the SSL chain guardianship security transmission system design and realization
  11. Study of Authentication Technology in E-government System
    ZhangYi ·Sichuan University ·2005 ·Master's thesis
  12. The Design and Implement of SSL in the Embedded Browser
    LiGuangZhao ·Beijing University of Technology ·2002 ·Master's thesis
  13. Research and design of network information security certificate management system
    LengJian ·Hunan University ·2001 ·Master's thesis
  14. WML WAP specification encoder and transport security layer protocol analysis and implementation
    JiangZuo ·Zhejiang University of Technology ·2001 ·Master's thesis
  15. The Study of Distributed Tunnel Module Based SSL VPN
  16. Research of SSL VPN System and It’s Application on Campus Network
    HeLing ·Tianjin University ·2007 ·Master's thesis
  17. The Design and Implementation of the Multi-protocol Transformation Gateway for the Banking-Securities Data Exchange Platform
    HuYuPeng ·Shandong University ·2009 ·Master's thesis
  18. Research and design of virtual private network based on the Secure Sockets Layer protocol
  19. The Design of Distance Education Based on VPN
    BaoGuangChang ·Northwest Normal University ·2008 ·Master's thesis