Add SSL certificate manually to JVM

Getting this Maven error at dependency resolving:

ValidatorException: PKIX path building failed:

Download (via browser) the certificate (cer), then install via Java Keytool.

Locate the “cacerts” file to add the cert in jre\lib\security\cacerts.

C:\"Program Files"\Java\jdk1.8.0_91\bin\keytool.exe -import -alias example -keystore C:\"Program Files"\Java\jdk1.8.0_91\jre\lib\security\cacerts -file primefaces.cer

C:\"Program Files"\Java\jdk1.8.0_91\bin\keytool.exe -import -alias example -keystore C:\"Program Files"\Java\jre1.8.0_91\lib\security\cacerts -file primefaces.cer

When ask for password, type: changeit , When asks for confirmation type: yes


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s