added generic private key output
@@ -131,7 +131,9 @@ else if (algOID.equals(X9ObjectIdentifiers.id_ecPublicKey))
}
else
{
- throw new IOException("Cannot identify private key");
+ type = "PRIVATE KEY";
+
+ encoding = info.getEncoded();
}
}
else if (o instanceof SubjectPublicKeyInfo)
