github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/api/cloudcontroller/ccerror/ssl_validation_hostname_error.go (about)

     1  package ccerror
     2  
     3  import "fmt"
     4  
     5  // SSLValidationHostnameError replaces x509.HostnameError when the server has
     6  // SSL certificate that does not match the hostname.
     7  type SSLValidationHostnameError struct {
     8  	Message string
     9  }
    10  
    11  func (e SSLValidationHostnameError) Error() string {
    12  	return fmt.Sprintf("Hostname does not match SSL Certificate (%s)", e.Message)
    13  }