PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2025 → Signer un XML (XMLSigne)
Signer un XML (XMLSigne)
Iniciado por leclere_fred, 23,ago. 2022 16:18 - 2 respuestas
Publicado el 23,agosto 2022 - 16:18
Bonjour,

J'essai de signer un document XML mais j'obtient toujours l'erreur :
Echec de la création de la signature XML.
Détail de l'erreur système : Signature failed.

Quelqu'un aurait-il un exemple d'utilisation ?

Voici mon bout de code :

XMLAuthnRequest est un xmlDocument <description="SAML">
tabCertificats est un tableau de Certificats

tabCertificats = CertificatListe()
POUR TOUT MonCertificat DE tabCertificats
SI PAS MonCertificat..ValidePourSignature ALORS CONTINUER

MaSignature est un xmlSignature
MaSignature..AlgorithmeNormalisation = atC14NExcluAvecCommentaire
MaSignature..AlgorithmeSignature = asRSA_SHA_256
MaSignature..Clé = MonCertificat

XMLSigne(MaSignature, XMLAuthnRequest.Signature)
FIN

Merci à vous
Vinns
Publicado el 24,agosto 2022 - 09:13
Je précise mon certificat est un SMIME donc le probleme vient peut-etre de là.
Il n'est pas du bon type pour signer du XML !?!?
Publicado el 19,agosto 2025 - 16:36
wrote:
Salut Brother,
Aurez-vous obtenu la solution sur ça. ?
Si Oui, Merci de me le partager...........


Je précise mon certificat est un SMIME donc le probleme vient peut-etre de là.
Il n'est pas du bon type pour signer du XML !?!?