SlideShare a Scribd company logo
SSL
Demystified
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
𝑺 𝑃𝑘
Client
Public Key
Client
Private Key
Server
Public Key
Server
Private Key
PREVIEW
1. Client has
public key and
private key in
browser
1. Server has its
public key and
private key
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
𝑺 𝑃𝑘
Generate Random Number
Rc
Rc
client_hello(crypto info, )Rc
2. Client generates a
random number and sends
to server with crypto
info(SSLv #, cipher suites
supported)
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
𝑺 𝑃𝑘
Generate Random Number
Rs
RcRc
Rs
Demand Client Certificate
Server Certificate (including )
𝑺 𝑃𝑢𝑏
server_hello(crypto info, )Rs
3. Server responds with
chosen cipher suite,
session ID, another
random string and its
digital certificate
4. Requesting client
certificate that
includes list of types of
certs supported and
names of acceptable
CAs
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘 𝑺 𝑃𝑘
Check server
certificate
Rc Rc
Rs
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
Rs
Client Certificate (including )
𝑪 𝑃𝑢𝑏
Hash of all previous messages signed with
𝑪 𝑃𝑘
𝑺 𝑃𝑢𝑏
5. Client
verifies server’s
certificate
6. Client sends a hash of
all messages signed with
𝑪 𝑃𝑘 +
client′s digital certificate
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
𝑺 𝑃𝑘
DH-KEY EXCHANGE
random random
abc xyz
random abc
random
xyz
random xyz
random
abc
abc xyz
random
abcxyz
Shared over open channel
Shared over open channel
Mathematically generates common session key
Diffie-Hellman key agreement is not based on encryption and decryption, but instead relies on mathematical functions that enable two parties to
generate a shared secret key for exchanging information confidentially online
Client generated
private key
Server generated
private key
MK
7. Key
Exchange
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
𝑺 𝑃𝑘
RSA-KEY EXCHANGE
random
Shared over open channel
RSA key exchange implements exchange of secret keys securely online by encrypting the secret key with the intended recipient's public key
𝑺 𝑃𝑢𝑏
drnoam drnoam
𝑺 𝑃𝑘
random
MK
7. Key
Exchange
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘 𝑺 𝑃𝑘
Change to encrypted connection using as KEY
MK
End SSL Handshake
Rc Rc
Rs
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
Rs
MK MK
8. Client sends
“finished” message
encrypted with
secret key
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘 𝑺 𝑃𝑘
Change to encrypted connection using as KEY
MK
End SSL Handshake
Rc Rc
Rs
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
Rs
9. Server sends
“finished” message
encrypted with
secret key
MK MK
SSL on
Confidentiality
and
Integrity
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
𝑺 𝑃𝑘
CONFIDENTIALITY
During the SSL handshake, the SSL client and SSL server agree on encryption algorithm and a shared secret key to be used for one session
only.
All messages transmitted between the SSL client and SSL server are encrypted using that algorithm and key, ensuring that the message
remains private even if it is intercepted
Because SSL uses asymmetric encryption when transporting the shared secret key, there is no key distribution problem with SSL
SSL provides data integrity check by calculating the message digest.
A message can be digitally signed by a message exit at the sending end of a channel. The digital signature can then be checked by a
message exit at the receiving end of a channel to detect whether the message has been deliberately modified.
Use of SSL or TLS does ensure data integrity, provided that the CipherSpec in your channel definition uses a hash algorithm.
INTEGRITY
SSL on
Authentication
and
Verification
C
L
I
E
N
T
S
E
R
V
E
R
𝑪 𝑃𝑘
𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏
𝑺 𝑃𝑘
For SERVER authentication, the client uses the server’s PUBLIC KEY to ENCRYPT the data that is used to compute the secret key. The server
can generate the secret key only if it can decrypt that data with the correct PRIVATE KEY.
For CLIENT authentication, the server uses the PUBLIC KEY in the client certificate to VERIFY the data the client sends during of the
handshake. The exchange of finished messages that are encrypted with the secret key confirms that authentication is complete.
If any of the authentication steps fail, the handshake fails and the session terminates.
AUTHENTICATION
• The digital signature is checked
• The certificate chain is checked
• The expiry and activation dates and the validity period are checked
• The revocation status of the certificate is checked
CERTIFICATE VERIFICATION
Reference -
Wikipedia
The End

More Related Content

What's hot

Secure Socket Layer (SSL)
Secure Socket Layer (SSL)Secure Socket Layer (SSL)
Secure Socket Layer (SSL)
Samip jain
 
Ssl in a nutshell
Ssl in a nutshellSsl in a nutshell
Ssl in a nutshell
Frank Kelly
 
secure socket layer
secure socket layersecure socket layer
secure socket layer
Amar Shah
 
SSL/TLS 101
SSL/TLS 101SSL/TLS 101
SSL/TLS 101
Chul-Woong Yang
 
SSL TLS Protocol
SSL TLS ProtocolSSL TLS Protocol
SSL TLS Protocol
Devang Badrakiya
 
Ssl (Secure Socket Layer)
Ssl (Secure Socket Layer)Ssl (Secure Socket Layer)
Ssl (Secure Socket Layer)
Sandeep Gupta
 
The Fundamental of Secure Socket Layer (SSL)
The Fundamental of Secure Socket Layer (SSL)The Fundamental of Secure Socket Layer (SSL)
The Fundamental of Secure Socket Layer (SSL)
Vishal Kumar
 
SSL Layer
SSL LayerSSL Layer
SSL Layer
Trinh Phuc Tho
 
Ip Sec Rev1
Ip Sec Rev1Ip Sec Rev1
Ip Sec Rev1
Ram Dutt Shukla
 
Cryptography by Afroz haider mir
Cryptography by Afroz haider mirCryptography by Afroz haider mir
Cryptography by Afroz haider mir
AFROZ MIR
 
SSL overview
SSL overviewSSL overview
TLS: Past, Present, Future
TLS: Past, Present, FutureTLS: Past, Present, Future
TLS: Past, Present, Future
vpnmentor
 
Secure Socket Layer
Secure Socket LayerSecure Socket Layer
Secure Socket Layer
Abhishek Gupta
 
Introduction to SSL and How to Exploit & Secure
Introduction to SSL and How to Exploit & SecureIntroduction to SSL and How to Exploit & Secure
Introduction to SSL and How to Exploit & Secure
Brian Ritchie
 
SSL Secure socket layer
SSL Secure socket layerSSL Secure socket layer
SSL Secure socket layerAhmed Elnaggar
 

What's hot (20)

Secure Socket Layer (SSL)
Secure Socket Layer (SSL)Secure Socket Layer (SSL)
Secure Socket Layer (SSL)
 
Ssl in a nutshell
Ssl in a nutshellSsl in a nutshell
Ssl in a nutshell
 
secure socket layer
secure socket layersecure socket layer
secure socket layer
 
SSL/TLS 101
SSL/TLS 101SSL/TLS 101
SSL/TLS 101
 
SSL
SSLSSL
SSL
 
SSL TLS Protocol
SSL TLS ProtocolSSL TLS Protocol
SSL TLS Protocol
 
SSl/TLS Analysis
SSl/TLS AnalysisSSl/TLS Analysis
SSl/TLS Analysis
 
SSL-image
SSL-imageSSL-image
SSL-image
 
Ssl (Secure Socket Layer)
Ssl (Secure Socket Layer)Ssl (Secure Socket Layer)
Ssl (Secure Socket Layer)
 
The Fundamental of Secure Socket Layer (SSL)
The Fundamental of Secure Socket Layer (SSL)The Fundamental of Secure Socket Layer (SSL)
The Fundamental of Secure Socket Layer (SSL)
 
SSL Layer
SSL LayerSSL Layer
SSL Layer
 
Ip Sec Rev1
Ip Sec Rev1Ip Sec Rev1
Ip Sec Rev1
 
Cryptography by Afroz haider mir
Cryptography by Afroz haider mirCryptography by Afroz haider mir
Cryptography by Afroz haider mir
 
SSL overview
SSL overviewSSL overview
SSL overview
 
TLS: Past, Present, Future
TLS: Past, Present, FutureTLS: Past, Present, Future
TLS: Past, Present, Future
 
ssl
sslssl
ssl
 
Secure Socket Layer
Secure Socket LayerSecure Socket Layer
Secure Socket Layer
 
Introduction to SSL and How to Exploit & Secure
Introduction to SSL and How to Exploit & SecureIntroduction to SSL and How to Exploit & Secure
Introduction to SSL and How to Exploit & Secure
 
SSL/TLS
SSL/TLSSSL/TLS
SSL/TLS
 
SSL Secure socket layer
SSL Secure socket layerSSL Secure socket layer
SSL Secure socket layer
 

Similar to SSL Demystified

presentation2-151203145018-lva1-app6891.pdf
presentation2-151203145018-lva1-app6891.pdfpresentation2-151203145018-lva1-app6891.pdf
presentation2-151203145018-lva1-app6891.pdf
GumanSingh10
 
Transport Layer Security (TLS)
Transport Layer Security (TLS)Transport Layer Security (TLS)
Transport Layer Security (TLS)
Arun Shukla
 
What is SSL ? The Secure Sockets Layer (SSL) Protocol
What is SSL ? The Secure Sockets Layer (SSL) ProtocolWhat is SSL ? The Secure Sockets Layer (SSL) Protocol
What is SSL ? The Secure Sockets Layer (SSL) Protocol
Mohammed Adam
 
Introduction to Secure Sockets Layer
Introduction to Secure Sockets LayerIntroduction to Secure Sockets Layer
Introduction to Secure Sockets Layer
Nascenia IT
 
SIP over TLS
SIP over TLSSIP over TLS
SIP over TLS
Hossein Yavari
 
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level SecurityCRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
Jyothishmathi Institute of Technology and Science Karimnagar
 
Web Security
Web SecurityWeb Security
Web Security
Ram Dutt Shukla
 
fengmei.ppt
fengmei.pptfengmei.ppt
fengmei.ppt
ssuserec53e73
 
Ssl (Secure Sockets Layer)
Ssl (Secure Sockets Layer)Ssl (Secure Sockets Layer)
Ssl (Secure Sockets Layer)
Asad Ali
 
SSL/TLS Handshake
SSL/TLS HandshakeSSL/TLS Handshake
SSL/TLS Handshake
Arpit Agarwal
 
SSL/TLS Introduction with Practical Examples Including Wireshark Captures
SSL/TLS Introduction with Practical Examples Including Wireshark CapturesSSL/TLS Introduction with Practical Examples Including Wireshark Captures
SSL/TLS Introduction with Practical Examples Including Wireshark Captures
JaroslavChmurny
 
SSL And TLS
SSL And TLS SSL And TLS
SSL And TLS
Ghanshyam Patel
 
Ssl
SslSsl
Wireshark lab ssl v7 solution
Wireshark lab ssl v7 solutionWireshark lab ssl v7 solution
Wireshark lab ssl v7 solution
United International University
 
How does TLS work?
How does TLS work?How does TLS work?
How does TLS work?
Hyeonsu Lee
 
Certificate pinning in android applications
Certificate pinning in android applicationsCertificate pinning in android applications
Certificate pinning in android applications
Arash Ramez
 
Indianapolis mule soft_meetup_30_jan_2021 (1)
Indianapolis mule soft_meetup_30_jan_2021 (1)Indianapolis mule soft_meetup_30_jan_2021 (1)
Indianapolis mule soft_meetup_30_jan_2021 (1)
ikram_ahamed
 
Secure payment systems
Secure payment systemsSecure payment systems
Secure payment systemsAbdulaziz Mohd
 
Webinar SSL English
Webinar SSL EnglishWebinar SSL English
Webinar SSL English
SSL247®
 

Similar to SSL Demystified (20)

presentation2-151203145018-lva1-app6891.pdf
presentation2-151203145018-lva1-app6891.pdfpresentation2-151203145018-lva1-app6891.pdf
presentation2-151203145018-lva1-app6891.pdf
 
Transport Layer Security (TLS)
Transport Layer Security (TLS)Transport Layer Security (TLS)
Transport Layer Security (TLS)
 
What is SSL ? The Secure Sockets Layer (SSL) Protocol
What is SSL ? The Secure Sockets Layer (SSL) ProtocolWhat is SSL ? The Secure Sockets Layer (SSL) Protocol
What is SSL ? The Secure Sockets Layer (SSL) Protocol
 
Introduction to Secure Sockets Layer
Introduction to Secure Sockets LayerIntroduction to Secure Sockets Layer
Introduction to Secure Sockets Layer
 
SIP over TLS
SIP over TLSSIP over TLS
SIP over TLS
 
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level SecurityCRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
CRYPTOGRAPHY AND NETWORK SECURITY- Transport-level Security
 
Web Security
Web SecurityWeb Security
Web Security
 
fengmei.ppt
fengmei.pptfengmei.ppt
fengmei.ppt
 
Ssl (Secure Sockets Layer)
Ssl (Secure Sockets Layer)Ssl (Secure Sockets Layer)
Ssl (Secure Sockets Layer)
 
fengmei.ppt
fengmei.pptfengmei.ppt
fengmei.ppt
 
SSL/TLS Handshake
SSL/TLS HandshakeSSL/TLS Handshake
SSL/TLS Handshake
 
SSL/TLS Introduction with Practical Examples Including Wireshark Captures
SSL/TLS Introduction with Practical Examples Including Wireshark CapturesSSL/TLS Introduction with Practical Examples Including Wireshark Captures
SSL/TLS Introduction with Practical Examples Including Wireshark Captures
 
SSL And TLS
SSL And TLS SSL And TLS
SSL And TLS
 
Ssl
SslSsl
Ssl
 
Wireshark lab ssl v7 solution
Wireshark lab ssl v7 solutionWireshark lab ssl v7 solution
Wireshark lab ssl v7 solution
 
How does TLS work?
How does TLS work?How does TLS work?
How does TLS work?
 
Certificate pinning in android applications
Certificate pinning in android applicationsCertificate pinning in android applications
Certificate pinning in android applications
 
Indianapolis mule soft_meetup_30_jan_2021 (1)
Indianapolis mule soft_meetup_30_jan_2021 (1)Indianapolis mule soft_meetup_30_jan_2021 (1)
Indianapolis mule soft_meetup_30_jan_2021 (1)
 
Secure payment systems
Secure payment systemsSecure payment systems
Secure payment systems
 
Webinar SSL English
Webinar SSL EnglishWebinar SSL English
Webinar SSL English
 

Recently uploaded

在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
Kamal Acharya
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 

Recently uploaded (20)

在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 

SSL Demystified

  • 2. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 𝑺 𝑃𝑘 Client Public Key Client Private Key Server Public Key Server Private Key PREVIEW 1. Client has public key and private key in browser 1. Server has its public key and private key
  • 3. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 𝑺 𝑃𝑘 Generate Random Number Rc Rc client_hello(crypto info, )Rc 2. Client generates a random number and sends to server with crypto info(SSLv #, cipher suites supported)
  • 4. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 𝑺 𝑃𝑘 Generate Random Number Rs RcRc Rs Demand Client Certificate Server Certificate (including ) 𝑺 𝑃𝑢𝑏 server_hello(crypto info, )Rs 3. Server responds with chosen cipher suite, session ID, another random string and its digital certificate 4. Requesting client certificate that includes list of types of certs supported and names of acceptable CAs
  • 5. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑺 𝑃𝑘 Check server certificate Rc Rc Rs 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 Rs Client Certificate (including ) 𝑪 𝑃𝑢𝑏 Hash of all previous messages signed with 𝑪 𝑃𝑘 𝑺 𝑃𝑢𝑏 5. Client verifies server’s certificate 6. Client sends a hash of all messages signed with 𝑪 𝑃𝑘 + client′s digital certificate
  • 6. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 𝑺 𝑃𝑘 DH-KEY EXCHANGE random random abc xyz random abc random xyz random xyz random abc abc xyz random abcxyz Shared over open channel Shared over open channel Mathematically generates common session key Diffie-Hellman key agreement is not based on encryption and decryption, but instead relies on mathematical functions that enable two parties to generate a shared secret key for exchanging information confidentially online Client generated private key Server generated private key MK 7. Key Exchange
  • 7. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 𝑺 𝑃𝑘 RSA-KEY EXCHANGE random Shared over open channel RSA key exchange implements exchange of secret keys securely online by encrypting the secret key with the intended recipient's public key 𝑺 𝑃𝑢𝑏 drnoam drnoam 𝑺 𝑃𝑘 random MK 7. Key Exchange
  • 8. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑺 𝑃𝑘 Change to encrypted connection using as KEY MK End SSL Handshake Rc Rc Rs 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 Rs MK MK 8. Client sends “finished” message encrypted with secret key
  • 9. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑺 𝑃𝑘 Change to encrypted connection using as KEY MK End SSL Handshake Rc Rc Rs 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 Rs 9. Server sends “finished” message encrypted with secret key MK MK
  • 11. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 𝑺 𝑃𝑘 CONFIDENTIALITY During the SSL handshake, the SSL client and SSL server agree on encryption algorithm and a shared secret key to be used for one session only. All messages transmitted between the SSL client and SSL server are encrypted using that algorithm and key, ensuring that the message remains private even if it is intercepted Because SSL uses asymmetric encryption when transporting the shared secret key, there is no key distribution problem with SSL SSL provides data integrity check by calculating the message digest. A message can be digitally signed by a message exit at the sending end of a channel. The digital signature can then be checked by a message exit at the receiving end of a channel to detect whether the message has been deliberately modified. Use of SSL or TLS does ensure data integrity, provided that the CipherSpec in your channel definition uses a hash algorithm. INTEGRITY
  • 13. C L I E N T S E R V E R 𝑪 𝑃𝑘 𝑪 𝑃𝑢𝑏 𝑺 𝑃𝑢𝑏 𝑺 𝑃𝑘 For SERVER authentication, the client uses the server’s PUBLIC KEY to ENCRYPT the data that is used to compute the secret key. The server can generate the secret key only if it can decrypt that data with the correct PRIVATE KEY. For CLIENT authentication, the server uses the PUBLIC KEY in the client certificate to VERIFY the data the client sends during of the handshake. The exchange of finished messages that are encrypted with the secret key confirms that authentication is complete. If any of the authentication steps fail, the handshake fails and the session terminates. AUTHENTICATION • The digital signature is checked • The certificate chain is checked • The expiry and activation dates and the validity period are checked • The revocation status of the certificate is checked CERTIFICATE VERIFICATION