System.out.println("Diffie-Hellman cipher-suites can not be used. " + ex);
}
try {
// set the temporary RSA key pair for RSA_EXPORT cipher suites
RSAPrivateKey tsk = new RSAPrivateKey(new FileInputStream(certDir + "/tempRSAPrivateKey.der"));
PublicKey tpk = tsk.getPublicKey();
KeyPair tempKeyPair = new KeyPair(tpk, tsk);
serverContext.setRSATempKeyPair(tempKeyPair);
} catch (Exception ex) {
System.out.println("Unable to set 512 bit temporary RSA key pair.");
System.out.println("RSA exportable cipher-suites can not be used.");