// And now let's write some keys in ASCII armoured format.
//**********************************************************************
try {
PGPArmouredMessage armoured;
armoured = new PGPArmouredMessage(complexPublicKey);
out = new FileOutputStream(jid+".asc");
out.write(armoured.getEncoded());
out.close();
armoured = new PGPArmouredMessage(complexPrivateKey);
out = new FileOutputStream("jeti.sec");
out.write(armoured.getEncoded());
out.close();
} catch (MessageException me) {
System.err.println("Writing the keybundles failed.");
me.printStackTrace();