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.

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

              Created:
              Updated:
              Resolved: