in src/main/java/com/lambdajavablockchain/service/ManagedBlockchainService.java [299:311]
private HFCAClient createHFCAClient(Properties caClientProperties) throws AppException {
try {
CryptoSuite cryptoSuite = CryptoSuite.Factory.getCryptoSuite();
HFCAClient caClient = HFCAClient.createNewInstance(AMBConfig.CA_ORG1_URL, caClientProperties);
caClient.setCryptoSuite(cryptoSuite);
return caClient;
} catch (IllegalAccessException | InstantiationException | ClassNotFoundException | CryptoException |
InvalidArgumentException | NoSuchMethodException | InvocationTargetException | MalformedURLException e) {
log.error("Error creating Fabric CA client - " + e.getMessage());
e.printStackTrace();
throw new AppException("Error creating Fabric CA Client", e);
}
}