Initializing the Context to Perform Both Client and Server Authentication
To perform client authentication in addition to server authentication:
1. Call RWSecureSocketContext’s member functions setIdentity() and prepareToAuthenticate() from the client.
2. Call RWSecureSocketContext’s member functions setIdentity() and prepareToAuthenticate() from the server.
See the example client and server in Checking the Validity of a Certificate.
Client and server authentication is normally used when an application can easily require that all clients have certificates, such as when a company creates internal-use products.