asn.1

A lightweight protocol for Python and Erlang interaction

What protocol preferred to use for interaction between Python-code and Erlang-code over Internet? ASN.1 would be ideally for me, but its implementation in Python cannot generate encoder/decoder out from notation. ...

how to count number of records/event in asn1 file

I have to count total number of records(event) in a asn1 file.I dont think wc -l will give correct result.Please help. ...

Decoding incorrect(?) ASN.1 OID in an X.509 certificate

I'm writing a small utility to manually decode and extract an RSA public key from an X.509 certificate. It seems to have worked fine so far, but recently failed for a test certificate. Here's why: While decoding the ASN.1 OID, I'm expecting '2a 86 48 86 f7 0d 01 01 01', which decodes to 1.2.840.113549.1.1.1 (rsaEncryption). The certific...

I need an example to understand Implicit Tagging in ASN.1

I have been going through the following tutorial http://www.obj-sys.com/asn1tutorial/node12.html Can you help me understand implicit tagging with an example? ...

What is the difference between ASN.1 enumerated type and choice type?

Can you give me an example to show when to use an enumeration and when to use a choice type with ASN.1? ...

How to move an entire subtree under a table?

I have an existing MIB which has multiple OBJECT IDENTIFIERs, many scalaras under these OBJECT IDENTIFIERs and multple tables. Now I have a requirement to move this entire subtree under a main table as we need to support a single MIB for multiple physical systems with each system implementing its own part of subtree. How will my MIB loo...

Invalid ASN.1 file?

I'm kind of new to ASN.1, so I don't know if I have invalid files or if I just don't know what I'm doing. I've found an ASN file for parsing H245 messages here. There are a lot of "..." sections that appear to break the compiler I'm using (BinaryNotes). If I remove the "..." entries, I can get it to compile. Is that what I'm supposed t...

How to determine at run-time if app is for development, app store or ad hoc distribution?

Is there a way to determine programmatically if the currently running app was built and signed for development only or whether it was built for distribution? And can one determine if was build for app store or ad hoc distribution? Is it e.g. possibly to access the code signature and get the information from there? Or are there certain f...

Add Signing Time to PKCS7 Signed CMS?

I'm trying to add the signing time attribute to a file that I am signing using SignedCMS. private byte[] signFile(byte[] fileContent, X509Certificate2 verificationCert) { ContentInfo contentInfo = new ContentInfo(fileContent); SignedCms signedCMS = new SignedCms(contentInfo); CmsSigner cmsSigner = new CmsSigner(SubjectIdentif...

How to create an ASN.1 DER-encoded blob simply.

Greetings, How can I simply encode some binary data into an ASN.1 DER-encoded blob? I'm using C/C++, and I figure it should be possible to simply prefix the binary blob with some appropriate bytes that signify that the data is of type octet string and is of a given length (and in a sequence of length 1 I guess). Background if you're i...

How to enforce definite length encoding with CMS in NSS?

How to enforce definite length encoding with CMS in NSS? I am trying to get NSS's CMS encoder to encode with DER, but the folks as mozilla have apparently only worried about BER encoding (as far as I can tell.) I am able to get definite encoding with primitive types, but all constructed types have indefinite encoding. Code I am curren...

C# - TCP/IP MIB-II (RFC-1213) Group Support

Group, Is there group support for TCP/IP MIB-II (RFC-1213) in C#. I'm trying to write a client interface that will communicate over SNMP and access data dictionaries plus files. --Looking on the internet. It seems to me that I'll need a SNMP agent. Any suggestions or help. Chad ...

How do I encode and decode PER-encoded data in Python?

I need to be able to decode and encode PER-encoded octet strings using Python. I found PyASN1, but it doesn't include a PER codec. Is there another solution out there? How difficult would it be to write a PER codec? ...