github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/api/plugin/pluginerror/ssl_validation_hostname_error.go (about)

     1  package pluginerror
     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  }