utils

package
v1.1.0-beta26 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendParentCerts added in v1.1.0

func AppendParentCerts(child, parent []byte) []byte

AppendParentCerts appends 2 certs and/or cert chains together.

child is the child cert/chain. parent is the parent cert/chain

https://github.com/istio/istio/blob/5218a80f97cb61ff4a02989b7d9f8c4fda50780f/security/pkg/pki/util/generate_csr.go#L95

Certificate chains are necessary to verify the authenticity of a certificate, in this case the authenticity of the generated Ca Certificate against the VirtualMesh root cert

func GenerateCertificateSigningRequest

func GenerateCertificateSigningRequest(
	hosts []string,
	org, meshName string,
	privateKey []byte,
) (csr []byte, err error)

func GeneratePrivateKey

func GeneratePrivateKey(keySize int) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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