certs

package
v0.0.0-...-bb0df7c Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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