-1
Let’s go in pieces.
First, I already tested Enviorps and Envioloterps and both return the same error:
[1057] Rejeição - Assinatura difere do calculado.
I’m forming XML and it’s getting this way:
I am using the PHP SPED NFE library to sign XML
https://github.com/nfephp-org/nfephp
Using ONLY to sign XML, as follows:
$certificate = Certificate::readPfx(file_get_contents($cert_path.'cert.pfx'), '1234');
$xml_signed = Signer::sign($certificate, $xml_signed,
'PedidoEnvioLoteRPS', // Tag à ser assinada
null,
OPENSSL_ALGO_SHA1 // Algorithm
);
And using this signed XML for sending to Webservice.
I have already received error 1056 and 1057, both concerning the signature and Digest.
Someone has an example generation file of this Nfse, signing it using PFX (A1)?
Can anyone help me with this question?
Thank you.