tlsutils

package
v0.0.0-...-3ff2ba2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright (c) technicianted. All rights reserved. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SelfSignedCA

type SelfSignedCA struct {
	// contains filtered or unexported fields
}

func NewCAFromFiles

func NewCAFromFiles(keyPath, certPath string) (*SelfSignedCA, error)

func NewSelfSignedCA

func NewSelfSignedCA(subject pkix.Name, validTo time.Time) (*SelfSignedCA, error)

func (*SelfSignedCA) CACertBytes

func (ca *SelfSignedCA) CACertBytes() []byte

func (*SelfSignedCA) CAKeyBytes

func (ca *SelfSignedCA) CAKeyBytes() []byte

func (*SelfSignedCA) CreateAndSignCertificate

func (ca *SelfSignedCA) CreateAndSignCertificate(cert *x509.Certificate) (certPEMBytes, keyPEMBytes []byte, err error)

Jump to

Keyboard shortcuts

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