Support optional server certificate name checking. Bug 1479