Comment 27 for bug 392104

Revision history for this message
In , Andrew John Hughes (ahughes) wrote :

Just tried adding this on Gentoo and I'm getting:

java.lang.RuntimeException: Could not parse key values
 at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1026)
 at sun.security.pkcs11.P11Key$P11ECPublicKey.getEncodedInternal(P11Key.java:1036)
 at sun.security.pkcs11.P11Key.getEncoded(P11Key.java:126)
 at sun.security.x509.CertificateX509Key.encode(CertificateX509Key.java:105)
 at sun.security.x509.X509CertInfo.emit(X509CertInfo.java:819)
 at sun.security.x509.X509CertInfo.encode(X509CertInfo.java:189)
 at sun.security.x509.X509CertImpl.sign(X509CertImpl.java:528)
 at sun.security.x509.X509CertImpl.sign(X509CertImpl.java:486)
 at sun.security.x509.CertAndKeyGen.getSelfCertificate(CertAndKeyGen.java:288)
 at sun.security.tools.KeyTool.doGenKeyPair(KeyTool.java:1223)
 at sun.security.tools.KeyTool.doCommands(KeyTool.java:827)
 at sun.security.tools.KeyTool.run(KeyTool.java:194)
 at sun.security.tools.KeyTool.main(KeyTool.java:188)
Caused by: java.io.IOException: Point does not match field size
 at sun.security.ec.ECParameters.decodePoint(ECParameters.java:92)
 at sun.security.pkcs11.P11ECKeyFactory.decodePoint(P11ECKeyFactory.java:78)
 at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1023)
 ... 12 more

This is with dev-libs/nss-3.12.3-r1