utils

package
v1.1.0-beta19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendRootCerts

func AppendRootCerts(caCert, rootCert []byte) []byte

AppendRootCerts appends the root virtual mesh cert to the generated CaCert, It is yanked from the following Mesh function:

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 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