What’s the recommended way to add corporate/internally signed certificates to gradle so it can talk to privately hosted maven/nexus repository within corporate network?
One possible way I found in search is to set the options in the environment before launching gradlew.bat, like the following -
> set JAVA_OPTS=-Djavax.net.ssl.trustStore=C:\\Windows\\win.ini -Djavax.net.ssl.trustStoreType=Windows-ROOT
> gradlew.bat
which uses host machine’s trust store for authentication. This is, however, assuming that the host machines actually has valid certs already installed. Also, this solution is M$ Windows specific. How to do something similar on Unix/Linux and Mac?