code: func (cfg *TLSConfig) TLSCert() (*x509.Certificate, bool, error) {
  
  	block, _ := pem.Decode(cfg.bytes)
  
  	if block != nil {
  		pub, err := x509.ParseCertificate(block.Bytes)
  		if err != nil {
  			return nil, false, errors.Wrap(err, "certificate parsing failed")
  		}
  
  		return pub, true, nil
  	}
  
  	//no cert found and there is no error
  	return nil, false, nil
  }
docs: // TLSCert returns the tls certificate as a *x509.Certificate by loading it either from the embedded Pem or Path