AM requires a trust store containing CA certificates (internal/external) to establish trust relationship. If you have not created or configured one, it’s going to use the default i.e. cacerts. Try adding your ROOT CA or self-signed certificate to this trust store and trying again.
Location of cacerts: $JAVA_HOME/lib/security/cacerts