Documentation ¶
Index ¶
- func BuildPEM(opts ...EntryOption) ([]byte, error)
- func ReadPEM(pemBytes []byte, callback PEMBlockCallback) error
- type BlockOption
- type EntryOption
- func WithECDSAPrivateKey(key *ecdsa.PrivateKey, opts ...BlockOption) EntryOption
- func WithECDSAPublicKey(key *ecdsa.PublicKey, opts ...BlockOption) EntryOption
- func WithRSAPrivateKey(key *rsa.PrivateKey, opts ...BlockOption) EntryOption
- func WithX509Certificate(cert *x509.Certificate, opts ...BlockOption) EntryOption
- type PEMBlockCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPEM ¶
func BuildPEM(opts ...EntryOption) ([]byte, error)
func ReadPEM ¶
func ReadPEM(pemBytes []byte, callback PEMBlockCallback) error
Types ¶
type BlockOption ¶
func WithHeader ¶
func WithHeader(key, value string) BlockOption
type EntryOption ¶
func WithECDSAPrivateKey ¶
func WithECDSAPrivateKey(key *ecdsa.PrivateKey, opts ...BlockOption) EntryOption
func WithECDSAPublicKey ¶
func WithECDSAPublicKey(key *ecdsa.PublicKey, opts ...BlockOption) EntryOption
func WithRSAPrivateKey ¶
func WithRSAPrivateKey(key *rsa.PrivateKey, opts ...BlockOption) EntryOption
func WithX509Certificate ¶
func WithX509Certificate(cert *x509.Certificate, opts ...BlockOption) EntryOption
Click to show internal directories.
Click to hide internal directories.