nfephp-org / nfephp

PROJETO DEPRECATED use sped-nfe

Home Page:https://github.com/nfephp-org/sped-nfe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Certificado Transmissor sem CNPJ

elvispdosreis opened this issue · comments

Eu estou com problema para transmitir usando o soap de "Certificado Transmissor sem CNPJ" existe alguma machete para converter o pfx para pem

Você deveria estar usando a biblioteca sped-nfe, esta está descontinuada !!

Existe alguma forma de usar ela nativamente dessa forma

$client = new \SoapClient('http://...server?wsdl',
[
'verifypeer' => FALSE,
'verifyhost' => TRUE,
'trace' => TRUE,
'exceptions' => TRUE,
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
'soap_version' => SOAP_1_2,
'connection_timeout' => 60,
'local_cert' => 'D:/home/api/test/certificado.pem',
'passphrase' => '123456',
'authentication' => SOAP_AUTHENTICATION_DIGEST
]
);

O SOAP nativo não dá para usar nas comunicações com a SEFAZ devido a várias alterações exigidas pela SEFAZ , recomendo o uso do cURL.

Vou procurar alguma exemplo