Could not generate DH Keypair workaround