Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClientSigningProfile = "client" PeerSigningProfile = "peer" ServerSigningProfile = "server" )
Variables ¶
View Source
var ( SigningProfiles = &config.Signing{ Default: &config.SigningProfile{ Expiry: 5 * 365 * 24 * time.Hour, }, Profiles: map[string]*config.SigningProfile{ ClientSigningProfile: { Expiry: 5 * 365 * 24 * time.Hour, Usage: []string{ "signing", "key encipherment", "client auth", }, }, PeerSigningProfile: { Expiry: 5 * 365 * 24 * time.Hour, Usage: []string{ "signing", "key encipherment", "server auth", "client auth", }, }, ServerSigningProfile: { Expiry: 5 * 365 * 24 * time.Hour, Usage: []string{ "signing", "key encipherment", "server auth", }, }, }, } )
Functions ¶
func GenerateCertHash ¶
Types ¶
type KeyPair ¶
func NewKeyPairFromPEM ¶
type RootCA ¶
type RootCA struct { CA *KeyPair // contains filtered or unexported fields }
func NewDefaultRootCA ¶
func NewRootCAFromFile ¶
func (*RootCA) GenerateCertificates ¶
Click to show internal directories.
Click to hide internal directories.