Ir para conteúdo
  • Cadastre-se

dev botao

SignatureDescription could not be created for the signature algorithm supplied


Ver Solução Respondido por cloudcon,
  • Este tópico foi criado há 2615 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

Postado (editado)

Essa semana me deparei com um problema.

O ACBR está assinando a RPS e a prefeitura de vitória estava retornando o erro de assinatura inválida.

Ao tentar validar o RPS no site da receita também informa que a assinatura é inválida.

 

Informações sobre a validade da assinatura

A assinatura digital do documento fornecido não é válida. 
Motivo: SignatureDescription could not be created for the signature algorithm supplied.

 

estou com os fontes mais atuais e usando WinCrypt.

Fiz algumas verificações, no meu xml antigo que funcionava a assinatura vinha assim

-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">


-<SignedInfo>

<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>

<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>


-<Reference URI="#rps51">


-<Transforms>

<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>

<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>

</Transforms>

<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>

<DigestValue>cxrc3s32EH/jIKt83ZRohGpIiL0=</DigestValue>

</Reference>

</SignedInfo>

<SignatureValue>XfI1K4h8+gnRWR/5QEWddvlpA4Y6inp/WMWCZeJDf/iiW/ZuAXw0l3uSuWCjuhSby5YMjlkT3RJknQ2kNj/5RDPSnIt0QTQABq4v0gB7YWlPcRn4mL0u+SZf9YK7ZuzKHV+kZYZdoRm0TfRws+Iznc60beI5zT9YXI+OwByW+Iif1VUQ7/sK6pxe06CvmwBNdpsQOpXvLpqaXAvz98EmypmB2xcOV739xaBjKBIuxtKa09yBkhYeWCGGVOU3EvihJ/g5fvzM9dJZbujbp3P1qKw1wBDnSfdTMNH8NIKiK4b/stqA3lRAyxpHjXA+7JR86E/zB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TULKiCezNU3WxsFJmPomdCn6b5+m8MJ9Md1wejXYhXy0pMBP0hgS/uyGqo/xHX+HhJiirTIZCWTjyjFEDBvHbBcvKHO13o2CHfyuolVo1JmyUXXhHHBbpigHKyFBr4fBIxhXawA++iWdz+YFss5/eHzl88yk4/EfYyWkqvBdxZCk7/6r1726haFgNfHKt6Rk1z0UtA7pXtiA0wWl/ANmdDq0BksWONgpOp0R7NoQRmpF/sIFGn/SUfKx9OH5L2GO+wXb0faX7ZTNzL0oPEBxC6yeUsZTO7FcVbQKavuGQ6QnSY8xufnDKWkILeSGhua6eqpjkT4StFmpyszK5NbWw7CjMXQKj1WT+H751pfiQy/BwLytaD6GdBKHnJgK+ZsW6E/LK+WNfvKIx0KYO8A9jdhil+SN5FqW+OA8B6teJtdfIR/spn67YHVyiaO3lQ/ilP00eVGB06Q7HWfHQk+01ss277Y2oTS5wJ1brYCEHGwBadhveUkrjsakJ1D6EbQqD+ELKPY8KgjSSsvW0uTjdXL4hLrvKGK8w+vPn2PkyHS/9Sf5ahe3rrYq6ph+8ffZVCtbVZO9CV4VartSXIf4O965WU7FQ8tp1wgSFL881ceiJQJUOxsbhMCcoZfq3Dbgu/oqzU9qtXVlHfavkBIHM07Tw==</X509Certificate>

</X509Data>

</KeyInfo>

</Signature>

O tipo de criptografia era <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>

Agora o novo xml

 

-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">


-<SignedInfo>

<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>

<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>


-<Reference URI="#rps171">


-<Transforms>

<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>

<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>

</Transforms>

<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>

<DigestVal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Signature>

agora o novo está com a criptografia <SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>

Esse erro de validação de assinatura ocorre pela versão da criptografia ?

Alguém já passou por esse problema ?

Estou anexando dois xmls, antigo assinatura valida e novo assinatura inválida .

Obs: Certificado Digital Valido, dentro do prazo e com teste de assinatura realizado no site do SERASA.

 

Assinatura Invalida.xml

Assinatura Valida.xml

Editado por cloudcon
Observações sobre o certificado digital
  • 1 mês depois ...
  • 3 semanas depois ...
Postado

Matheus me desculpe pela demora no retorno.
Eu não recebi o e-mail de notificação.
Seguinte, eu entrei no site do Serasa, que no caso é o emissor do meu certificado, e lá havia a opção de cadeia de certificados, eu baixei e importei as cadeiras pelo internet explorer.

Só isso e funcionou.

 

  • Este tópico foi criado há 2615 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.