Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does gradle uses a cacerts file other than the javavm's?

I am now behind a firewall that resigns every page with a different certificate. Work related. So every https access is now signed with a self(workplace)-signed-certificate.

As a result, a lot of software is broken.

Android studio lets you store certificates and use those, but gradle still complains.

Short of adding the certificate to the running javavm cacerts with keytool, is there a more gradle-specific solution? (it looks like gradle does not use android-studio's cacerts file)

I had no luck searching for it.

like image 876
dabicho Avatar asked Nov 10 '22 12:11

dabicho


1 Answers

Gradle uses the cacerts file from the JVM, with which it was started (this may be another JVM than Android Studio uses, especially if Android Studio uses a packaged one). So just check the log output from the Gradle build, you should see at the beginning, which JVM it is using.

like image 156
dunni Avatar answered Jan 04 '23 01:01

dunni