Documentation ¶
Index ¶
- Variables
- func GenerateCaTls(config *configure.Config)
- func GenerateClientJoinToken(config *configure.Config, mode configure.Mode, name string) (string, error)
- func GenerateClientTls(config *configure.Config) ([]byte, []byte, error)
- func GenerateNode(config *configure.Config, name string) (*configure.Config, error)
- func GenerateRelayClient(config *configure.Config, name string) (*configure.Config, error)
- func GenerateRelayServer(config *configure.Config, name string) (*configure.Config, error)
- func GenerateSignal(config *configure.Config, name string) (*configure.Config, error)
- func VerifyClientJoinToken(config *configure.Config, tkn string) (types.JoinTokenPayload, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CaCert = &x509.Certificate{ SerialNumber: big.NewInt(2019), Subject: pkix.Name{ Organization: []string{"Disembark."}, }, NotBefore: time.Now(), NotAfter: time.Now().AddDate(10, 0, 0), IsCA: true, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth}, KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign, BasicConstraintsValid: true, }
View Source
var Cert = &x509.Certificate{ SerialNumber: big.NewInt(1658), Subject: pkix.Name{ Organization: []string{"Disembark."}, }, NotBefore: time.Now(), NotAfter: time.Now().AddDate(10, 0, 0), SubjectKeyId: []byte{1, 2, 3, 4, 6}, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth}, KeyUsage: x509.KeyUsageDigitalSignature, }
View Source
var (
ErrBadJoinToken = fmt.Errorf("bad join token")
)
Functions ¶
func GenerateCaTls ¶
func GenerateClientJoinToken ¶
func GenerateNode ¶
func GenerateRelayClient ¶
func GenerateRelayServer ¶
func GenerateSignal ¶
func VerifyClientJoinToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.