java - Setting the right truststore in JBoss 7 -
i want send emails jboss 7 application. smtp server needs tls connection self signed certificate. if seek send email sslhandshakeexception because server certificate cannot checked. prepare have add together this: http://springinpractice.com/2012/04/29/fixing-pkix-path-building-issues-when-using-javamail-and-smtp/ (putting smtp server certificate java truststore file)
my problem how set truststore file jboss 7?
i known @ stackoverflow , on other forums there several reply propblem. didn't found right.
i have tried followings:
addingjava_opts="$java_opts -djavax.net.ssl.truststore=/home/stewert.c-on/data/projects/keystore/devel.truststore -djavax.net.ssl.truststorepassword=123456"
to: jboss-as-7.1.1.final/bin/standalone.conf jboss-as-7.1.1.final/bin/domain.conf jboss-as-7.1.1.final/bin/appclient.conf adding <jsse keystore-password="123456" keystore-url="/home/stewert.c-on/data/projects/keystore/devel.keystore" truststore-password="123456" truststore-url="/home/stewert.c-on/data/projects/keystore/devel.truststore"/>
jboss-as-7.1.1.final/standalone/configuration/standalone.xml but if check @ runtime scheme environment variable 'system.getproperty("javax.net.ssl.truststore")' in every case null!
my environment:
linux jboss 7.1 jdk 7 i'm starting jboss within of eclipse junoanybody knows what's going wrong? must set truststore?
thanks, steffen
someone asked on jboss forum "javax.net.ssl.truststore - way specify client trust?", , reply "yes".
their approach set in system-properties
element in server config xml, seems best way me too. improve grubbing in run configuration files!
java jboss truststore
No comments:
Post a Comment