utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCSR

func GenerateCSR(key interface{}, Keytype string, id string) (*x509.CertificateRequest, error)

func GenrateRandKey

func GenrateRandKey(id string) ([]byte, *x509.CertificateRequest, error)

func InsertCert

func InsertCert(path string, data []byte)

func InsertCsr

func InsertCsr(path string, data []byte)

func InsertKey

func InsertKey(path string, data []byte)

func ReadCert

func ReadCert(path string) (*x509.Certificate, error)

func ReadCertPool

func ReadCertPool(path string) (*x509.CertPool, error)

func ReadKey

func ReadKey(path string) ([]byte, error)

func StringToCSR

func StringToCSR(s string) (*x509.CertificateRequest, error)

func WriteDataFile

func WriteDataFile(id string, max float64, min float64, media float64, file *os.File) error

func WriteFile

func WriteFile(file *os.File, data [][]string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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