Title: Error Compute Signature VB2022 · Issue #341 · xmlsec/python-xmlsec · GitHub
Open Graph Title: Error Compute Signature VB2022 · Issue #341 · xmlsec/python-xmlsec
X Title: Error Compute Signature VB2022 · Issue #341 · xmlsec/python-xmlsec
Description: VB.net 2022: I try to sign an XML but with an URI = Id whose value is numerical. But "compute Signature" will not sign and generates an error: System.Security.Cryptography.CryptographicException: Malformed reference element. Certificado ...
Open Graph Description: VB.net 2022: I try to sign an XML but with an URI = Id whose value is numerical. But "compute Signature" will not sign and generates an error: System.Security.Cryptography.CryptographicException: M...
X Description: VB.net 2022: I try to sign an XML but with an URI = Id whose value is numerical. But "compute Signature" will not sign and generates an error: System.Security.Cryptography.CryptographicEx...
Opengraph URL: https://github.com/xmlsec/python-xmlsec/issues/341
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error Compute Signature VB2022","articleBody":"VB.net 2022:\n\nI try to sign an XML but with an URI = Id whose value is numerical.\nBut \"compute Signature\" will not sign and generates an error:\n System.Security.Cryptography.CryptographicException: Malformed reference element.\nCertificado = New X509Certificate2(_CertArchivo, _CertContrasenia, X509KeyStorageFlags.Exportable)\n\n xdTmp = New XmlDocument With {\n .PreserveWhitespace = False\n}\n \n xdTmp.Load(xmlAFirmar)\nsxTmp = New SignedXml(xdTmp) With {\n .SigningKey = Certificado.GetRSAPrivateKey\n}\nsxTmp.SignedInfo.SignatureMethod = \"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256\"\nsxTmp.SignedInfo.CanonicalizationMethod = \"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"\n\n Dim ReferenceId As String = FindReferenceId(xdTmp)........'Call Function ReferenceID'\n \n refTmp = New Reference With {\n .Uri = \"#\" \u0026 ReferenceId\n }\n \n refTmp.AddTransform(New XmlDsigEnvelopedSignatureTransform)\nrefTmp.AddTransform(New XmlDsigC14NWithCommentsTransform)\n\nsxTmp.AddReference(refTmp)\n \n \n sxTmp.ComputeSignature()","author":{"url":"https://github.com/aldodomingo2610","@type":"Person","name":"aldodomingo2610"},"datePublished":"2025-02-27T15:32:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/341/python-xmlsec/issues/341"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:db361f6f-e46d-0be3-1374-807b4791aa56 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83BC:166E9D:3C7FAB2:52111E7:6971FC1E |
| html-safe-nonce | b373929b9c278c9596c99f8974a251b00ee4c7d9f406ef0af0aed2c7c5fb1ced |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0JDOjE2NkU5RDozQzdGQUIyOjUyMTExRTc6Njk3MUZDMUUiLCJ2aXNpdG9yX2lkIjoiNDA3NDA2MDkxMTkzOTI4ODA5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4f06d8c6f446f0379134677bdfe472255be8f09291f6046ba1a348d708594707 |
| hovercard-subject-tag | issue:2884871118 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/xmlsec/python-xmlsec/341/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d6963121d67c4c5d19ae48d23b32c7746a2067bea1bfc40817bc19f97847e125/xmlsec/python-xmlsec/issues/341 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6963121d67c4c5d19ae48d23b32c7746a2067bea1bfc40817bc19f97847e125/xmlsec/python-xmlsec/issues/341 |
| og:image:alt | VB.net 2022: I try to sign an XML but with an URI = Id whose value is numerical. But "compute Signature" will not sign and generates an error: System.Security.Cryptography.CryptographicException: M... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aldodomingo2610 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d01a3551afdd1a0e12e78acaf3ba43a9a1f7dcb518695d6ed59db76a9290f13 |
| turbo-cache-control | no-preview |
| go-import | github.com/xmlsec/python-xmlsec git https://github.com/xmlsec/python-xmlsec.git |
| octolytics-dimension-user_id | 111647685 |
| octolytics-dimension-user_login | xmlsec |
| octolytics-dimension-repository_id | 27934955 |
| octolytics-dimension-repository_nwo | xmlsec/python-xmlsec |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27934955 |
| octolytics-dimension-repository_network_root_nwo | xmlsec/python-xmlsec |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 062b05dcdf64ee7a3dad7acabb746494ae0982cc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width