SSL certificate issue in intellij with gradle

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



SSL certificate issue in intellij with gradle



I have a gradle-managed project which I have been working on for the last few years. The code is published to an artifactory instance, which was migrated, company-wide, to AWS recently.



Ever since then I have been facing the following issue whenever I try to do a gradle sync for the project, rendering development impossible:



javax.net.ssl.SSLPeerUnverifiedException: Certificate for artifactory.domain.us doesn't match any of the subject alternative names: [*.domain.space]



I have tried the following:



Updating the intellij IDE to the latest version



Using local gradle distribution instead of built in wrapper (latest version)



Updating my jdk from 8 to 10 and then going back to 8



Copying the certificate of artifactory.domain.us from the browser to the jre's cacerts keystore using the keytool



Enabling and disabling various JVM and gradle VM related to tls and ssl ignore



Since no other developer in my team is facing this issue, it is probably a bad configuration from my end, but I can't figure out what. Please help!





Somewhere you told intellij to connect to example.com over SSL, but when it tries to make that connection it gets a certificate that doesn't say it's for example.com. Perhaps you have configured intellij to connect to an IP address instead of a domain name?
– James K Polk
Aug 7 at 23:41


example.com


example.com





Perhaps you're right, but I can't figure out where! Proxy settings? VM options? There are no SSL-related settings AFAICS.
– Shiv
Aug 8 at 2:45





Well, you can specify repositories with something like https://10.1.2.3/myrepo once and intellij will remember it. Try looking in the log files.
– James K Polk
Aug 8 at 20:22


https://10.1.2.3/myrepo









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS