pki

package
v0.0.0-...-52fa7fc Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAConfig

type CAConfig struct {
	Serial  int64         `json:"serial" default:"1"`
	Subject SubjectConfig `json:"subject"`
}

type Config

type Config struct {
	CA         CAConfig         `json:"ca"`
	Listener   ListenerConfig   `json:"listener"`
	Operator   OperatorConfig   `json:"operator"`
	Management ManagementConfig `json:"management"`
}

func (*Config) Init

func (c *Config) Init(ctx context.Context, db *ent.Client, lIP, oIP, mIP net.IP) error

Init initialize PKI for GRPC

type ListenerConfig

type ListenerConfig struct {
	Serial  int64         `json:"serial" default:"1"`
	Subject SubjectConfig `json:"subject"`
}

type ManagementConfig

type ManagementConfig struct {
	Serial  int64         `json:"serial" default:"1"`
	Subject SubjectConfig `json:"subject"`
}

type OperatorConfig

type OperatorConfig struct {
	Serial  int64         `json:"serial" default:"1"`
	Subject SubjectConfig `json:"subject"`
}

type SubjectConfig

type SubjectConfig struct {
	OrganizationalUnit string `json:"ou" default:"Google Inc. CA"`
	Organization       string `json:"o" default:"google.com"`
	CommonName         string `json:"cn" default:"google.com"`
	Country            string `json:"c" default:"USA"`
	Province           string `json:"p" default:"California"`
	Locality           string `json:"l" default:"California"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳