cmd_init

package
v0.0.0-...-3746c95 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "init name",
	Short: "Create a CA",
	Long: `Create a CA. The CA is created in several stages, and stages that are already
complete will be skipped. The stages are:

1. Read the config file if it exists. The file specified with -C, or a file
   named ca.conf in the directory specified with -C. An absent config file is
   the same as a config file with all of its values set to the default.
2. Create the CA private key. By default this is a Curve 25519 key. If a
   different kind of key is required then create the key file ahead of
   initialising the CA. The default name for the key is ca.key, and alternate
   keys can be crated with 'xca gen rsa' or 'xca gen ec'.
3. Create the CA certificate. This will be a root certificate, see options to
   customise its creation below. If an intermediate is required or the
   customisation are not sufficient, then:
     1. Create a CA key by hand,
     2. Create a CSR from that key,
     3. Sign that CSR and save the resulting certificate as 'ca.pem'.
4. Initialise the audit log. The log is signed with the CA key and so must
   be initialised. If the log exists and the CA is to be re-initialised, then
   delete the log first.
`,
	Args: func(_ *cobra.Command, _ []string) error {
		return certFlags.CheckPopulate()
	},
	RunE: caInitCmdFunc,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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