private void toFile()
	{
		try
		{
			String filename = "ServerX.509Certificate.txt";
			File file = new File(filename);
			PrintWriter out = new PrintWriter(file);
			out.println("Certificate: ");
			out.println("\tData: ");
			out.println("\t\tSerial: " + serial);
			out.println("\t\tSignature Algorithm: " + signatureAlgorithm);
			out.println("\t\tDate: ");
			out.println("\t\t\tValid From: " + validityFrom);
			out.println("\t\t\tValid To: " + validityTo);
			out.println("\t\tSubject: " + subjectName);
			out.println("\t\tPublic Key Algorithm: " + publicKeyAlgorithm);
			out.println("\t\tPublic Key Info:  ");
			out.println("\t\t\tModulus: " + modulus);
			out.println("\t\t\tExponent: " + exponent);
			out.println("\t" + signature);
			out.close();
		} catch (FileNotFoundException e)
		{
		}
	}