md.update(certificate.getEncoded());
String sha1String = getHex(md.digest());
md = MessageDigest.getInstance("MD5");
md.update(certificate.getEncoded());
String md5String = getHex(md.digest());
JTextArea sha1Area = new JTextArea(sha1String);
sha1Area.setLineWrap(false);
sha1Area.setOpaque(false);
sha1Area.setWrapStyleWord(true);