private void generateStores() throws IOException, GeneralSecurityException {
    final String algorithm = "SHA256withRSA";
    final CertificateMaterial ca = new CertificateBuilder(365, algorithm)
        .commonName("Test CA")
        .isCA()
        .generate();

    final CertificateMaterial certificate = new CertificateBuilder(365, algorithm)
        .commonName(hostName)
        .issuedBy(ca)
        .sanDnsName(hostName)
        .generate();

    final CertStores store = new CertStores(hostName);
    store.withCertificate("geode", certificate);
    store.trust("ca", ca);

    final File keyStoreFile = new File(tempFolder.toFile(), keyStoreFileName);
    keyStoreFile.createNewFile();
    store.createKeyStore(keyStoreFile.getAbsolutePath(), "geode");
    System.out.println("Keystore created: " + keyStoreFile.getAbsolutePath());

    final File trustStoreFile = new File(tempFolder.toFile(), trustStoreFileName);
    trustStoreFile.createNewFile();
    store.createTrustStore(trustStoreFile.getPath(), "geode");
    System.out.println("Truststore created: " + trustStoreFile.getAbsolutePath());
  }
This test iterates through the versions of Geode and executes client compatibility with
the current version of Geode.
geode-assembly/src/upgradeTest/java/org/apache/geode/management/RollingUpgradeWithSslDUnitTest.java