certs

package
v0.0.0-...-6018a90 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 38

Documentation

Index

Constants

View Source
const (
	// StringSourceEncryptedBlockType is the PEM block type used to store an encrypted string
	StringSourceEncryptedBlockType = "ENCRYPTED STRING"
	// StringSourceKeyBlockType is the PEM block type used to store an encrypting key
	StringSourceKeyBlockType = "ENCRYPTING KEY"
)

Variables

This section is empty.

Functions

func BlockFromBytes

func BlockFromBytes(data []byte, blockType string) (*pem.Block, bool)

func BlockFromFile

func BlockFromFile(path string, blockType string) (*pem.Block, bool, error)

func BlockToBytes

func BlockToBytes(block *pem.Block) ([]byte, error)

func BlockToFile

func BlockToFile(path string, block *pem.Block, mode os.FileMode) error

func CertificateBundleToString

func CertificateBundleToString(bundle []*x509.Certificate) string

CertificateBundleToString converts a certificate bundle into a human readable string.

func CertificateToString

func CertificateToString(certificate *x509.Certificate) string

CertificateToString converts a certificate into a human readable string. This function should guarantee consistent output format for must-gather tooling and any code that prints the certificate details.

Types

This section is empty.

Directories

Path Synopsis
cert-inspection

Jump to

Keyboard shortcuts

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