title: Signing data using openssl with python
body: <p>I am currently signing data using next <code>opensll</code> command:</p>
  
  <pre><code>openssl dgst -sign key.pem -sha256 -out signature.sig data.txt
  </code></pre>
  
  <p>How can I achieve this with Python?</p>