fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/core/config/comm Index | Files | Directories

package comm

import "github.com/hyperledger/fabric-sdk-go/pkg/core/config/comm"

Index

Package Files

comm.go

func TLSCertHash Uses

func TLSCertHash(config fab.EndpointConfig) ([]byte, error)

TLSCertHash is a utility method to calculate the SHA256 hash of the configured certificate (for usage in channel headers)

func TLSConfig Uses

func TLSConfig(cert *x509.Certificate, serverName string, config fab.EndpointConfig) (*tls.Config, error)

TLSConfig returns the appropriate config for TLS including the root CAs, certs for mutual TLS, and server host override. Works with certs loaded either from a path or embedded pem.

Directories

PathSynopsis
tls

Package comm imports 5 packages (graph) and is imported by 5 packages. Updated 2019-05-06. Refresh now. Tools for package owners.