String pemFile = args[0];
List<Certificate> certs = CryptoDataLoader.certificatesFromFile(new File(pemFile));
System.out.println(String.format("Total number of certificates in chain: %d", certs.size()));
HttpLogClient client = new HttpLogClient("http://ct.googleapis.com/pilot/ct/v1/");
Ct.SignedCertificateTimestamp resp = client.addCertificate(certs);
System.out.println(resp);
if (args.length >= 2) {
String outputFile = args[1];
//TODO(eranm): Binary encoding compatible with the C++ code.