title: How add a Certificate to the Java CA Certificate Store in Openshift (cacerts)?
body: <p>I use this command several times and always works :</p>
  
  <pre><code>cd ../../jdk/jre/lib/security
  keytool -import -trustcacerts -alias my.alias -file /../../myCert.crt -keystore cacerts
  </code></pre>
  
  <p>Now in openshift with a jboss-as 7 :</p>
  
  <pre><code>cd /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95/jre/lib/security
  keytool -import -trustcacerts -alias my.alias -file /../.../myCert.crt -keystore cacerts
  </code></pre>
  
  <p>Error log is:</p>
  
  <pre><code>Enter keystore password:
  Owner: CN=...
  Issuer: CN=...
  Serial number:....
  ...
  Trust this certificate? [no]:  yes
  Certificate was added to keystore
  keytool error: java.io.FileNotFoundException: cacerts (Permission denied)
  </code></pre>
  
  <p>Reviewing the archivies, I see that cacerts file is a simlink. This simlink has 0777 permissions but source file has rw-r--r-- or 0644 permissions:</p>
  
  <pre><code>/etc/pki/java/cacerts
  </code></pre>
  
  <p>So my questions are :</p>
  
  <p>1.- How can I alter permisssions in openshift? I tried and I get an error.</p>
  
  <p>2.- Is there another way to add my certificate to java cacerts file in openshift?</p>
  
  <p>3.- Openshift offer some configuration to do this ?</p>
  
  <p>Thanks in advance!</p>