Improved SSL cert handling for Apache