ESTTestUtils.toJavaX509Certificate(
ESTTestUtils.readPemCertificate(
ESTServerUtils.makeRelativeToServerHome("/estCA/cacert.crt")
)
), null);
<BUG>ESTService est = new ESTServiceBuilder("https://localhost:8443/.well-known/est/")
</BUG>
.withClientKeystore(clientKeyStore)
<BUG>.withClientKeystorePassword(clientKeyStorePass)

.withTlsTrustAnchors(Collections.singleton(ta)).build();</BUG>
PKCS10CertificationRequestBuilder pkcs10Builder = new JcaPKCS10CertificationRequestBuilder(new X500Name("CN=Test"), enrollmentPair.getPublic());

ESTTestUtils.toJavaX509Certificate(
ESTTestUtils.readPemCertificate(
ESTServerUtils.makeRelativeToServerHome("/estCA/cacert.crt")
)
), null);
ESTService est = new ESTServiceBuilder(Collections.singleton(ta), "https://localhost:8443/.well-known/est/")
.withClientKeystore(clientKeyStore)
.withClientKeystorePassword(clientKeyStorePass).build();
PKCS10CertificationRequestBuilder pkcs10Builder = new JcaPKCS10CertificationRequestBuilder(new X500Name("CN=Test"), enrollmentPair.getPublic());
