Unable to find valid certification path to requested target

I want to configure realm EMail to post EMails using a SMTP server. I tested the credentials and SMTP settings outside Keycloak & worked successfully but when tried to test that within realm settings in EMail Tab using Test button got

unable to find valid certification path to requested target error.

I am using Keycloak 26.3.2 on windows 11 ( without a docker container ) & already I configured Keycloak https certificates with a self signed one. Should I buy a commercial certificate to resolve that issue or it is asking about the related SMTP server certificate not Keycloak one?

Thanks