resolved by adding certificate to exact java version. keytool -import -alias yourFileName -keystore "C:\Program Files\Java\jdk-10\lib\security\cacerts" -file downloadedFile.crt. You have to download this certificate in your webrowser,when you click on LOCK icon near web adress, then on Certification is valid--> details--> export that file crt