Error: self-signed certificate in certificate chain

Hi, When compiling Kotlin native on Linux, run. /gradlew publish, the following error occurs: “self-signed certificate in certificate chain”. How to deal with this kind of problem?


This is a Gradle/SSL problem, nothing to do with Kotlin. You’ll have to do some web searching to find the answer. Since it’s the publish task that’s failing, I assume it’s trying to push artifacts to a remote repository (Maven Central, or something?), and failing due to the self-signed certificate error.