Package org.certificatetransparency.ctlog.comm

Examples of org.certificatetransparency.ctlog.comm.HttpLogClient.addCertificate()


    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.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.