This needs to be refactored to use the new CertificateValidator class, see how IrcProtocolManager and TwitterProtocolManager use it.