SSLSocket ssl = null;
SSLServerContext serverContext = new SSLServerContext();
boolean generateDHParameters = false; // use pre-generated Diffi-Hellman parameters
DHParameterSpec dhparam = null;
// pre-generated Diffi-Hellman parameters
BigInteger p = new BigInteger("da583c16d9852289d0e4af756f4cca92dd4be533b804fb0fed94ef9c8a4403ed574650d36999db29d776276ba2d3d412e218f4dd1e084cf6d8003e7c4774e833", 16);
BigInteger g = BigInteger.valueOf(2);
dhparam = new DHParameterSpec(p, g);
// set the DH parameter for empherial and anon cipher suites
serverContext.setDHParameter(dhparam);
KeyAndCertificate kac;