tlshelp

package
v0.0.0-...-15d7334 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenPair

func GenPair(keysize int) (cacert []byte, cakey []byte, cert []byte, certkey []byte)

func GetPEMs

func GetPEMs(cert []byte, key []byte) (pemcert []byte, pemkey []byte)

func GetRandomTLS

func GetRandomTLS(keysize int) (tls.Certificate, error)

func GetTLSPair

func GetTLSPair(certPem []byte, keyPem []byte) (tls.Certificate, error)

func RandBigInt

func RandBigInt(max *big.Int) *big.Int

RandBigInt generates random big integer with max number It returns the generated random big integer

func RandBytes

func RandBytes(n int) []byte

RandBytes generates random bytes of n size It returns the generated random bytes

func RandString

func RandString(n int) string

RandString generates random string of n size It returns the generated random string.and any write error encountered.

func VerifyCert

func VerifyCert(cacert []byte, cert []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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