Fix permission of certificate files