Added SSL cert pubkey checking