pki

package
v0.0.0-...-63325d2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Certificate string `json:"cert" yaml:"cert"`
	PrivateKey  string `json:"key" yaml:"key"`
}

func HandleCreateAuraeRootCA

func HandleCreateAuraeRootCA(path string, domainName string) (*Certificate, error)

func (*Certificate) GetCertAsString

func (c *Certificate) GetCertAsString() string

func (*Certificate) GetCertificate

func (c *Certificate) GetCertificate() (*x509.Certificate, error)

func (*Certificate) GetPrivateKey

func (c *Certificate) GetPrivateKey() (*rsa.PrivateKey, error)

func (*Certificate) GetPrivateKeyAsString

func (c *Certificate) GetPrivateKeyAsString() string

func (*Certificate) WriteCertificateToFile

func (c *Certificate) WriteCertificateToFile(path, filename string) error

func (*Certificate) WritePrivateKeyToFile

func (c *Certificate) WritePrivateKeyToFile(path, filename string) error

type CertificateRequest

type CertificateRequest struct {
	CSR        string `json:"csr" yaml:"csr"`
	PrivateKey string `json:"key" yaml:"key"`
	User       string `json:"user" yaml:"user"`
}

func HandleCreateClientCSR

func HandleCreateClientCSR(path, domain, user string) (*CertificateRequest, error)

func (*CertificateRequest) GetCsr

func (*CertificateRequest) GetCsrAsString

func (c *CertificateRequest) GetCsrAsString() string

func (*CertificateRequest) GetPrivateKey

func (c *CertificateRequest) GetPrivateKey() (*rsa.PrivateKey, error)

func (*CertificateRequest) GetPrivateKeyAsString

func (c *CertificateRequest) GetPrivateKeyAsString() string

func (*CertificateRequest) WriteCsrToFile

func (c *CertificateRequest) WriteCsrToFile(path, filename string) error

func (*CertificateRequest) WritePrivateKeyToFile

func (c *CertificateRequest) WritePrivateKeyToFile(path, filename string) error

Jump to

Keyboard shortcuts

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