Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6407453

KeyTool fails to use -noprompt option while storing trusted certs in Windows-Root of MSCAPI KeyStore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 6
    • security-libs
    • None

      FOR ALL THE X.509 CERTIFICATE & JKS & PKCS12 STORE OPERATIONS, USER
      ANSWERED THE CONFIRM DIALOG - SO THEY SUCCEEDED.
      =======================================================================================================================================
      IMPORTING CERTIFICATES FROM PKCS12 KEYSTORES TO CAPI KEYSTORE
      executing KeyTool command as under :
      j:/jdk/6.0/latest/binaries/windows-i586//bin//keytool.exe
      -J-Djava.security.manager -J-Djava.security.policy=KeytoolCAPI.policy
      -keystore NONE -provider sun.security.mscapi.SunMSCAPI -importkeystore
      -v -noprompt -srckeystore srikar.p12.data -srcstoretype PKCS12
      -srcstorepass password -srcalias srikarcert -destkeystore NONE
      -deststoretype Windows-My -destalias SrikarCertFromPKCS12 -srckeypass
      password
      [Storing keystore]


      ========================================================================================================================================
      IMPORTING CERTIFICATES FROM JKS KEYSTORE TO CAPI KEYSTORE
      executing KeyTool command as under :
      j:/jdk/6.0/latest/binaries/windows-i586//bin//keytool.exe
      -J-Djava.security.manager -J-Djava.security.policy=KeytoolCAPI.policy
      -keystore NONE -provider sun.security.mscapi.SunMSCAPI -importkeystore
      -v -noprompt -srckeystore RFE.keystore.data -srcstoretype JKS
      -srcstorepass password -srcalias srikar -destkeystore NONE
      -deststoretype Windows-My -destalias SrikarFromJKS -srckeypass password
      [Storing keystore]
      ========================================================================================================================================
      IMPORTING CERTIFICATES FROM .CER FILES PRESENT ON THE FILE SYSTEM INTO CAPI KEYSTORE

      STORING INTO WINDOWS-MY
      Storing X.509 Trusted Certificates
      Firing KeyTool command as under :
      j:/jdk/6.0/latest/binaries/windows-i586//bin//keytool.exe
      -J-Djava.security.manager -J-Djava.security.policy=KeytoolCAPI.policy
      -keystore NONE -provider sun.security.mscapi.SunMSCAPI -storetype
      Windows-My -importcert -v -noprompt -alias poonam_very_new_cert_build3
      -file poonam.pub.key.cer.data
      Certificate was added to keystore
      [Storing keystore]


      STORING INTO WINDOWS-ROOT
      Storing X.509 Trusted Certificates
      Firing KeyTool command as under :
      j:/jdk/6.0/latest/binaries/windows-i586//bin//keytool.exe
      -J-Djava.security.manager -J-Djava.security.policy=KeytoolCAPI.policy
      -keystore NONE -provider sun.security.mscapi.SunMSCAPI -storetype
      Windows-Root -importcert -v -noprompt -alias srikar_new_cert_build3
      -file srikarsagi.cer.data
      Certificate was added to keystore
      [Storing keystore]

      STORING INTO WINDOWS-ROOT
      Storing X.509 Trusted Certificates
      Firing KeyTool command as under :
      j:/jdk/6.0/latest/binaries/windows-i586//bin//keytool.exe
      -J-Djava.security.manager -J-Djava.security.policy=KeytoolCAPI.policy
      -keystore NONE -provider sun.security.mscapi.SunMSCAPI -storetype
      Windows-Root -importcert -trustcacerts -v -noprompt -alias
      srikar_new_cert_build3_DEF -file srikarsagi.cer.data -trustcacerts
      Certificate was added to keystore
      [Storing keystore]
      ========================================================================================================================================

            vinnie Vincent Ryan
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: