interop

package
v0.0.0-...-be8fa96 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BIT_SIZE = 2048
View Source
View Source
const Version = "1.0"

Variables

This section is empty.

Functions

func GenerateCSR

func GenerateCSR(filename string, domainName string, keyBytes *rsa.PrivateKey) ([]byte, error)

func GeneratePrivateKey

func GeneratePrivateKey(fileName string) (*rsa.PrivateKey, error)

func GetIP

func GetIP(theInterface string) string

func LoadX509KeyPair

func LoadX509KeyPair(certFile, keyFile string) (*x509.Certificate, *x509.Certificate, *rsa.PrivateKey, *error)

Types

type CertificateRequest

type CertificateRequest struct {
	JSONMessage
	CSR      []byte
	ClientID string
}

type CertificateResponse

type CertificateResponse struct {
	JSONMessage
	Success      bool
	Certificates [][]byte
	Message      string
}

type JSONMessage

type JSONMessage struct {
}

func (JSONMessage) Marshall

func (r JSONMessage) Marshall() string

type RegClientRequest

type RegClientRequest struct {
	JSONMessage
	ClientID string
	IP       string
}

type RegClientResponse

type RegClientResponse struct {
	Success  bool
	Message  string
	Hostname string
}

func (RegClientResponse) Marshall

func (r RegClientResponse) Marshall() string

Jump to

Keyboard shortcuts

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