-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<X509SerialNumber /> not an integer #52
Comments
Then again, this bug may be in Xmldsig.js. Not sure which bit does what here yet. ;) |
Cool. Do you reckon there's any risk or unintended side-effect if I overwrite |
I thought about |
Now we the latest changes in ASN1.js and pvutils you would be able to get string representation like this: const serialNumberRepresentation = certificate.serialNumber.valueBlock.toString(); Integer could be arbitrary in length. |
I published new versions of |
Will do. Thank you! Did you fix the dependency bugs in those two, too, that I reported in other issues? |
no, I didn't |
However PeculiarVentures/xmldsigjs@d9c2f90 seems to indicate you did fix PeculiarVentures/xmldsigjs#8. ;) |
Having said that, you're right, xml-core is still missing as per #50. |
Hey,
Just a heads up that I too stumbled upon an issue with certificate serial numbers getting serialized in hex where they should be integers and noticed there's even a related TODO line (https://github.com/PeculiarVentures/xadesjs/blob/master/src/signed_xml.ts#L141) about. Docs signed with certs with such serial numbers obviously fail to validate outside of Xades.js. :)
The text was updated successfully, but these errors were encountered: