try {
new EncryptedPrivateKeyInfo(key);
} catch (IOException ioe) {
KeyStoreException ke = new KeyStoreException("Private key is not"
+ " stored as PKCS#8 EncryptedPrivateKeyInfo: " + ioe);
ke.initCause(ioe);
throw ke;
}
KeyEntry entry = new KeyEntry();
entry.date = new Date();