cert.addExtension(new NetscapeSSLServerName(
getEntry("host name of server", "*.eng.sun.com")));
String comment = getEntry("A comment for the certificate user", "");
if (!comment.equals("")) {
cert.addExtension(new NetscapeComment(comment));
}
cert.sign(AlgorithmID.md5WithRSAEncryption,kp.getPrivate());
X509Certificate[] chain = new X509Certificate[1];
chain[0] = cert;