// GetTLSKey returnes the TLS private and public key as a generic
// crypto interface
GetTLSKey returnes the TLS private and public key as a generic
crypto interface
// GetTLSKey returnes the TLS private and public key as a generic // crypto interface
func GetTLSKey() (crypto.PrivateKey, crypto.PublicKey, error) {
	if tlsKey == nil {
		return nil, nil, fmt.Errorf("Failed to get TLS Key Signer: not initialized")
	}
	priv, err := tlsKey.Private(tlsKey.Public())
	if err != nil {
		return nil, nil, fmt.Errorf("Failed to get TLS Key Private")
	}
	return priv, tlsKey.Public(), nil
}
func GetTLSKey ( ) ( crypto . PrivateKey , crypto . PublicKey , error ) { if tlsKey == nil { return nil , nil , fmt . Errorf ( " " ) } priv , err := tlsKey . Private ( tlsKey . Public ( ) ) if err != nil { return nil , nil , fmt . Errorf ( " " ) } return priv , tlsKey . Public ( ) , nil }
GetTLSKey returnes the TLS private and public key as a generic
crypto interface
GetTLSKey returnes the TLS private and public key as a generic crypto interface