title: Sign CSR from client using CA root certificate in python
body: <p>I am new to python and still learning it so my question can be little naive. Please bear with it ;)</p>
  
  <p>The problem is client will be sending CSR and I want to sign it with my CA root certificate and return the signed certificate back to client.</p>
  
  <p>I have been using this command to do it using command line</p>
  
  <p><strong>openssl x509 -req -in device.csr -CA root.pem -CAkey root.key -CAcreateserial -out device.crt -days 500</strong></p>
  
  <p>same thing I want achieve using python. I have come across python library for openssl <a href="https://pythonhosted.org/pyOpenSSL/" rel="noreferrer">pyopenssl</a> </p>
  
  <p>is it possible using this library ? How ? or shoudl I go for M2Crypto ?</p>