title: keytool import certificate java.util.IllegalFormatConversionException in linux
body: <p>I am tring to create a keystore to be used in tomcat but I get the error "java.util.IllegalFormatConversionException: d != java.lang.String" using keytool. This happens only in linux (centos7) but not in windows.
  I created the keystore with</p>
  
  <pre><code>keytool -genkey -keyalg RSA -alias client -keystore testkeystore -storepass mypassword  -validity 3650
  </code></pre>
  
  <p>and tried to import the certificate with </p>
  
  <pre><code>keytool -import -alias  arubaauth  -trustcacerts -keystore testkeystore -file root_autenticazione_ATe.cer
  </code></pre>
  
  <p>The same commands and the same certificate do not show any error in windows.</p>
  
  <p>What is wrong?</p>
  
  <p>Thanks in advance</p>