Hi,
I have a question. I think this is the right list, but if it is not,
could someone please direct me in the right direction. Thanks
My problem:
I am running Apache with mod_ssl in conjunction with modules Mod rewrite
and mod proxy . From time to time I need to change the rewrite rules on
this server, so I have a script on a remote box to ssh over to this
server and upload the new rewrite rules. Unfortunately Apache can not be
restarted gracefully in this case, it needs a full shutdown and startup
to load the rules(at least from what I have seen). So what I have
attempted to do was write an Expect script to do the ssh over and
shutdown the server, reload the rules and then attempt to start the
server up again.
The problem comes when I try to restart the server and enter the PEM
pass phrase. I can send the password with expect ,but the server does
not restart at all. Instead I get an error in the logs/ssl-engine file:
[17/Jul/1999 16:44:42] [info] Init: Requesting pass phrase via builtin
terminal
dialog
[17/Jul/1999 16:44:42] [error] Init: Private key not found. (OpenSSL
library err
or follows)
[17/Jul/1999 16:44:42] [error] OpenSSL: error:0D09B08F:asn1 encoding
routines:d2
i_PrivateKey:unknown public key type
I thought that maybe expect was mangling the password, so what I did was
to edit the script and go into interactive mode at the point of where I
would hit a carriage return to enter the pass phrase. (in other words, I
passed the password without a carriage return via expect and went
interactive to enter the \r) and this works fine.
Can anyone give me any clues as to what I am doing wrong or a work
around of some type, or where else I could look for an answer?
Thanks for you time
Scott
[EMAIL PROTECTED]
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]