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
31 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 20

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 20

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
Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

 

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 20

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to moveā€¦
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

632 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