agl / xmpp-client

An XMPP client with OTR support
BSD 3-Clause "New" or "Revised" License
365 stars 71 forks source link

Failed to verify TLS certificate #88

Closed samer closed 9 years ago

samer commented 9 years ago

I'm using go1.4.2 darwin/amd64.

 * (10:49PM) Making TCP connection to jabberd.jabber.ccc.de.:5222
 * (10:49PM) Starting TLS handshake
 * (10:49PM) SSL/TLS version: TLS 1.2
 * (10:49PM) Cipher suite: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
 * (10:49PM) Failed to connect to XMPP server: xmpp: failed to verify TLS certificate: x509: certificate signed by unknown authority (possibly because of "x509: cannot verify signature: algorithm unimplemented" while trying to verify candidate authority certificate "CA Cert Signing Authority")

Ideas?

rmoore commented 9 years ago

Looks like you don't have the CAcert root certificate installed on your system (I don't believe it's included by default). http://wiki.cacert.org/FAQ/ImportRootCert#Mac_OS_X

samer commented 9 years ago

Thanks Reese, that worked out. It's a new machine and I hadn't installed CAcert root cert yet. What's weird is that Adium connected just fine, even though "strict certificate checks" was on. Anyway, thanks again!

superryanguo commented 7 years ago

how to handle the same issue on Ubuntu? $ uname -a Linux ubuntu-16 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux $ ./xmpp-client Password for ppabb_189@0nl1ne.cc (will not be saved to disk):