Documentation ¶
Index ¶
- func AutoGenCertAndKey(cert, key string) error
- func ExportPrivateKeyToFile(priv any, file string) error
- func ExportPrivateKeyToMemory(priv any) []byte
- func ExportPublicKeyToFile(priv any, file string) error
- func ExportPublicKeyToMemory(priv any) []byte
- func GenerateCertificateAndPrivateKey() (cert []byte, key []byte, err error)
- func GeneratePrivateKey(keyType string, bitSize int) (crypto.Signer, error)
- func GenerateSSHKeyPairs(keyType string)
- type CertTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoGenCertAndKey ¶
func ExportPrivateKeyToFile ¶
func ExportPublicKeyToFile ¶
func ExportPublicKeyToMemory ¶
func GeneratePrivateKey ¶
func GenerateSSHKeyPairs ¶
func GenerateSSHKeyPairs(keyType string)
Types ¶
type CertTemplate ¶
Click to show internal directories.
Click to hide internal directories.