title: Extract certificate from SSLContext
body: <p>I'm creating SSLContext in standard way:</p>
  
  <ul>
  <li>take .p12 certificate file,</li>
  <li>create KeyStore and load certificate into it,</li>
  <li>create KeyManagerFactory, init it with KeyStore, and get KeyManagers,</li>
  <li>create TrustManagerFactory, init it with null, and get TrustManagers.</li>
  <li>create SSLContext and init it with KeyManagers and TrustManagers.</li>
  </ul>
  
  <p>The question is - how can I extract KeyStore and certificate data back from SSLContext? The task is to obtain fingerprint hash from certficate.</p>
  
  <p>Is it even possible or I have to get it separately, reading certificate from file?</p>