In the code:
System.setProperty(\"javax.net.ssl.trustStore\", cacerts); System.setProperty(\"javax.net.ssl.trustStorePassword\", pwdCacerts); SSLSocketFact
I got the solution from another way, I share it for someone who comes here with the same problem:
I need add this code
System.setProperty("javax.net.ssl.trustStoreType","JCEKS");
because by default it expects a JKS type.