Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35661

When reading PCKS8 PrivateKey it should be possible to obtain a KeyPair, but toKeyPair is returnig null

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Bouncy Castle API method toKeyPair returns null when parsing a PCKS8 private key pair.
      Attached a sample file.

      The problem seems to be that when parsing PCKS8 the parsing returns PrivateKeyInfo which is not converted to KeyPair, only to PrivateKey.

        Attachments

          Issue Links

            Activity

            Hide
            alobato Alvaro Lobato added a comment -

            Created PR for the master branch (BC 1.54).

            Backporting the changes for BC 1.47

            Show
            alobato Alvaro Lobato added a comment - Created PR for the master branch (BC 1.54). Backporting the changes for BC 1.47
            Hide
            alobato Alvaro Lobato added a comment -

            Released 1.648.1 and 1.0.1

            Show
            alobato Alvaro Lobato added a comment - Released 1.648.1 and 1.0.1

              People

              • Assignee:
                alobato Alvaro Lobato
                Reporter:
                alobato Alvaro Lobato
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: