-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signFromFile return null #1
Comments
Fixed, thanks. |
I'm still receiving null, xml attachment and code |
|
if it is converted and keeps returning null, I attach the arvhivo .pem |
Sorry it was my mistake, I just had to update the package with composer but the X509SubjectName tag does not have to be something similar
|
X509SubjectName is not required. That is an additional information. |
Okay thanks for your help :D |
I'm doing the example of the README.md and at the moment of executing the method signFromFile returns a null value and does not sign the xml
this my code:
use Greenter\XMLSecLibs\Sunat\SignedXml;
require 'vendor/autoload.php';
$xmlPath = '20516109549-01-F001-70.xml';
$certPath = 'certificate.pem'; // Convertir pfx to pem
$signer = new SignedXml();
$signer->setCertificateFromFile($certPath);
$xmlSigned = $signer->signFromFile($xmlPath);
var_dump($xmlSigned);
The text was updated successfully, but these errors were encountered: