You may want to look at the command "apachectl graceful" for step 4. It gets the httpd threads to restart after they finish what they are doing. So it is not too disruptive to existing activity.
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SANDER SMITH Sent: August 23, 2007 9:45 PM To: modssl-users@modssl.org Subject: Adding SSL on-the-fly programmatically I'm looking to do something, but I'm not sure it's even possible. Maybe someone can steer me in the right direction. Let's say that I have a copy of apache running on my server. I also have a brand new SSL certificate that was signed by a CA. I'd like to write some code to programmatically enable SSL on the server by means of mod_ssl. When I think about the steps necessary, I need to: 1. Copy the mod_ssl files to the proper place. 2. Update the mod_ssl config files to point to my SSL certificate. 3. Update the apache config files to recognize and run mod_ssl 4. Cause apache to suddenly start to use mod_ssl Now steps 1,2, and 3 seem pretty straight forward. Step 4 is a huge handwave, and I'm hoping someone can give me some insight. Is it even possible? Does it require apache to be restarted? Is there some programmatic way to get apache to restart?