cert

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cert provides X.509 fingerprint helpers used by the CLI's cert subcommands. Mirrors github.com/apoxy-dev/apoxy-cloud/core/cert so the CLI doesn't pull a cosmos module dependency.

Index

Constants

View Source
const FingerprintSize = sha1.Size

FingerprintSize is the byte length of a SHA1 cert fingerprint.

Variables

This section is empty.

Functions

func Fingerprint

func Fingerprint(certDER []byte) string

Fingerprint returns the lowercase hex SHA1 of the cert's DER bytes. The resulting string is the canonical form cosmos persists and what ext_authz / RevokeServiceCert compare against.

func NormalizeFingerprint

func NormalizeFingerprint(s string) (string, error)

NormalizeFingerprint validates and lowercases a SHA1 fingerprint string.

Types

This section is empty.

Directories

Path Synopsis
Package reload provides hot-reloading of TLS keypairs that are rotated in place on disk (e.g.
Package reload provides hot-reloading of TLS keypairs that are rotated in place on disk (e.g.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL