java - How to setup TLS Server to authenticate client in spring integration? -


refer running client ssl/tls. explains scenario server client authentication. using spring integration process tls connections. spring-context file is:

   <bean id="sslcontextsupport"         class="org.springframework.integration.ip.tcp.connection.defaulttcpsslcontextsupport">         <constructor-arg value="file:keystore.jks"/>         <constructor-arg value="file:truststore.jks"/>         <constructor-arg value="keystorepass"/>         <constructor-arg value="trustpass"/>     </bean>      <int-ip:tcp-connection-factory id="crlfserver"             type="server"             port="${availableserversocket}"             single-use="true"             so-timeout="10000"             using-nio="false"             ssl-context-support="sslcontextsupport" /> 

my server accepting ssl connections , processing certificates installed on server , client. not sure whether above spring configuration setup client authentication or not. client authentication done @ ssl transaport level or in application code?

the spring integration defaulttcpsslcontextsupport based on sslcontext sslcontext = sslcontext.getinstance(protocol);. so, see in standard java ssl/tls documentation applied here well.

since <int-ip:tcp-connection-factory> produces type="server", case of

the server client authentication

all hard ssl work done in sslcontext layer, not in tcpnetserverconnectionfactory, if question.

in other words: doesn't matter spring integration or not. works same way in other java application users standard ssl/tls approach.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -