client

package
v0.0.0-...-4a5abb3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package client - Symbios user-side client Author: Dario Nascimento

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCACertHash

func GetCACertHash(endpoint *string) (*[]byte, error)

GetCACertHash fetches the certificate authority

func GetCACertHashEncoded

func GetCACertHashEncoded(endpoint *string) (*string, error)

GetCACertHashEncoded fetches the root-certificate fingerprint (SHA256) from CA

func NewToken

func NewToken(privateKey []byte, hostname string, expires time.Duration) (*string, error)

NewToken generates a new JWT token and signs using a RSA private key

func NewTokenUsingPrivateKeyFile

func NewTokenUsingPrivateKeyFile(privateKeyPath string, hostname string, expires time.Duration) (*string, error)

NewTokenUsingPrivateKeyFile reads a RSA private key file and signs a new JWT token with it

func NewUserKey

func NewUserKey(username *string, keyLength int, expires *time.Time, out *string) (*string, *pkix.Certificate, *pkix.Key, error)

NewUserKey generates a new user RSA key, stores it in disk and returns its base64 encoding

Types

This section is empty.

Jump to

Keyboard shortcuts

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