title: I have .pem privatekey and .der encrypted file. I want to decrypt using nodejs
body: <p>I have used the following commands to generate the encrypted file "Example.txt.der".</p>
  
  <ol>
  <li><p>openssl genrsa -out privatekey.pem 2048</p></li>
  <li><p>openssl req -new -sha256 -key privatekey.pem -out csr.csr</p></li>
  <li><p>openssl req -x509 -sha256 -days 365 -key privatekey.pem -in csr.csr -out certificate.pem</p></li>
  <li><p>openssl smime -encrypt -aes-256-cbc -binary -in Example.txt -outform DER -out Example.txt.der certificate.pem</p></li>
  </ol>
  
  <p>I want to decrypt "Example.txt.der" using : privatekey.pem.</p>