Documentation ¶
Index ¶
- func CSRToPEM(cert []byte) []byte
- func CertFromFile(certFilePath string) (*x509.Certificate, error)
- func CertToPEM(cert []byte) []byte
- func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error)
- func GenerateSSHPublicKey(rsaPubKey *rsa.PublicKey) ([]byte, error)
- func PrivateKeyFromPEMFile(keyFilePath string) (*rsa.PrivateKey, error)
- func PrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte
- func PublicKeyToPEM(publicKey *rsa.PublicKey) []byte
- func ReadInputs(questions []string, reader io.Reader) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertFromFile ¶ added in v0.1.7
func CertFromFile(certFilePath string) (*x509.Certificate, error)
func GeneratePrivateKey ¶
func GeneratePrivateKey(bitSize int) (*rsa.PrivateKey, error)
GeneratePrivateKey creates an RSA Private Key with provided bit size
func GenerateSSHPublicKey ¶ added in v0.1.5
GenerateSSHPublicKey take an rsa.PublicKey and return bytes suitable for writing to .pub file in the format "ssh-rsa ..."
func PrivateKeyFromPEMFile ¶
func PrivateKeyFromPEMFile(keyFilePath string) (*rsa.PrivateKey, error)
func PrivateKeyToPEM ¶
func PrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte
PrivateKeyToPEM encodes Private Key to PEM format
func PublicKeyToPEM ¶ added in v0.1.4
PublicKeyToPEM encodes Public Key to PEM format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.