Giter Club home page Giter Club logo

java-update-ca-certificates's Introduction

Java Update Ca Certificates

OpenJDK doesn't use CA Certificates installed on the system, but use a custom Root CA Certificate store.

This may cause error if you rely on custom CA certificate to access some HTTPS urls or if you are behind a SSL Proxy.

This tool will install custom CA certificates in JVM Root CA Certificate Keystore.

Install and run

  • Use maven wrapper to build the project
mvnw package
  • Execute the jar from the java environment you want to add CA certificate.
# This will intercept untrusted certificates when connecting to google.com
java -jar target/update-ca-certificates.jar

Usage

Usage: <main class> [-g=<glob>] [-h=<host>] [-i=<index>] [-p=<port>]
                    [-t=<truststore>] [-d=<directory>]... [-f=<file>]...
  -d, --directory=<directory>
                        Directory containing .crt files to update.
  -f, --file=<file>     File containing certificate file (PEM).
  -g, --glob=<glob>     Glob filter of certificate files to load.
  -h, --host=<host>     Host to check. This will intercept SSL certificates chain
                          returned by this host. If chain is not trusted, it will
                          add the last certificate in chain to trusted store, or the
                          one specified by index option.(default: google.com)
  -i, --index=<index>   Index of the certificate to add. (default: Last certificate
                          index in certificate chain)
  -p, --port=<port>     TCP port of the host to check. (default: 443)
  -t, --truststore=<truststore>
                        Truststore file to used.

Build

  • Run mvn package

java-update-ca-certificates's People

Contributors

toilal avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.