code: public static String toPemFormat(final PemObject pemObject) throws IOException
  	{
  		final StringWriter stringWriter = new StringWriter();
  		final PemWriter pemWriter = new PemWriter(stringWriter);
  		pemWriter.writeObject(pemObject);
  		pemWriter.close();
  		final String pemString = stringWriter.toString();
  		return pemString;
  	}
docs: Transform the given {@link PemObject} object in pem format {@link String} object.
  
  @param pemObject
  the pem object
  @return the string
  @throws IOException
  Signals that an I/O exception has occurred.