LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 05: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, 06:49 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,552
Blog Entries: 54

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:35 PM
Some help with ASN.1 please genderbender Programming 2 11-29-2005 05:05 PM
decoding a sys file on a windows machine damoncf Linux - Software 1 05-05-2005 03:10 AM
BER for wireless link legolas_t Programming 1 08-24-2004 09:36 PM
how to get BER legolas_t Programming 0 06-15-2004 10:59 PM


All times are GMT -5. The time now is 06:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration