fix permissions and path for ssl certificate