AC X509 Authority

AC X509 Authority Documentation

  • Introduction
  • Un/Installation
  • Command Reference
  • Certificates For Beginners
  • CA Management
  • Server, Client, and User Certificate Management
  • Reporting Commands
  • Troubleshooting

Certificates For Beginners

February 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:

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

  • Signing
    Signing data in a way that is unique to the sender and not forgeable.
  • Verification
    Verifying the authenticity of data received by a sender in a way that confirms that the data is both untampered and the identity of the sender is verified.

Privacy

  • Encryption
    Encrypting data so that only the intended recipient can decipher the contents.
  • Decryption
    Deciphering data to make it usable.
Practical Use Cases

The above is somewhat abstract but there are common use cases where PKI is more apparent.

Use Case Signing & Verification Encryption & Decryption
TLS1 (such as HTTPS Yes Yes
SSO2 Yes No
Verified email Yes No
Encrypted email3 No Yes
Encrypted hard drive No Yes
VPN Yes Yes

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.

Anatomy of PKI

PKI is made up of a number of core components which are individually simple, but all interrelated with specific purposes.

Terminology

As 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.

Terminology Description Also Known As
Private Key A cryptographic key used for signing and decryption functions by a single application. Key, Private Certificate, Encryption Key, Signing Key, Signing Certificate, Encryption Certificate
Public Certificate A public key that forms a linked pair with a private key used to created it. As the name suggests, public certificates can be made public because they cannot be used to impersonate (sign) or access data (decrypt). Certificate, Public Key, Verification Key, Verification Certificate, Encryption Key, Encryption Certificate
CA A Root or Intermediate certificate that issues (signs) other certificates for end users and applications. Certificate Authority
Root Certificate A special self-signed certificate that has authority over other certificates as a CA. Root, Root CA
Intermediate Certificate A sub CA issued by the Root Certificate or another Intermediate certificate that has authority over other certificates as a CA. Intermediate, Intermediate CA, Department CA, Division CA
CRL A file containing the serial numbers of all certificates that were revoked by the CA. Certificate Revocation List
Keystore A file which stores the private key and the public certificate chain together. There may be application specific names for this such Oracle Wallet
Truststore A file that stores only received or imported public certificates from other users or systems with no private keys. There may be application specific names for this such Oracle Wallet
CSR Essentially a public certificate which has not yet been signed by a CA. Certificate Signing Request, Signing Request
DN A unique identifier in X300 format that is effectively the name of a certificate. Distinguished Name
CN The only mandatory field in a DN which is usually the unique part (though uniqueness is based on the whole DN, not just the CN). Common Name
SANs A list of identifiers for the system or user such as possible hostnames or email addresses. This helps untether strict association to a user of system from the CN field. Subject Alternative Names
Length The length of the private key in bits. The longer, the more cryptographically secure. Bits
Subject The DN of the current certificate. Issued To
Issuer The DN of the CA that signed the current certificate. Issued By, Parent
Chain of Trust The list of DNs from the current certificate all the way back to the self signed Root Certificate.
Serial Number A unique value on every certificate that increments when new certificates are created or renewed. This is how the version of the certificate is tracked. Serial
Valid To The timestamp after which a certificate is deemed untrustworthy. Expiration, Expires, Valid Until, Not After, End
Valid From The timestamp after which a certificate enters a period where it is considered trustworthy. Together with the Valid From timestamp, this forms the Validity Period. Not Before, Start
Alias A nickname for certificates in a Keystore or Truststore so that a specific certificate can be references and used from among many. Friendly Name

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:

Private Key Public Certificate
Trust Signing Verification
Privacy Decryption Encryption

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

  1. Foo signs the message with Foo's own private key.
  2. Foo then uses Bar's public certificate to encrypt the message. The data is now effectively for Bar's eyes only.
  3. Bar uses Bar's private key to decrypt the encrypted message.
  4. Bar then uses Foo's public certificate to verify the signature of the data which proves that it was both untampered and really send by Foo.

The Reply

  1. Bar signs the message with Bar's own private key.
  2. Bar then uses Foo's public certificate to encrypt the message. The data is now effectively for Foo's eyes only.
  3. Foo uses Foo's private key to decrypt the encrypted message.
  4. Foo then uses Bar's public certificate to verify the signature of the data which proves that it was both untampered and really send by Bar.
Certificate Properties

Private 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.

Private Key Public Certificate
Length X
Key Type X
Subject X
Issuer X
Valid From X
Valid To X
Serial Number X
Constraints X
SANs X
CRL Path X

As you can see, the properties are mutually exclusive and the majority of properties are part of the certificate.

Verification

Out 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.

  • Does a certificate with a matching DN exist in the truststore?
  • Is the date the message was sent after the Valid From date?
  • Is the date the message was sent before the Valid To date?
  • Does the sender's hostname match the CN field of the DN?
  • Does the sender's hostname match one of the SANs?
  • Is the serial number marked as revoked in the CRL?
  • Is the Issuer DN a certificate in the truststore?
  • Is the certificate use allowed by the constraints?

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.

The Chain of Trust

The 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

End-entity Certificate

Subject CN=movieblog.com, OU=Devops, O=Movie Publicaitons Inc.
Issuer CN=CertificateControl, OU=Devops, O=Movie Publicaitons Inc.

Intermediate Certificate

Subject CN=CertificateControl, OU=Devops, O=Movie Publicaitons Inc.
Issuer CN=CertificateControl, O=Movie Publicaitons Inc.

Root Certificate

Subject CN=CertificateControl, O=Movie Publicaitons Inc.
Issuer CN=CertificateControl, O=Movie Publicaitons Inc.

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.
previous: Command Reference next: CA Management