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

Bug in MacCertificate class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • tools
    • b20
    • generic
    • os_x

      When the name of the signing identity given to jpackage references certificates with this name in multiple keychains, and one of them is expired, MacCertificate.isValid() [1] may fail even though the name of a keychain with a valid certificate is specified in `--mac-keychain` CLI option.

      This happens because MacCertificate.isValid() method ignores the name of the keychain.

      Fix MacCertificate class by adding a member field with the keychain name.

      Suggested fix attached.

      [1] https://github.com/openjdk/jdk/blob/1b4b317aacbdfc499c28b00aeaf7120790a6c11a/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacCertificate.java#L55

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: