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: github.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:0a0c9f50-5577-7c26-6e44-037572482304 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9A0:1FC3E6:483DB1:65E250:696A0C86 |
| html-safe-nonce | 2235f0015949a66c3dbc5cfbc117b1399fc5832972fe94bea93598dafd23eb04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUEwOjFGQzNFNjo0ODNEQjE6NjVFMjUwOjY5NkEwQzg2IiwidmlzaXRvcl9pZCI6IjEzODYxNDU5NTE2MzY1NTMwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 12d5fe5ca7b9a6fb1575e88e2627ca0568c9f9519075c6156a28fc69f49ae33c |
| 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 | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width