Skip to content

Add certificate in the java truststore for ShanoirDownloader and ShanoirUploader

Arthur Masson edited this page Jun 1, 2021 · 3 revisions

[French version bellow]

Download the certificate from a web browser at https://shanoir.irisa.fr (see this StackOverflow question for more information)

For example on Firefox (to validate with a Shanoir developer, the file might be different) :

  • download the file shanoir-test-irisa-fr.pem by clicking the lock icon at the left of the URL bar : Connection Secure > More information > Security > View certificate > Download PEM (cert)

Then add the certificate file by running:

sudo keytool -import -alias shanoir-irisa-fr -file shanoir-test-irisa-fr.pem -keystore $JAVA_HOME/jre/lib/security/cacerts

on Windows it might be something like:

keytool -trustcacerts -keystore "%JAVA_HOME%jre\lib\security\cacerts" -storepass changeit -importcert -alias shanoir-irisa-fr -file shanoir-test-irisa-fr.pem

(you can give the full path to shanoir-test-irisa-fr.pem).


Télécharger le certificat depuis un navigateur sur https://shanoir.irisa.fr (voir cette question StackOverflow pour plus d'information)

Par exemple sur Firefox (à vérifier, le fichier est peut-être différent) :

  • le fichier shanoir-test-irisa-fr.pem en cliquant sur icône à gauche de l'URL : Connection Secure > More information > Security > View certificate > Download PEM (cert)

Puis l'ajouter en faisant :

sudo keytool -import -alias shanoir-irisa-fr -file shanoir-test-irisa-fr.pem -keystore $JAVA_HOME/jre/lib/security/cacerts

sur Windows cela donne quelque-chose du type :

keytool -trustcacerts -keystore "%JAVA_HOME%jre\lib\security\cacerts" -storepass changeit -importcert -alias shanoir-irisa-fr -file shanoir-test-irisa-fr.pem

(il est possible de donner le chemin complet vers le fichier shanoir-test-irisa-fr.pem).

Clone this wiki locally