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

Cannot use non-extractable private key with Apple/KeychainStore

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • security-libs
    • None

      The KeyStoreChain type on macOS only supports key/certificate management but not signature signing/verification. If you look at https://docs.oracle.com/javase/9/security/oracleproviders.htm, the Apple provider only implements KeyStore. If you need to use a key in client auth, it needs to extract that key and use another provider (SunRsaSign or SunEC) to use it.

      If the key was created (or imported) as "non-extractable", then it cannot be used.

            hchao Haimay Chao
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: