?
Solved

How to do SHA1 signing with private key like OpenSSL

Posted on 2006-11-15
9
Medium Priority
?
1,766 Views
Last Modified: 2012-05-05
I am using OpenSSL to sign a xml file for a request. Here is the command line:

openssl.exe dgst -sha1 -binary -out "myfile.out" -sign "certificate.pem" "myfile.xml"

How can I do the same with pure ASP or within a ActiveX DLL? I had allready developed a ActiveX DLL to call the OpenSSL command, but there are some problems with permissions, so the SHA1 signing is not done.

I do not know what the openssl comand line above does in detail. I only got this call from a third party to implement before sending requests to their internet gateway.

Can someone help me?? It's a very urgent problem!

P.S.: If there is a commercial ActiveX component with SHA-1 signing it would be also very helpful!
0
Comment
Question by:Sven
[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
  • 3
9 Comments
 
LVL 22

Expert Comment

by:WMIF
ID: 17950004
here is some code to do it using an already written javascript function.
http://forums.aspfree.com/code-bank-54/asp-classic-sha1-hash-82166.html

if you have a dll written and would like to use it though, we can try to track down the permissions issue with a tool called filemon from www.sysinternals.com
0
 
LVL 11

Author Comment

by:Sven
ID: 17954050
Okay, I need to explain some more. I figured out what the open ssl statement is doing:

-dgst -sha1 is creating a SHA1 Hash of the xml-file (no problem to do this with other components or code)

--binary -out "myfile.out" saves as binary file (without Base64 encoding) (also no problem)

--sign "certificate.pem" will sign with ssl certificate, not private key and it seems there is no third party component supporting this.

Is there some ActiveX supporting signing with ssl certificates?
0
 
LVL 22

Expert Comment

by:WMIF
ID: 17957986
>>Is there some ActiveX supporting signing with ssl certificates?

i havent heard of one, and doing a search right now doesnt come up with anything.  sounds like the dll you created will be the best option for you.  shall we hunt down the permissions problems?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Author Comment

by:Sven
ID: 17977670
@WMIF: Permission problem is solved by putting the dll in component services. It's not a comfortable way, but it works.
0
 
LVL 22

Expert Comment

by:WMIF
ID: 17981431
glad you got it worked out.
0
 
LVL 11

Author Comment

by:Sven
ID: 18171888
Can you please delete the question and refund the points? I solved the problem myself.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18212174
PAQed with points refunded (370)

Computer101
EE Admin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 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