fix typo in string name
provide better error message for CertificateException

addresses #1