From tarun at ebprovider.com Sat Aug 12 10:12:57 2000 From: tarun at ebprovider.com (Tarun Upadhyay) Date: Sat, 12 Aug 2000 13:42:57 +0530 Subject: DER Parser Message-ID: <020701c00435$2453e6b0$0401a8c0@EBPROVIDER> Hi all, I have just completed a DER Certificate Parser in Flex. For the want of CVS access, I am sending it attached for review (hopefully, there are not too many people on the list !!) Currently the display is not indented but I will do that asap To Do List: 1. move the parser out of Flex and into 'real' C. 2. check it for bugs and add support for indented display. 3. provide interface to allow function calls to be made to read a particular attribute of the certificate. (somewhat like cert in SSLeay) 4. may be provide a DER2XML utility. I plan to do all this by the next weekend. If anybody could point me to a few assorted DER certificates for debugging and testing, I will be obliged. With Warm Regards Tarun Upadhyay http://ebprovider.com/people/tarun -------------- next part -------------- A non-text attachment was scrubbed... Name: cert.lex Type: application/octet-stream Size: 3051 bytes Desc: not available URL: From tarun at ebprovider.com Mon Aug 21 03:33:48 2000 From: tarun at ebprovider.com (Tarun Upadhyay) Date: Mon, 21 Aug 2000 07:03:48 +0530 Subject: ASN 1 Parser Message-ID: <01e801c00b0f$dc8ac1f0$0401a8c0@EBPROVIDER> This is in reference to flex code I posted in my last mail. I have written an ASN 1 Parser for DER encoded certificates in C. Currently, the parser reads in DER encoded file from standard input and outputs a human readable text heirarchy on standard output. The source and executable are at: http://www.ebprovider.com/people/tarun/projects/GNUTLS The limitations: a) Object Identifiers are not well supported (As I dont understand how they are parsed) To be done: a) add better support for Object Identifiers b) convert executable to library c) add support to parse ASN1 to XML d) build X509 API over this API to support higher level calls. With Warm Regards Tarun Upadhyay http://ebprovider.com/people/tarun