fixing error in case the site should be absent and illegal certificate information is given