Socket: Check if certertificate file exists before using it.