gitssh

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2016 License: MPL-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL