InvalidKeyException: Could not initialize for signing with the given key
What does this caused? And how can I make following code to work? Is it bug, or is it supposed to do so?
X509CertImpl newCert = new X509CertImpl(certInfo);
newCert.sign(caPrivateKey, SIG_ALG_NAME);