response.setMockResponseCode(200);
mockServer.setMockHttpServerResponses(response);
// TSA client
MessageDigest digest = MessageDigest.getInstance("SHA-256");
TSAClient tsaClient = new TSAClient(new URL(tsaUrl), null, null, digest);
// load the keystore
KeyStore keystore = KeyStore.getInstance("PKCS12");
keystore.load(new FileInputStream(keystorePath), password.toCharArray());