JBoss question - Platform 5.0 for Java - Certificates / Keystore

JBoss question - Platform 5.0 for Java - Certificates / Keystore

  
Here's a doubt I'm having concerning the Agile Platform for Java 5.0...

I need to consume a webservice via ssl and I have made an extension for this purpose but now I'm facing some problems.
I think it may have something to do with certificates and java keystores.

I need to import a certain certificate to the java keystore, my question is:

How can I find the exact path to the jdk and cacerts (keystore) that my extension will use?

I ask this because my JBoss run.conf  file is commented like this

#
# Specify the location of the Java home directory.  If set then $JAVA will
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
#
#JAVA_HOME="/usr/java/jdk1.6.0"


and the environment keys from the server are like this:


[root@vrapp01xxx ~]# printenv
HOSTNAME=vrapp01xxx.xxxx.local
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
KDE_NO_IPV6=1
SSH_CLIENT=xx.xxx.xx.xxx 62566 22
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
SSH_TTY=/dev/pts/1
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
KDEDIR=/usr
MAIL=/var/spool/mail/root
PATH=/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/root
LANG=en_US.UTF-8
KDE_IS_PRELINKED=1
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/root
LOGNAME=root
QTLIB=/usr/lib64/qt-3.3/lib
CVS_RSH=ssh
SSH_CONNECTION=xx.xx.xx.xx 62566 xx.xx.x.x 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=localhost:10.0
G_BROKEN_FILENAMES=1
_=/usr/bin/printenv

No java_home set anywhere!!

I need to guarantee that I will import my certificate to the right place so that my call to the ws endpoint gives no errors like
 java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl), 
or
 
java.security.cert.CertificateException: No subject alternative names present


Thanks in advance.
Joao Heleno wrote:

I need to import a certain certificate to the java keystore, my question is:

How can I find the exact path to the jdk and cacerts (keystore) that my extension will use?
 
 
 Hi João,

If you already have the platform installed, you can simply run:

cat /etc/sysconfig/outsystems

and it will show you that info.


Cheers,

Pedro
Thank you for your answer Pedro.