LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-18-2023, 04:44 PM   #1
Corrado
Member
 
Registered: Aug 2004
Location: Washington
Distribution: RHEL
Posts: 174

Rep: Reputation: 16
Which Java Keystore


To get java apps connecting to another servers, I believe that ssl cert of the remote server has to be imported into a Java keystore.

The issue I'm having is trying to decide which keystore to import it into?

Here are just of few of the many keystore locations:

Code:
etc/pki/ca-trust/extracted/java/BAK.cacerts
/etc/pki/ca-trust/extracted/java/cacerts
/etc/pki/java/cacerts
/opt/atlassian/jira/jre/lib/security/cacerts
/opt/netpoint/webgate/access/_jvmWebGate/lib/security/cacerts
/usr/java/jdk1.8.0_121/jre/lib/security/cacerts
/usr/java/jdk1.8.0_121.org/jre/lib/security/cacerts
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/jre/lib/security/cacerts
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.261-2.6.22.2.el7_8.x86_64/jre/lib/security/cacerts
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/jre/lib/security/cacerts
/var/McAfee/agent/ml_cacerts.cer
/var/McAfee/agent/certstore/ml_cacerts.cer
Initially I imported the cert into
Code:
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/jre/lib/security/cacerts
and java connected fine. However, after running the command update-ca-trust, for some reason it removed the cert and broke the java.

Where is the proper keystore location to import all certs for JKS and so that when java is upgraded it doesn't have to be re-imported?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Import SSL certs to red5 keystore. munkz Linux - Security 0 10-05-2013 03:34 AM
SSL Keystore Certificate Password weenux28 Linux - Security 2 03-06-2013 11:00 AM
how to create a keystore in Linux I need it SSL java dbwizardgirl Linux - Newbie 1 11-27-2011 11:00 AM
Deleted keystore, can I completely reinstall jdk? littlegreywings Linux - Server 3 09-07-2009 06:14 AM
Tomcat .keystore file for SSL keysorsoze Linux - Software 0 08-28-2007 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration