Hi Peter, thank you for your answer.
It's true - using the private key needs always a password. I thought there could be a "hidden" parameter for the command line like for other openSSL commands. (or config file) This is my "workaround": After starting the signing command, I send from my main application per "sendkeys" the password and CRLF to openssl. Now this solution works fine on my Windows system. But I still hope, that the openSSL-Team expand the "openssl md5 -sign ..." with a password parameter. (chrismas gift ??? :-) Ronald -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Peter Gesendet: Mittwoch, 1. Dezember 2004 17:13 An: [EMAIL PROTECTED] Betreff: Re: how to sign without password prompt? Its probably because the signing key is encrypted with a symmetric cipher? You're using the "-sign" option and that private key private.txt is probably encrypted, find out with what and then you can use some other openssl function to read in the file and then output it, except output it without the encryption that requires the password. On Dec 1, 2004, at 4:16 AM, Schneider, Ronald wrote: > Hi, > > I'm trying to sign a file without password prompting (under Windows) > > openssl md5 -sign private.txt signature.txt > signed.dat > > (Enter password .....) > > > Then I tried this: > > openssl md5 -passin pass:test -sign private.txt Signature.txt > > signed.dat > > .. and this: > > echo -n test | openssl md5 -sign private.txt Signature.txt > signed.dat > > > but still a password input prompts. > > Mhmmmm - any ideas?? > > With best regards - Ronald. > > > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]