certificate

package
v0.0.0-...-126a197 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIData

type APIData struct {
	MetadataURL     string `json:"metadataUrl,omitempty"`
	EventsURL       string `json:"eventsUrl,omitempty"`
	CertificatesURL string `json:"certificatesUrl,omitempty"`
}

APIData response holding the metadata url that is important for service registry.

type ApplicationConnectResponse

type ApplicationConnectResponse struct {
	CsrURL      string  `json:"csrUrl,omitempty"`
	API         APIData `json:"api,omitempty"`
	Certificate Data    `json:"certificate,omitempty"`
}

ApplicationConnectResponse response the app gets from Kyma, when connect is successful.

type CACertificate

type CACertificate struct {
	PrivateKey string
	PublicKey  string
	Csr        string
	ServerCert string
}

CACertificate app struct to hold information about keys used to connect to Kyma.

func GenerateCSR

func GenerateCSR(names pkix.Name, expiration time.Duration, size int) (*CACertificate, error)

GenerateCSR responsible to generate a certificate to use in certificate signing request flow.

type CertConnectResponse

type CertConnectResponse struct {
	Cert string `json:"crt,omitempty"`
}

CertConnectResponse response the app gets from Kyma, when CSR is successful.

type Data

type Data struct {
	Subject      string `json:"subject,omitempty"`
	Extensions   string `json:"extensions,omitempty"`
	KeyAlgorithm string `json:"key-algorithm,omitempty"`
}

Data part of ApplicationConnectResponse holding key parameters for cert generation.

Jump to

Keyboard shortcuts

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