crypto

package
v0.0.0-...-3570976 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

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