We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

How to add OpenClinica certificate to Java keystore

drakosdrakos Posts: 16
edited January 2015 in Installation & Setup

Hello Everybody,

I recently run into multiple problems while trying to compile OpenClinica and Designer because my java installation did not trust the SSL certificate of the https://dev.openclinica.com website. This is probably happening because the CA who issued the OpenClinica certificate (GoDaddy) recently had to change their signing key and that new key is not inside the Java keystore.

A solution, for command line compilation using maven, was to add the arguments "-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true" to the standard mvn command "mvn clean install -Dmaven.test.skip=true"

A system wide solution, if you are allowed to update your local Jave keystore, is to add the certificate from the https://dev.openclinica.com website to the keystore. This way all communications (including maven and m2e) between your local java and the https://dev.openclinica.com website will be trusted. You can find the details in the attached pdf file.


Best,
Ioannis

Comments

  • adevaykinadevaykin Posts: 7
    Awesome! Thanks a lot!
  • lhdchvlhdchv Posts: 1
    edited January 2015
    Hello
    I'm having the same problem in here
    https://www.openclinica.com/forums#/discussion/comment/16449

    and tried to do this solution but it's still fail :)
    Here my log
    [ERROR] Plugin org.codehaus.mojo:buildnumber-maven-plugin:1.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:buildnumber-maven-plugin:jar:1.3: Could not transfer artifact org.codehaus.mojo:buildnumber-maven-plugin:pom:1.3 from/to central (https://dev.openclinica.com/artifactory/plugins-release): Failed to transfer file: https://dev.openclinica.com/artifactory/plugins-release/org/codehaus/mojo/buildnumber-maven-plugin/1.3/buildnumber-maven-plugin-1.3.pom. Return code is: 503 , ReasonPhrase:Service Temporarily Unavailable. -> [Help 1]
    org.apache.maven.plugin.PluginResolutionException: Plugin org.codehaus.mojo:buildnumber-maven-plugin:1.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:buildnumber-maven-plugin:jar:1.3

    Please help me!
    Many thank!
  • drakosdrakos Posts: 16

    Hi lhdchv,

    Are you still experiencing the problem?

    What I understand from your error log is that your problem is server related and probably resolved now.

  • haenselhaensel Posts: 602 ✭✭✭
    In addition to Ioannis's solution, it is possible to export the certificate to another keystore (maybe used only for OpenClinica packaging) if you don't want it in your central keystore.
    This keystore can be used during compilation e.g.
    mvn clean install -Dmaven.test.skip=true -Djavax.net.ssl.trustStore=<path_to_keystore>

    Regards,
    Christian
This discussion has been closed.