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

      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.

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

              Created:
              Updated:
              Resolved: