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

ASN parsing #1

Open
vejo opened this issue Jan 21, 2016 · 5 comments
Open

ASN parsing #1

vejo opened this issue Jan 21, 2016 · 5 comments

Comments

@vejo
Copy link

vejo commented Jan 21, 2016

Dear Damian,

thank you for your fine work, it helped me a lot!
Only one thing is left for me:
With your wonderful tool I can analyze an existing certificate that I fetched from a smart card.
But within the certificate there is one item, defined by it's OID, that would be important.
Is there a way to browse through the elements of the certificate to extract a specific one?

Once more, thx, and greetings from Austria/Europe!

Joerg

PS: that's my first post on GitHub, maybe I've broken some netiquette rules.

@Rush
Copy link
Member

Rush commented Jan 21, 2016

Hey Joerg,
You haven't broken any netiquette although the standard on GitHub is no pleasantries, just straight to the business. :-) I appreciate your fine greetings though.

I have very limited time right now but if you could come up with the openssl code that would fetch your field and enter it here https://github.com/encharm/x509.js/blob/master/main.cpp#L148 I could compile new x509.js

Regards,
Damian

@vejo
Copy link
Author

vejo commented Jan 21, 2016

thank you for your quick response and the source link.
To be true, I’m a newbee to node.js and also certificate parsing is not my main business.
The tag to be found is specified by OID 1.2.40.0.10.1.11
It should be a string containing the VAT registration number of a company, e.g. „ATU56362411“.
I’ve enclosed some certificates that I’ve read from smart cards, they should contain such a tag.

node.js modules based on openssl are not so suitable for me, because the target platform I’m developing for is mainly Windows.
Therefore I really like your slim solution and would appreciate using it.

@Rush
Copy link
Member

Rush commented Jan 21, 2016

I might find some time to see into this issue next week but no promises. Also the attachment didn't come through, you need to reply through github and attach the files there. Replying through email does not work very well.

@vejo
Copy link
Author

vejo commented Jan 21, 2016

Thank you for your help, even if it is not promised…
I’ll post the .zip onto GitHub.

Joerg

Von: Damian Kaczmarek [mailto:[email protected]]
Gesendet: Donnerstag, 21. Jänner 2016 20:04
An: encharm/x509.js [email protected]
Cc: Jörg Veigel [email protected]
Betreff: Re: [x509.js] ASN parsing (#1)

I might find some time to see into this issue next week but no promises. Also the attachment didn't come through, you need to reply through github and attach the files here. Replying through email does not work very well.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-173675582.

@vejo
Copy link
Author

vejo commented Jan 21, 2016

crt.zip

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

2 participants