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

      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.

          [JENKINS-35661] When reading PCKS8 PrivateKey it should be possible to obtain a KeyPair, but toKeyPair is returnig null

          Alvaro Lobato added a comment -

          Created PR for the master branch (BC 1.54).

          Backporting the changes for BC 1.47

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

          Alvaro Lobato added a comment -

          Released 1.648.1 and 1.0.1

          Alvaro Lobato added a comment - Released 1.648.1 and 1.0.1

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

              Created:
              Updated:
              Resolved: