Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个项目,我需要针对位于删除服务器上的公钥验证 XML 文件(SAML 断言)中的嵌入式签名。
有人用 PHP 做过这个吗?
我认为您正在寻找的答案在用户评论中的 PHP 文档中:
openssl_verify() - 用户评论
那应该可以帮助你。请记住,只要您可以获取证书文件,您就可以使用cURL()来获取它,而不是 fread,如果需要(或者至少在理论上您应该能够)。