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

Allow password to be provided programmatically to SunMSCAPI KeyStore

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      java version "13" 2019-09-17

      A DESCRIPTION OF THE PROBLEM :
      Currently, the password provided to the KeyStore is being ignored. From sun.security.mscapi.CKeyStore#engineGetKey:

      > A compatibility mode is supported for applications that assume a password must be supplied. It permits (but ignores) a non-null password.

      So, could the implementation be modified to not ignore the password anymore and maybe call the MS CAPI CryptSetProvParam function with a parameter of type PP_KEYEXCHANGE_PIN (see https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptsetprovparam)?.


        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: