account

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAccount

func GenerateAccount() (*x509.Certificate, crypto.PrivKey, []byte, error)

func GenerateAccountPEM

func GenerateAccountPEM() ([]byte, error)

GenerateAccount generates an account and returns .PEM 1. Generate a key pair 2. Create a self signed certificate (for now) 3. Return the prv key and signed certificate as pem.

func ImportAccount

func ImportAccount(data []byte) (*x509.Certificate, crypto.PrivKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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