certs

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitCertChain

func SplitCertChain(chain []byte, prefix string) (map[string][]byte, error)

SplitCertChain splits a single cert chain file (in PEM format) into multiple files that we can then construct multiple TUF targets for each of them. This is mainly for TSA certchain, where we want to construct easily identifiable (by name) targets. For TSA the form is like: tsa_root.crt.pem tsa_intermediate_0.crt.pem <optional> tsa_intermediate_1.crt.pem <optional>... <optional> tsa_intermediate_n.crt.pem tsa_leaf.crt.pem The assumption is that the first entry is the `Leaf` followed by 0 or more intermediates and the last entry is the `root`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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