Following the documentation for implementing self signed certificates results in an error: root certificate not trusted.
Documentation to create and configure the certificate:
Release : 4.9.1
Component : CA Test Data Manager - TDM Web Portal
The following command is used in the documentation:
keytool -genkey -alias "aliasname" -keyalg RSA -keystore "keystore_path\.keystore"
There are some additional options that can resolve the issue.
Check the output of the following commands to confirm the actual hostname:
Add the -ext san option for additional hostnames:
"C:\Program Files\CA\CA Test Data Manager Portal\jre\bin\keytool" -genkey -alias "Test Data Manager New" -keyalg RSA -keystore "C:\Program Files\CA\CA Test Data Manager Portal\conf\.keystore" -validity 3650 -ext "san=dns:<actual hostname>,dns:localhost"
Also as a response to Enter your first and last name, enter the actual hostname.
Then at the end, CN should show the actual hostname: CN=<hostname>
If needed follow the instructions as listed here under troubleshooting: