certificates

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Certificate_Validity_Days = 90

Variables

This section is empty.

Functions

This section is empty.

Types

type CSRSubject

type CSRSubject struct {
	CName              string
	Country            string
	Organization       string
	OrganizationalUnit string
	Locality           string
	Province           string
}

type CertificateUtility

type CertificateUtility interface {
	LoadCert(encodedData []byte) (crt *x509.Certificate, appError apperrors.AppError)
	LoadKey(encodedData []byte) (key *rsa.PrivateKey, appError apperrors.AppError)
	LoadCSR(encodedData string) (csr *x509.CertificateRequest, appError apperrors.AppError)
	CheckCSRValues(csr *x509.CertificateRequest, subject CSRSubject) apperrors.AppError
	SignWithCA(caCrt *x509.Certificate, csr *x509.CertificateRequest, key *rsa.PrivateKey) (crtBase64 string, appError apperrors.AppError)
}

func NewCertificateUtility

func NewCertificateUtility() CertificateUtility

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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