title: Java SSL socket -- client certificate proof
body: <p>I'm trying to create a java SSL socket server application that a few java SSL socket client applications will connect to. To guarantee the trustworthiness of both communication partners, </p>
  
  <p>(1) the server should only accept a client connection if the client's certificate was signed with the server's private key</p>
  
  <p>(2) the client should only communicate to the server if the server's certificate is contained in the client's trusted store.</p>
  
  <p>Because I'm totally new to JSSE, I only managed the client application to connect to the server solely if its certificate is contained in the client's trusted store (condition 2). However, I have no clue how to achieve my 1st condition...</p>
  
  <p>I would be grateful for every kind of help.</p>
  
  <p>Best regards, Galveston01</p>