4 Replies Latest reply on Jan 17, 2018 8:32 AM by handat

    keytool not import any certificate


      Hi all


      On a new AWS instance, new and clean I have intall jre_8_0_91 and I do:


      echo "" | openssl s_client -connect android.googleapis.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > google.cert



      /usr/java/jre1.8.0_152/bin/keytool -importcert -file google.cert -storepass changeit -keystore /usr/java/jre1.8.0_152/lib/security/cacerts -alias google


      ok, it all right.
      Now I update to jre_8_0_151 or jre_8_0_152 and repeat the commands, but allways the error is
      error de herramienta de claves: java.util.IllegalFormatConversionException: d != java.lang.String


      What is new in the last versions at KEYTOOL? Why I cannot import any certificate?


      Any suggestions are wellcome!!
      Best regards