LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2006, 04:03 AM   #1
maheshdf
LQ Newbie
 
Registered: Nov 2006
Posts: 10

Rep: Reputation: 0
ASN.1 BER file decoding


Hi,

Can somebody tell how to open ASN.1 coded hex file using any utiliy in Linux and how to decode it.
 
Old 11-29-2006, 05:49 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
how to open ASN.1 coded hex file
Open as in "show structure" see "man asn1parse" from the OpenSSL toolkit.


how to decode it.
BER is a subformat of DER which is encoding for ASN.1.
Since OpenSSL generates PEM, to convert PEM to DER your route would be:
"openssl x509 -inform PEM -outform DER -in cert.pem -out cert.der"
so reversing the route should then be:
"openssl x509 -inform DER -outform PEM -in cert.der -out cert.pem".
"man x509" for more information.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Decoding the contents of .Doc file yashwantpinge Programming 1 04-07-2006 11:35 AM
Some help with ASN.1 please genderbender Programming 2 11-29-2005 04:05 PM
decoding a sys file on a windows machine damoncf Linux - Software 1 05-05-2005 02:10 AM
BER for wireless link legolas_t Programming 1 08-24-2004 08:36 PM
how to get BER legolas_t Programming 0 06-15-2004 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration