If not, you should be able to script it using expect. The expect tool can be used do script execution of any text based program. autoexpect -p -f start_s_server openssl s_server -key .... [type password when prompted] [make s_server exit normally, NOT control-c. kill from another window is fine] The above should provide a start_s_server script that can be used to start s_server with the encrypted key. -- Henrik Nordstrom MARA Systems Patrick Li wrote: > Hi Lutz, > > I think I will just remove the encryption on the private key file using the > command suggest by Henrik. > > openssl rsa -in key.pem -out key_unprotected.pem > > I wrote a SSL client program and want to use s_server for testing. That'll > help me to automate the testing without typing in the passphrase > interactively. > > Thanks! > Patrick ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]