title: How to open ssl socket using certificate stored in string variables in python
body: <p>In Python, ssl.wrap_socket can read certificates from files, ssl.wrap_socket require the certificate as a file path.</p>
  
  <p>How can I start an SSL connection using a certificate read from string variables? </p>
  
  <p>My host environment does not allow write to files, and tempfile module is not functional<br>
  I'm using Python 2.7.<br>
  I store the certificate inside MySQL and read as a string.</p>
  
  <p>Edit:
  I gave up, this is basically require implement ssl by pure python code, this is beyond my current knowledge.</p>