Back to

Package dname

Latest Go to latest

The latest major version is .

Published: Dec 22, 2019 | License: Apache-2.0 | Module:


type Config

type Config struct {
	CommonName         string `yaml:"commonName" flags:"common-name,set cert subject CommonName,cn"`
	Organization       string `yaml:"organization" flags:"organization,set cert subject Organization,org"`
	OrganizationalUnit string `yaml:"organizationalUnit" flags:"organizational-unit,set cert subject OrganizationalUnit,ou"`

	Country       string `yaml:"country" flags:"country,set cert subject Country,c"`
	Locality      string `yaml:"locality" flags:"locality,set cert subject Locality"`
	Province      string `yaml:"province" flags:"province,set cert subject Province"`
	StreetAddress string `yaml:"streetAddress" flags:"street-address,set cert subject StreetAddress"`
	PostalCode    string `yaml:"postalCode" flags:"postal-code,set cert subject PostalCode"`

func DefaultConfig

func DefaultConfig(cnsuffix string, basecfg *Config) (*Config, error)

func FromPkixName

func FromPkixName(n pkix.Name) *Config

func FromProtoStruct

func FromProtoStruct(s *pb.DistinguishedName) *Config

func (*Config) ConfigItems

func (cfg *Config) ConfigItems() []frontend.ConfigItem

func (*Config) ToPkixName

func (cfg *Config) ToPkixName() (n pkix.Name)

func (*Config) ToProtoStruct

func (c *Config) ToProtoStruct() *pb.DistinguishedName

func (*Config) Verify

func (cfg *Config) Verify() error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier