apache2 - SSLSessionCache running but not working
Solution 1:
I'm not familiar with Debian Squeeze, but here are somethings to try:
Try connecting using openssl with the reconnect
flag which use the same session 5 times:
openssl s_client -connect your.server.com:443 -state -reconnect
and see what you get. Look for Session-ID
& "Reused."
Other things to rule out:
- A shot in the dark, but can you replace
${APACHE_RUN_DIR}
with the actual path and see if that helps ... ? - Rule out write permissions (unlikely, but still) to the
ssl_*
files you note above by the user running apache.
Solution 2:
Mounting tmpfs on /dev/shm and replacing ${APACHE_RUN_DIR} with /dev/shm/apache in fixed it for me:
grep shm /etc/apache2/mods-enabled/ssl.conf
#SSLSessionCache shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
SSLSessionCache shmcb:/dev/shm/apache_ssl_scache(512000)