[BUGFIX] Fixed false redirect on certificate download

& Fixed double slashes on temp file path