How to do SHA1 signing with private key like OpenSSL
Posted on 2006-11-15
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!