# Understanding TLS 1.2 Handshakes, Mutual Authentication, and Certificate Formats

DevFeed: [Understanding TLS 1.2 Handshakes, Mutual Authentication, and Certificate Formats](<https://devfeed.tech/articles/understanding-tls-1-2-handshakes-mutual-authentication-and-certificate-formats-85741.md>)

Original publisher: [Read original article](<https://hackernoon.com/understanding-tls-12-handshakes-mutual-authentication-and-certificate-formats?source=rss>)

Author: Lokesh Sanapalli

Published: 2026-10-12T17:17:50Z

Content type: tutorial

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [certificates](<https://devfeed.tech/topics/certificates.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [TLS handshake](<https://devfeed.tech/topics/tls-handshake.md>), [AWS Certificate Manager](<https://devfeed.tech/topics/aws-certificate-manager.md>), [openssl](<https://devfeed.tech/topics/openssl.md>)

Tags: [aes](<https://devfeed.tech/tags/aes.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [base64](<https://devfeed.tech/tags/base64.md>), [certificate-authentication](<https://devfeed.tech/tags/certificate-authentication.md>), [certificates](<https://devfeed.tech/tags/certificates.md>), [diffie-hellman](<https://devfeed.tech/tags/diffie-hellman.md>), [diffie-hellman-key-exchange](<https://devfeed.tech/tags/diffie-hellman-key-exchange.md>), [mtls](<https://devfeed.tech/tags/mtls.md>), [mutual-tls](<https://devfeed.tech/tags/mutual-tls.md>), [openssl](<https://devfeed.tech/tags/openssl.md>), [ssl-vs-tls](<https://devfeed.tech/tags/ssl-vs-tls.md>), [tls](<https://devfeed.tech/tags/tls.md>), [tls-1-2](<https://devfeed.tech/tags/tls-1-2.md>), [tls-1-3](<https://devfeed.tech/tags/tls-1-3.md>), [tls-handshake](<https://devfeed.tech/tags/tls-handshake.md>)

## AI overview

This tutorial explains the TLS 1.2 handshake, including how clients and servers negotiate cryptographic parameters, validate certificates, derive shared keys, and begin encrypted communication. It also describes mutual TLS authentication and compares common certificate file formats, including PEM, DER, PKCS#12, and P7B.

## Source excerpt

SSL and TLS are both protocols: sets of rules for how a client and server agree on encryption. mTLS adds another verification step where client also verifies