Added realpath() for cert files