crypto

package
v0.0.0-...-d0a9a3c Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COUNTRY             = "US"
	LOCALITY            = "Redmond"
	COMMON_NAME         = "Hybrid Runbook Worker"
	ORGANIZATIONAL_UNIT = "Azure Automation"
	ORGANIZATION        = "Microsoft Corporation"
	STATE               = "Washington"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateOperations

type CertificateOperations interface {
	WriteCertificateToDisk(certificateOutputPath string) error
	WriteKeyToDisk(keyOutputPath string) error
	GetCertificateThumbprint() string
}

type SelfSignedCertificateKey

type SelfSignedCertificateKey struct {
	Cert    x509.Certificate
	PrivKey rsa.PrivateKey
}

func NewSelfSignedx509Certificate

func NewSelfSignedx509Certificate() (*SelfSignedCertificateKey, error)

func (*SelfSignedCertificateKey) GetCertificateThumbprint

func (cert *SelfSignedCertificateKey) GetCertificateThumbprint() string

func (*SelfSignedCertificateKey) WriteCertificateToDisk

func (cert *SelfSignedCertificateKey) WriteCertificateToDisk(certificateOutputPath string) error

func (*SelfSignedCertificateKey) WriteKeyToDisk

func (cert *SelfSignedCertificateKey) WriteKeyToDisk(keyOutputPath string) error

Jump to

Keyboard shortcuts

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