Solved

how to convert hash file(dgst format) from Sign file which is in formate of PKCS#7 formate?

Posted on 2016-10-24
6
27 Views
Last Modified: 2016-11-28
i have .Sign file which contain the private key and hash of Image file. how to extract this hash file form .Sign file ???
0
Comment
Question by:kelvin desai
  • 3
  • 2
6 Comments
 
LVL 19

Expert Comment

by:Peter Hutchison
ID: 41856898
If you download OpenSSL, you can use the OpenSSL tool to convert between PEM (Base64), PKCS7 and PKCS12 formats:
E.g.
Convert pkcs7 to PEM:
openssl pkcs7 -in file.p7 -out file.pem -nodes
0
 

Author Comment

by:kelvin desai
ID: 41858025
it showing:

unable to load PKCS7 object
0
 
LVL 19

Expert Comment

by:Peter Hutchison
ID: 41858124
The file might not be pkcs7 format, so try this command:
openssl dgst -in file.p7 -out file.pem -nodes

See this article:
https://www.openssl.org/docs/manmaster/apps/dgst.html
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:kelvin desai
ID: 41858147
the above case is for encryption, i need decryption of .p7b file, and from that .p7b file i want sign.
0
 
LVL 19

Accepted Solution

by:
Peter Hutchison earned 500 total points
ID: 41858276
By the looks of it, it is not possible to decode such a file back to text. A signature is just  digital signature, not the actual text.

e.g. openssl dgst file.sign

will display a hex printable version of the digital signature
0
 
LVL 14

Expert Comment

by:frankhelk
ID: 41903902
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Peter Hutchison (https:#a41858276)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

frankhelk
Experts-Exchange Cleanup Volunteer
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question