Skip to content

Instantly share code, notes, and snippets.

@freizl
Created November 30, 2017 18:32
Show Gist options
  • Save freizl/9c2e88012dad79f396f9884482aaa7bd to your computer and use it in GitHub Desktop.
Save freizl/9c2e88012dad79f396f9884482aaa7bd to your computer and use it in GitHub Desktop.
MVN - peer not authenticated
  1. download cert file
  2. import cert
$ cd $JAVA_HOME/jre/lib/security
$ keytool -import -keystore cacerts -file /path/to/company-internal.crt
## it will ask you password (bydefault it is “changeit”)
## It will ask to type yes or no, type “yes”
  1. Reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment