code: func LoadCert(path string) (cert []byte, err error) {
  	if path == "" {
  		err = errors.New("Issuer certificate was not provided in config.")
  		return
  	}
  	pemBytes, err := ioutil.ReadFile(path)
  	if err != nil {
  		return
  	}
  
  	block, _ := pem.Decode(pemBytes)
  	if block == nil || block.Type != "CERTIFICATE" {
  		err = errors.New("Invalid certificate value returned")
  		return
  	}
  
  	cert = block.Bytes
  	return
  }
docs: // LoadCert loads a PEM-formatted certificate from the provided path, returning
  // it as a byte array, or an error if it couldn't be decoded.