Documentation ¶
Index ¶
- Constants
- func BlockFromBytes(data []byte, blockType string) (*pem.Block, bool)
- func BlockFromFile(path string, blockType string) (*pem.Block, bool, error)
- func BlockToBytes(block *pem.Block) ([]byte, error)
- func BlockToFile(path string, block *pem.Block, mode os.FileMode) error
- func CertificateBundleToString(bundle []*x509.Certificate) string
- func CertificateToString(certificate *x509.Certificate) string
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 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.
Click to show internal directories.
Click to hide internal directories.