fix paths for cert and key