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

i have .Sign file which contain the private key and hash of Image file. how to extract this hash file form .Sign file ???
kelvin desaiAsked:
Who is Participating?
 
Peter HutchisonConnect With a Mentor Senior Network Systems SpecialistCommented:
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
 
Peter HutchisonSenior Network Systems SpecialistCommented:
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
 
kelvin desaiAuthor Commented:
it showing:

unable to load PKCS7 object
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Peter HutchisonSenior Network Systems SpecialistCommented:
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
 
kelvin desaiAuthor Commented:
the above case is for encryption, i need decryption of .p7b file, and from that .p7b file i want sign.
0
 
frankhelkCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.