Client Certificate Authentication (Part 1) By Priyanka Pillai

Client Certificate Authentication (Part 1)

 

Here is a screenshot describing the SSL/TLS Handshake:

  • Client sends CLIENT HELLO as described in the above image
  • Upon receiving the CLIENT HELLO, if the server is configured for Client Certificate Authentication, it will send a list of Distinguished CA names & Client Certificate Request to the client as a part of the SERVER HELLO apart from other details depicted above.
  • Upon receiving the Server Hello containing the Client Certificate request & list of Distinguished CA names, the client will perform the following steps:
    • The client uses the CA list available in the SERVER HELLO to determine the mutually trusted CA certificates.
    • The
      client will then determine the Client Certificates that have been issued by the mutually trusted Certification Authorities.
    • The client will then present the client certificate list to the user so that they can select a certificate to be sent to the Server.
NOTE:

 

  • On the Client the Client Certificates must have a Private Key. If absent, then the certificate is ignored.
  • If the server doesn’t provide the list of Distinguished CA Names in the SERVER HELLO, then the client will present the user with all the client certificates that it has access to.
  • Upon selection, the client responds with a
    • ClientKeyExchange message which contains the Pre-master secret
    • Certificate message which contains the Client certificate
      (Doesn’t contain the private key).
    • CertificateVerify
      message, which is used to provide explicit verification of a client certificate. This message is sent only if the Client Certificate message was sent. The client is authenticated by using its private key to sign a hash of all the messages up to this point. The recipient verifies the signature using the public key of the signer, thus ensuring it was signed with the client’s private key. Refer RFC 5246 for more details.
  • Post this Client & Server use the random numbers and the Pre-Master secret to generate symmetric (or Master) keys which will used for encrypting & decrypting messages for further communication.
  • Both respond with ChangeCipherSpec indicating that they have finished the process.
  • SSL Handshake stands completed now and both the parties own a copy of the master key which can be used for encryption and decryption.

 

 

 

Client Certificate Authentication (Part 2)

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(106)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2016-12-10 Adding a Controller
2015-12-10 .NET Framework Regular Expressions
2015-12-10 windows registry
2014-12-10 C# Programming Guide-->Statements, Expressions, and Operators-->Anonymous Functions
点击右上角即可分享
微信分享提示