|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
3.5.4 Certificates For BeginnersFebruary 25th, 2026 Certificate management and the X509 certificate standard is closely related to Public Key Infrastructure (PKI) and for the purposes of this chapter, the difference is trivial. As such we will discuss everything in terms of PKI before addressing X509. No assumption is made about the reader's knowledge level and this is designed to be a sort of primer rather than detailed course and reference manual. This article contains the following: 3.5.4.1 What Are Certificates For?There are four primary uses for certificates of which all others uses are merely derivatives of. And these are logically grouped into two pairs: Trust
Privacy
Practical Use CasesThe above is somewhat abstract but there are common use cases where PKI is more apparent.
Custom implementations may enforce both feature sets. Actual use cases for PKI are vast and can cover any scenario in which assuring the identity of data sender, the integrity of the data itself, or securing data with encryption is deemed important. 3.5.4.2 Anatomy of PKIPKI is made up of a number of core components which are individually simple, but all interrelated with specific purposes. TerminologyAs mentioned, there are a number of components to PKI which have redundant terminology which can make PKI seem more complex that it is. In reality there are a small number of components and once the various names they are referred to are known, discussions around PKI become a lot simpler to understand. For example, when someone talks about a "signing key" and someone else talks about a "private key" they are actually referring to exactly the same thing. In AC X509 Authority and this documentation, the convention is followed that keys are all private, and certificates are all public.
When is a Signing Key not a Decryption Key? The X509 standard allows for restricting usage of a key-pair to specific use cases and embedding that restriction in the public certificate. While there are constraints on certificates managed by AC X509 Authority, it is basically transparent to the administrator and the four core functions of signing, verification, encryption, and decryption are enabled for every key-pair. Certificates"Certificates" is often used as a sort of general term to encompass both private keys and certificates. Between a private key and public certificate, the four main uses (signing, verification, encryptions, and decryption) are handled as follows:
For these operations to happen, a sender must share their public certificate with the receiver. The private key must always be kept private and never be exposed outside of owning organization. If communication is bi-directional, they may mutually exchange public certificates. Consider a scenario where two parties are exchanging messages where they both want full encryption and verification in both directions. The initial message sent and the response for parties, Foo and Bar, would use PKI as shown below: The Message
The Reply
Certificate PropertiesPrivate keys and public certificates have different properties which are often used in discussions around PKI. The table below describes which property belongs to a certificate versus a key.
As you can see, the properties are mutually exclusive and the majority of properties are part of the certificate. 3.5.4.3 VerificationOut of the four main functions of PKI, verification warrants additional discussion. Verification assures the receiver that the sender is who they claim to be. Unlike the other functions which are single cryptographic operations, verification runs several tests in order to consider the sender and their data as valid. To be verified, the receiver performs the following tests against the senders public certificate.
Only after verification of the certificate itself has been performed will any verification of the data signature happen. When an application fails a test, it will generally take some action to either warn the user or block access to the data entirely. For example, if a test fails for a certificate in a web browser, the user sees some message indicating that "this site is not secure. The tests performed are application specific. Some applications may test for all of the above while others only test for a subset or even just the presence of the senders parent Issuer certificate in the receiver's truststore. 3.5.4.4 The Chain of TrustThe chain of trust is literally that chain of Subject and Issuer fields from a certificate back to the Root CA. The DN for the Issuer of a certificate will be the DN in the Subject field for the parent CA. A chain may be very short and have one end-entity certificate issued directly by a Root CA. In which case the chain would have just two certificates. More common though, is a longer chain with multiple Intermediate CA certificates between the Root CA and end-entity certificate. Chain of trust example
As you can see, the Issuer is always the Subject of the parent CA. This would be true no matter how long the chain was. Everything between an end-entity certificate and the Root CA certificate will always be an Intermediate CA certificate and there may be none or many of these. The Root CA is always apparent because it is self-signed (Subject and Issuer fields are the same). An application will generally expect the parent CA public certificates to all be in the truststore. if any are missing, this is referred to as a "broken chain of trust". The result of which is that verification will usually fail. 1 Transport Layer Security. This is the successor to the now obsolete SSL (Secure Socket Layer)
2 Single Sign-On
3 Verified (or Signed) email is not mutually exclusive with encrypted email. They are often used together.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||