Documentation
¶
Index ¶
- func GenPair(keysize int) (cacert []byte, cakey []byte, cert []byte, certkey []byte)
- func GetPEMs(cert []byte, key []byte) (pemcert []byte, pemkey []byte)
- func GetRandomTLS(keysize int) (tls.Certificate, error)
- func GetTLSPair(certPem []byte, keyPem []byte) (tls.Certificate, error)
- func RandBigInt(max *big.Int) *big.Int
- func RandBytes(n int) []byte
- func RandString(n int) string
- func VerifyCert(cacert []byte, cert []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomTLS ¶
func GetRandomTLS(keysize int) (tls.Certificate, error)
func GetTLSPair ¶
func GetTLSPair(certPem []byte, keyPem []byte) (tls.Certificate, error)
func RandBigInt ¶
RandBigInt generates random big integer with max number It returns the generated random big integer
func RandString ¶
RandString generates random string of n size It returns the generated random string.and any write error encountered.
func VerifyCert ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.