|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Externalize trustStore pathHi,
I have an application wherein I have integrated CAS SSO and Acegi security for Spring. <bean id="casProxyTicketValidator" class="org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator"> <property name="casValidate"><value>https://testcas:8443/cas/proxyValidate</value></property> <property name="proxyCallbackUrl"><value>https://testcas:8443/caswithacegi/casProxy/receptor</value></property> <property name="serviceProperties"><ref local="serviceProperties"/></property> <property name="trustStore"><value>C:\java\jdk1.5.0_09\jre\lib\security\cacert</value></property> </bean> My application is working fine with the above written bean but I want to externalise trustStore path , say I want to write something like : <property name="trustStore"><value>${certpath}</value></property> and want to read certpath from a properties file. For this I have added below written bean to the configuration file but I am unable to understand why it is not picking certpath from the properties file, may be the order of loading of properties file is causing some problem . <bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <value>/WEB-INF/classes/environment.properties</value> </list> </property> <property name="ignoreUnresolvablePlaceholders"><value>true</value></property> </bean> Any help will be appreciated . Thanks |
|
|
Re: Externalize trustStore pathThe JVM automatically trusts its own store. So if your JVM is given by:
<property name="trustStore"><value>C: \java\jdk1.5.0_09\jre\lib\security\cacert</value></property> Then you don't need to explicitly add that. If that's your JVM then that cacert file is automatically used. -Scott -Scott Battaglia PGP Public Key Id: 0x383733AA LinkedIn: http://www.linkedin.com/in/scottbattaglia On Fri, Jun 27, 2008 at 1:09 PM, SMallik <kmr_shailendra@...> wrote:
_______________________________________________ Yale CAS mailing list cas@... http://tp.its.yale.edu/mailman/listinfo/cas |
|
|
Re: Externalize trustStore pathHi Scott,
If I comment this property <!--<property name="trustStore"><value>C: \java\jdk1.5.0_09\jre\lib\security\cacert</value></property>--> , I am getting the following error : Your CAS credentials were rejected. Reason: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target . -Shailendra
|
|
|
Re: Externalize trustStore pathHi,
I think you probably meant to add your original certificate to the JVM's cacerts file not the cacert file -Scott -Scott Battaglia PGP Public Key Id: 0x383733AA LinkedIn: http://www.linkedin.com/in/scottbattaglia On Fri, Jun 27, 2008 at 2:18 PM, SMallik <kmr_shailendra@...> wrote:
_______________________________________________ Yale CAS mailing list cas@... http://tp.its.yale.edu/mailman/listinfo/cas |
| Free Forum Powered by Nabble | Forum Help |