Fixing SSL cert auth