Skip to content
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

decode problem with ASN INTEGER when value is colon seperated hex #18

Open
jacksonm opened this issue Feb 9, 2014 · 0 comments
Open

Comments

@jacksonm
Copy link

jacksonm commented Feb 9, 2014

When encountering a serialNumber (type of CertificateSerialNumber) with type of INTEGER and a value that has a hex encoding format, for example, like 00:00:00:00:00:00:00:00:00:00:00:00, (yes, I know, some CAs seem to have delusions of grandeur with their serial numbering policies) the returned data structure is similar to:

'serialNumber' => bless( {
'value' => [
237291436,
579135199,
318680686,
480253832,
1492158
],
'sign' => '+'
}, 'Math::BigInt' )

I tried changing the CertificateSerialNumber type to OCTET STRING, but I only got asn decode error. How to proceed with this situation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant