从jabber服务器获取SSL证书链

试图将我的jabber客户端(pidgin)连接到具有自签名证书的jabber服务器,我得到“无法validation证书”错误。

由于无法告诉客户不要validation链,我想获得证书链以便将其导入到那里。 所以我用:

openssl s_client -connect my.jabber.server.net:5222 </dev/null 

我得到以下答案:

openssl s_client -connect cup1.sprachdienst.fraunhofer.de:5222

 > CONNECTED(00000003) 140472458057376:error:140790E5:SSL > routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:177: > --- no peer certificate available > --- No client certificate CA names sent > --- SSL handshake has read 0 bytes and written 213 bytes > --- New, (NONE), Cipher is (NONE) Secure Renegotiation IS NOT supported Compression: NONE Expansion: NONE > --- 

为什么我的jabber客户端没有获得证书链?

解决方法是:Jabber需要starttls:

 openssl s_client -connect my.jabber.server.net:5222 </dev/null -starttls xmpp 

返回证书

简单的方法,

  1. closuresPidgin
  2. find您的证书文件夹( Windows: %appdata%\.purple )(Linux:/ /home/<Username>/.purple/certificates/x509/tls_peers Windows: %appdata%\.purple / /home/<Username>/.purple/certificates/x509/tls_peers
  3. 删除证书文件夹中的所有内容。
  4. 重新启动pidgin,最终你应该得到一个新的证书。

PS:不熟悉%appdata% Windows用户只需在地址栏中键入%appdata%\.purple并按回车。