sec

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const TIME_LAYOUT = "20060102150405"

YYYYMMDDhhmmss

Variables

This section is empty.

Functions

func CmdCertCli added in v1.5.0

func CmdCertCli() *cobra.Command

(AI GENERATED DESCRIPTION): Creates a Cobra command for the NDNCERT certificate client, setting its usage, flags, and run logic.

func CmdSec added in v1.5.0

func CmdSec() *cobra.Command

(AI GENERATED DESCRIPTION): Creates and configures the `sec` command group, adding subcommands for key generation, certificate signing, keychain management, and PEM handling.

Types

type CertClient added in v1.5.0

type CertClient struct {
	// contains filtered or unexported fields
}

func (*CertClient) String added in v1.5.0

func (c *CertClient) String() string

(AI GENERATED DESCRIPTION): Returns the string representation of the CertClient, which is the constant "ndncert-cli".

type ToolKeychain added in v1.5.0

type ToolKeychain struct{}

func (*ToolKeychain) Export added in v1.5.0

func (*ToolKeychain) Export(_ *cobra.Command, args []string)

(AI GENERATED DESCRIPTION): Exports a specified key (or an identity’s default key) from a keychain, PEM‑encodes its secret key, and writes it to standard output.

func (*ToolKeychain) Import added in v1.5.0

func (*ToolKeychain) Import(_ *cobra.Command, args []string)

(AI GENERATED DESCRIPTION): Imports keychain entries from standard input into the keychain named by the first argument, storing them in a memory-based keychain.

func (*ToolKeychain) List added in v1.5.0

func (*ToolKeychain) List(_ *cobra.Command, args []string)

(AI GENERATED DESCRIPTION): Lists all identities and their keys in the keychain at the given path, printing each identity name followed by the names of its keys.

type ToolKeygen added in v1.5.0

type ToolKeygen struct{}

type ToolPem added in v1.5.0

type ToolPem struct{}

func (*ToolPem) Decode added in v1.5.0

func (t *ToolPem) Decode(_ *cobra.Command, args []string)

(AI GENERATED DESCRIPTION): Decodes PEM‑encoded NDN data from standard input and writes the resulting binary data to standard output, reporting errors when no or multiple valid packets are found.

func (*ToolPem) Encode added in v1.5.0

func (t *ToolPem) Encode(_ *cobra.Command, args []string)

(AI GENERATED DESCRIPTION): PEM-encodes data read from standard input and writes the resulting PEM string to standard output.

type ToolSignCert added in v1.5.0

type ToolSignCert struct {
	Start  string
	End    string
	Info   string
	Issuer string
}

Jump to

Keyboard shortcuts

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