Confirm XML Signature to Remote Certificate with PHP

I am working on a project where I need to check the embedded signature in an XML file (SAML statement) for a public key located on a remote server.

Has anyone done this in PHP?

+3
source share
1 answer

I think the answer you are looking for lies in the PHP documentation in user comments:

openssl_verify () - user comment

This should help you. And remember that while you can get the certificate file, you can use cURL () to extract this instead of fread if that (or, at least theoretically, you should be able to).

+1

Source: https://habr.com/ru/post/1756769/


All Articles