title: OpenSSL, decrypting with a private key
body: <p>Okay, so I have a text file named Kryptert that is encrypted.
  A key file named private with the private key. I want the output to be in a text file named Klartext.</p>
  
  <p>I am about to rip my hair out, because I cannot seem to figure this out.</p>
  
  <pre><code>openssl rsautl -decrypt -inkey C:\private.key -in C:\Kryptert.txt -out C:\Klartext.txt
  </code></pre>
  
  <p>The command above is what I use, and I get the following output in the CMD windows:</p>
  
  <pre><code>C:\Users\Marco&gt;openssl rsautl -decrypt -inkey C:\private.key -in C:\Kryptert.txt -out C:\Klartext.txt
  Loading 'screen' into random state - done
  RSA operation error
  8560:error:0407106B:rsa routines:RSA_padding_check_PKCS1_type_2:block type is not 02:.\crypto\rsa\rsa_pk1.c:190:
  8560:error:04065072:rsa routines:RSA_EAY_PRIVATE_DECRYPT:padding check failed:.\crypto\rsa\rsa_eay.c:592:
  </code></pre>
  
  <p>Anyone able to help me understand what is wrong, and how I could fix it? Thank you.</p>