@Before
public void setUp() throws GeneralSecurityException {
X500Principal subject = new X500Principal("CN=example");
KeyPair keyPair = KeyPairGenerator.getInstance("RSA").genKeyPair();
cert = X509Certificates.createEphemeral(subject, keyPair);
handler = new DefaultCallbackHandler(new ConsoleCertificateVerifier());
}