title: How can I decrypt an encrypted XML assertion with PHP?
body: <p>I have been pouring over the internet this week trying to find a solution to my issue. Basically, I have a vendor who wants to use simplesamlphp to send encrypted information to our server. We send them our public certificate. They have sent us the SAML Response message. I am able to decode the message, and see the XML structure, but the assertion is still encrypted, as I would expect. I know the certificate and the ciphervalue are both correct, because when I put the info into this online tool: <a href="https://www.samltool.com/decrypt.php" rel="nofollow">https://www.samltool.com/decrypt.php</a>, the assertion is decrypted perfectly. I have emailed them for their script, but have heard nothing.</p>
  
  <p>Basically, I don't really need SAML here, I just need to be able to use my private key and the encrypted data in the XML document to decrypt the assertion data. </p>
  
  <p>Please let me know if you need more info. Thanks!</p>