• 
      

    Normalize cert hostnames for storage.

    Review Request #15016 — Created April 16, 2026 and updated

    Information

    Review Board
    release-7.1.x

    Reviewers

    Certificates may present hostnames in any casing (uppercase, lowercase,
    mixed case) in both the Subject and SAN fields, so it's important to
    look up and store certificates in a normalized form.

    Now, all stored certificates case fold the hostname, converting to
    lowercase in a Unicode-safe manner. This is done for both storage and
    lookup.

    Unit tests pass.

    Summary ID
    Normalize cert hostnames for storage.
    Certificates may present hostnames in any casing (uppercase, lowercase, mixed case) in both the Subject and SAN fields, so it's important to look up and store certificates in a normalized form. Now, all stored certificates case fold the hostname, converting to lowercase in a Unicode-safe manner. This is done for both storage and lookup.
    72783c2820dd7e081847de3ab03059a18116a6e6
    Checks run (2 succeeded)
    flake8 passed.
    JSHint passed.