asn.1

Getting ASN.1 Issuer strings from PEM files?

I recently came across an issue with Windows 2003 (apparently it also exists in other versions too), where if an SSL/TLS server is requesting client certificate authentication and it has more than 16KB of trusted certificate DNs, Internet Explorer (or any other app that uses schannel.dll) is unable to complete the SSL handshake. (In a nu...

What's the best way to serialize data in a language-independent binary format?

I'm looking into a mechanism for serialize data to be passed over a socket or shared-memory in a language-independent mechanism. I'm reluctant to use XML since this data is going to be very structured, and encoding/decoding speed is vital. Having a good C API that's liberally licensed is important, but ideally there should be support f...

How can I translate Perl's Convert::ASN1 to Ruby code?

Can somebody advise me what this code does and how can I convert it to Ruby in most simple way? #!perl use Convert::ASN1; my $asn1 = Convert::ASN1->new(encoding => 'DER'); $asn1->prepare(q< Algorithm ::= SEQUENCE { oid OBJECT IDENTIFIER, opt ANY OPTIONAL } Signature ::= S...

Would you recommend ASN.1 to C# compiler?

Have you done any work with ASN.1 to C# compiler? Can you recommend it? I have used Objective Systems ASN1C which I would recommend. I have also played a little with BinaryNotes. ...

How does Google Protocol Buffers compare to ASN.1

What are the most noticable differences between Google Protocol Buffers and ASN.1 (with PER-encoding)? For my project the most imporant issue is the size of the serialized data. Has anyone done any data-size comparisons between the two? ...

Does a free general purpose ASN.1 Decode/Dump/Inspect program exist?

Does a free general purpose ASN.1 Decode/Dump/Inspect program exist? I have a suspect ASN.1 block which may have failed decryption, and I would like to inspect it to see it it appears valid, and if so what elements it contains. ...

Is there a free package for reading, manipulating and writing ASN.1 in Java?

Is there a free package for reading, manipulating and writing ASN.1 in Java? It must be: Free Lightweight Self-contained (without external dependencies on, e.g. Apache commons) Java 5 (not Java 6), and Java 4 is preferred. ...

Java ASN.1 compiler

Right now I'm using BinaryNotes to parse ASN.1 files for use in a Java project. It takes an ASN.1 definition and produces Java class(s) that let me manipulate ASN.1 files. I've hit a wall with extension markers (...) because it doesn't support them. The source forge project page says they're coming in the next release, but the last rele...

How can I parse a raw SNMP trap in Perl?

A few weeks ago I wrote an SNMP relayer for our ops group. They have some dumb devices that can only send traps to a single IP, and we have a monitoring system that listens on multiple IPs for availability. The code's dead simple, and essentially: while (recv($packet)) { foreach $target (@targets) { send($target, $packet); } }...

Reading a ASN.1 DER-encoded RSA Public key

I'm writing an app to get a better understanding of DKIM. The spec says I retrieve a "ASN.1 DER-encoded" public key from the domain TXT record. I can seen the key on "s1024._domainkey.yahoo.com" = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDrEee0Ri4Juz+QfiWYui/E9UGSXau/2P8LjnTD8V4Unn+2FAZVGE3kL23bzeoULYv4PeleB3gfm". How can I use this key...

Create a G3 fax image with an ASN.1 wrapper for ldap photo

How can I create "An object encoded in G3 fax as explained in recommendation T.4, with an ASN.1 wrapper to make it compatible with an X.400 BodyPart as defined in X.420." in C#, starting from any standard .NET image/bitmap objects? This is the LDAP definition of the photo attribute. ...

asn.1 parser in C/Python

I am looking for a solution to parse asn.1 spec files and generate a decoder from those. Ideally I would like to work with Python modules, but if nothing is available I would use C/C++ libraries and interface them with Python with the plethora of solutions out there. In the past I have been using pyasn1 and building everything by hand ...

C# for telecom applications ?

Hi, who is using .net technologies for telecom applications? Are there any resources for this? I am interested in topics as SS7 signaling, ASN.1, MML Commands etc. Thanks ...

How to import DSA signature in ASN.1 format using BouncyCastle (C#)

OpenSSL, as well as most other DSA implementations, outputs signatures in ASN.1 format. Thus, the 40-byte signature (two 20-byte integers) becomes 46 bytes due to the ASN.1 structure headers. (See this forum post for details.) My question is, how does one handle this format in C#? (or elsewhere, for that matter) I spent a while trying...

Mibble MIB Parser - extracting comments from the mib.

I am using the Mibble MIB Parser to extract all simple data types from an MIB file. I've been successful until my attempt to extract comment text. Take the following module as an example: invBookList OBJECT-TYPE SYNTAX INTEGER { mobydick(1), -- call me ishmael paradiselost(2), -- aComm...

ASN.1 reading material

Hi, Is there any place where i could get some materials to know about ASN.1. I want to know about the syntax's to be used and also some examples to get some overview. Any help is appreciated. ...

Undeclared tags in the input to an ASN.1 BER decoder

I have a specification for an ASN.1 syntax that I wish to modify by adding some fields. If I create an encoded string using BER with the new fields and then attempt to decode that string using a decoder that doesn't know about these additional fields, what should the result be? Will the decoding fail because there are fields that the dec...

How do I decode a DER encoded string in Java?

Hello, I'm trying to read a custom extension from a digital certificate. I know the value is a GeneralString encoded in DER. Is there an easy way to correctly decode it and get a Java String? I tried the following, but 's' includes some of the encoding metadata as junk characters at the start of the string. byte[] ext = cert.getExtensi...

Can I use Google's Protocol buffers for processing LDAP requests in my LDAP server?

Hi, I need to process the incoming predefined ASN format data(coming from verity of clients that uses BER library to build it) in my application server. This is typically an LDAP server where every request will be in a predefined ASN format. Can i use Google's protocol buffers to process the requests in the server side? Will it help an...

SNMP: ASN.1 MIB Definitions. Referencing a table within a table

Its's been a while since I've written ASN.1 so.. Our data model is comprised of several table definitions within a table. This is not workable in SNMP, so we need to flatten the definitions. The easiest way to do this would be to have the embedded table indexed by the same OID as the parent table. Thus someTableEntry ::= SEQUENCE { ...