ASN2XML 1.7.x
help
|
|||||||||||||||||||||||||||||||||||||||||||||
Overview of ASN2XML | |||||||||||||||||||||||||||||||||||||||||||||
ASN2XML translates a BER/DER encoded binary data file to XML format. BER refers to the ASN.1 Basic Encoding Rules as published in the ITU X.690 standard. DER refers to the Distinguished Encoding Rules as published in the same standard. This tool can decode BER or DER messages with or without an associated ASN.1 definition as follows:
|
|||||||||||||||||||||||||||||||||||||||||||||
Using ASN2XML | |||||||||||||||||||||||||||||||||||||||||||||
To test if the tool was successfully installed, enter asn2xml with no parameters as follows (note: if the PATH variable is not updated, you will need to enter the full pathname of asn2xml executable):
You should observe the following display (or
something similar):
ASN2XML,
Version 1.7.x Usage:
asn2xml <filename> options
This indicates that to use the translator, at a minimum, the name of a message file containing ASN.1 encoded data must be provided. The file may contain data that has been encoded using any of the ASN.1 binary encoding rules (BER, DER, CER, or PER - aligned or unaligned). The file may contain binary data or textual data in hexadecimal text or base64 format. The following table lists all of the command line options and what they are used for:
|
|||||||||||||||||||||||||||||||||||||||||||||
Binary to XML Message Translation | |||||||||||||||||||||||||||||||||||||||||||||
ASN2XML translates a binary message to XML with or without an associated ASN.1 definition file.
|
|||||||||||||||||||||||||||||||||||||||||||||
Decoding Without an ASN.1 File | |||||||||||||||||||||||||||||||||||||||||||||
ASN2XML decodes the binary message according to the BER tag,
length, and value structure. The known tag values are decoded with type names
as defined in the following table.
All other tag values will be printed in the
following format: <TagClass_TagValue>
where TagClass is the tag class name (APPLICATION, CONTEXT, or PRIVATE) and TagValue is the numeric tag value. For example, an [APPLICATION 1] tag would be printed as <APPLICATION_1> and a [0] tag (context-specific zero) would be printed as <CONTEXT_0>. The XML message will be created using the tag and value. Tag will be used as the XML element name and value will be used as the XML element content. |
|||||||||||||||||||||||||||||||||||||||||||||
Decoding Message with an ASN.1 File | |||||||||||||||||||||||||||||||||||||||||||||
ASN2XML can decode a binary message using an associated ASN.1 definition. This is done by specifying one of more ASN.1 source files that contain the definition of the binary message being decoded. ASN2XML will print an ASN.1 / message mismatch error if the ASN.1 file does not contain the type definition of the message. It is possible to use the -pdu command-line switch to force the association of a type within the specification to the message. This is only necessary if the ASN.1 files contain multiple types with the same start tag as the message type. Otherwise, the program will be able to determine on its own which type to use by matching tags. The XML message will be created using the ASN.1 definition element names and decoded message values. The ASN.1 definition element names will be used as the XML element names and decoded message values will be used for XML element content. |
|||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||
Objective Systems Inc | |||||||||||||||||||||||||||||||||||||||||||||
http://www.obj-sys.com | |||||||||||||||||||||||||||||||||||||||||||||
Phone: +1 (484) 875-9841 | |||||||||||||||||||||||||||||||||||||||||||||
Report any problem or issues to us at support@obj-sys.com | |||||||||||||||||||||||||||||||||||||||||||||
Copyright © 2004-2009 Objective Systems, Inc. All Rights Reserved. | |||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||