You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Celinio <ce...@yahoo.com> on 2012/06/14 10:53:12 UTC

Externalizing keystore/trustore login, password and location ?

Hi

I need to externalize the login/pwd/location of the trustore and the
keystore.

Here is an extract of my SoapContext.xml, used by Spring 3.0.5

    <http:conduit
        name="{http://www.blabla}bla.http-conduit">
        <http:client AllowChunking="false" Connection="Keep-Alive" />
        <http:tlsClientParameters
            secureSocketProtocol="SSL" disableCNCheck="true">
            <sec:keyManagers keyPassword="VGE">
                <sec:keyStore type="JKS" password="olala"
resource="certs/something.jks" />
            </sec:keyManagers>
            <sec:trustManagers>
                <sec:keyStore type="JKS" password="cool"
                    resource="certs/trustStore_bla.jks" />
            </sec:trustManagers>
            <sec:cipherSuitesFilter>
                
                <sec:include>.*_EXPORT_.*</sec:include>
                <sec:include>.*_EXPORT1024_.*</sec:include>
                <sec:include>.*_WITH_DES_.*</sec:include>
                <sec:include>.*_WITH_NULL_.*</sec:include>
                <sec:exclude>.*_DH_anon_.*</sec:exclude>
            </sec:cipherSuitesFilter>
        </http:tlsClientParameters>
        <http:authorization>
            <sec:UserName>monday</sec:UserName>
            <sec:Password>[RuYqAA</sec:Password>
        </http:authorization>
    </http:conduit>

I think it should work with property-placeholder :

    <context:property-placeholder
        location="file:g:/folder1/folder2/myProjectCxf.properties"
        ignore-resource-not-found="true"
        ignore-unresolvable="true"
        system-properties-mode="FALLBACK"
        properties-ref="proprietesParDefautBean"
    />
    
    
The same method was used in this old post (2009) but not sure it worked back
then :
http://cxf.547215.n5.nabble.com/Using-PropertyPlaceholderConfigurer-in-TLSClientParameters-TrustManager-Configuration-td547843.html    

Has anyone done it before with Spring PlaceHolder property ?
Or using another method ?
Thanks for helping.

--
View this message in context: http://cxf.547215.n5.nabble.com/Externalizing-keystore-trustore-login-password-and-location-tp5709738.html
Sent from the cxf-user mailing list archive at Nabble.com.