title: How to decrypt RSA encrypted file (via PHP and OpenSSL) with pyopenssl?
body: <p>Simple n00b question: I am trying to replicate the behavior of the <a href="http://php.net/manual/en/function.openssl-private-decrypt.php" rel="nofollow noreferrer">openssl_private_decrypt</a> function in PHP to decrypt a file that a vendor is sending me which was encrypted via the <a href="http://php.net/manual/en/function.openssl-public-encrypt.php" rel="nofollow noreferrer">openssl_public_encrypt</a> function. I am using python 3.4 and thus the only library I can see available is <a href="https://github.com/pyca/pyopenssl" rel="nofollow noreferrer">pyopenssl</a>, but it's sufficiently low-level that I cannot easily find out how to do what I want to do. It's probably very simple, but does anyone have an exemple of what I want to do?</p>