Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizedRSAKey ¶
func AuthorizedRSAKey(pkey *rsa.PrivateKey) ([]byte, error)
AuthorizedRSAKey returns RSA public key for given private key in a format that is suitable for authorized_keys file.
func CreatePrivateRSAKey ¶
func CreatePrivateRSAKey(path string) (*rsa.PrivateKey, error)
CreatePrivateRSAKey generates a 1024-bit RSA key and stores it to `path` in PEM PKCS#1 format.
func ReadPrivateRSAKey ¶
func ReadPrivateRSAKey(path string) (*rsa.PrivateKey, error)
ReadPrivateRSAKey reads an existing RSA private key from PKCS#1 PEM file specified by `path`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.