drcb19700 2015-11-12 18:40
浏览 74

如何使用PHP解密加密的XML断言?

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: https://www.samltool.com/decrypt.php, the assertion is decrypted perfectly. I have emailed them for their script, but have heard nothing.

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.

Please let me know if you need more info. Thanks!

  • 写回答

2条回答 默认 最新

  • douxieshang5577 2015-12-24 22:09
    关注

    Checkout the LightSAML library - it can deserialize SAML XML into a PHP data model and decrypt it. Here's an example on decrypting a SAML Assertion http://www.lightsaml.com/LightSAML-Core/Cookbook/How-to-decrypt-Assertion/

    评论

报告相同问题?

悬赏问题

  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用