I have a self Signed Certificate

You will need to add the self-signed certificate to your JDK truststore using the JDK keytool: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/keytool.html