Re[2]: Extracting PrivateKey from PKCS8EncodedKeySpec with EC

2011-04-13 Thread Konstantin Andreev
Peder, what you encountered is a [bug 327773] http://bugzilla.mozilla.org/show_bug.cgi?id=327773 NSS pk11wrap layer has two functions to create private keys in a token: PK11_ImportEncryptedPrivateKeyInfo and PK11_ImportAndReturnPrivateKey. But only 1st of them supports EC keys. You may try res

Re: Extracting PrivateKey from PKCS8EncodedKeySpec with EC

2011-04-12 Thread Peder Nielsen @ GecoInc
me manner when I attempt to read the key from > the KeyStore like this: > > Key key = ks.getKey(alias, pw); > > It seems this thread was applicable to my issue: > http://old.nabble.com/How-to-export-private-key-using-pk12util-td23203644.html > But this thread speaks of

Extracting PrivateKey from PKCS8EncodedKeySpec with EC

2011-04-08 Thread Peder Nielsen @ GecoInc
export-private-key-using-pk12util-td23203644.html But this thread speaks of avoiding a security trap when exporting private keys in PKCS#8 format. So I guess this isn't supported on purpose? Peder Nielsen -- View this message in context: http://old.nabble.com/Extracting-Pr