github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/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  }