Certificate error when building a theme in BonitaStudio

When trying to build and deploy a theme in the BonitaStudio the following error is detected:

[ERROR] Plugin com.github.eirslett:frontend-maven-plugin:1.7.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.github.eirslett:frontend-maven-plugin:jar:1.7.5: Could not transfer artifact com.github.eirslett:frontend-maven-plugin:pom:1.7.5 from/to central (https://artifactory-dogen.group.echonet/artifactory/p-1188-maven): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

How can a valid certificate can be updated or mark as trusted inside the BonitaStudio?

 

Hi Alejandro,

It looks like you have configured a custom mirror or repository in your Maven settings.xml. This remote mirror is using https and require a specific certificate to be installed in your Java certificate store.

It can be done like this:

 # Java 8
 keytool -import -trustcacerts -alias _named-file_ -file _certificate-file-path_ -keystore "$JAVA_HOME/jre/lib/security/cacerts"

 # Java 11
 keytool -import -trustcacerts -alias _named-file_ -file _certificate-file-path_ -keystore "$JAVA_HOME/lib/security/cacerts"

HTH
Romain