The certificate isn't saying "this website won't infect your computer", it's saying "you're talking to the real owner of this domain".
The certificate isn't saying "this website won't infect your computer", it's saying "you're talking to the real owner of this domain".