This issue can affect the following products when used with an internal or private domain which does not have a valid publix suffix, such as
my-company.intra
or
my-company.local
:
- Spring Boot apps
- Spring Cloud Services (SCS) for VMware Tanzu service instances
- Spring Cloud Data Flow (SCDF) for VMware Tanzu shell
The issue is a result of a change to the dependency
Apache HttpClient
(made in v4.5.9). This change causes HTTPS requests made to non-valid public-suffix domains to fail with the following error:
Certificate for <xyz.my-company.local> doesn't match any of the subject alternative names: [list-of-valid-domains-for-cert]
Although the error refers to a certificate issue, it is caused by the internal domain suffix as mentioned above. This can be confirmed by comparing the address in the error to the valid domains also listed in the error message - there should be a match, indicating the error is misleading.
This certificate error affects these products in the following way:
Spring Boot Apps
- Requests made via a
RestTemplate
for example to a https:// internal address will fail. The error will be thrown in the application log.
SCS Service Instances
- When clicking the '
Manage
' button for a service instance in Apps Manager, the error will be thrown in the SI backing application and on the browser page.
SCDF Shell
- When issuing commands from the dataflow shell, such as '
stream list
', the error will be thrown in the shell.