title: How to verify the certificate for the ongoing ssl session
body: <p>I am using SSL to create a secure connection and using the certificate which is certified by the CA. After making the ssl session, I want to check the validity of the certificate and if it is not valid, i need to break all the ongoing session.</p>
  
  <p>How can I track the ongoing ssl sessions to check how many sessions are established using this certificate. Is there any api to track the ssl active session.</p>
  
  <p>Shall I use SSL_CTX_remove_session() to terminate the SSL session. Or is there any specific API for terminating the SSL session in openSSL. If resumption is supported, is it will keep a separate copy of this session.</p>