flags

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package flags provides flag support for loading client/server certs and CA root of trust.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ClientCertFile is the location to load the client cert. Binding this to a flag is often useful.
	ClientCertFile = path.Join(os.Getenv("HOME"), ".sansshell/client.pem")

	// ClientKeyFile is the location to load the client cert key. Binding this to a flag is often useful.
	ClientKeyFile = path.Join(os.Getenv("HOME"), ".sansshell/client.key")

	// ServerCertFile is the location to load the server cert. Binding this to a flag is often useful.
	ServerCertFile = path.Join(os.Getenv("HOME"), ".sansshell/leaf.pem")

	// ServerKeyFile is the location to load the server cert key. Binding this to a flag is often useful.
	ServerKeyFile = path.Join(os.Getenv("HOME"), ".sansshell/leaf.key")

	// RootCAFile is the location to load the root CA store. Binding this to a flag is often useful.
	RootCAFile = path.Join(os.Getenv("HOME"), ".sansshell/root.pem")
)

Functions

func Name

func Name() string

Name returns the loader to use to set mtls params via flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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