DEV Community

Cover image for Digital certificates and what they do
Christine Kim
Christine Kim

Posted on

2 1

Digital certificates and what they do

Digital certificates are a key component in the TLS handshake. We often hear digital 'certs', but what do they actually represent?
Digital certificates (also called public key certificate) is a way to prove the ownership of a public key. The contents are (but are not limited to):

  • Info about the key (what type of key it is)
  • Who the owner of the key
  • The owner's public key
  • The digital signature of a third party entity that verifies that whoever holds the certificate is who they say they are (this is called the issuer). This is (supposedly) unique, un-fakeable hash.
  • Who the issuer is
  • The expiry date of the certificate

Okay cool, so we have someone who approves the certificate.... how do we know they are a valid entity?! We do the same thing again - another third party signs on the issuer's certificate, till we get to the root certificate authority. Ok.... so who approves them? Well those certificates are self signed, and are stored on your laptop by the manufacturer.

Here is a helpful diagram to show how this waterfall of approvals happens (this is called the 'chain of trust'):
Screen Shot 2021-07-12 at 9.31.47 AM

In the next article, I'll go through more TLS components, and break them down like this.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay