ssl - ARM 上基于 libpurple 的连接尝试错误 "SSL peer presented an invalid certificate"

标签 ssl certificate libpurple

我正在使用 libpurple (libpurple.com) 开发聊天应用程序。 在 x86 处理器(台式机)上一切正常

但是,相同的代码在 ARM (iMx Freescale) 处理器上运行时显示错误:

SSL peer 出示了无效证书”,同时登录。

我使用的是 Ubuntu 操作系统。就像在 x86 机器中一样,所有包似乎都适用于 ARM 处理器。 (包括 gnutls 开发包)

任何线索将不胜感激......

最佳答案

我已将问题发布到 pidgin 邮件列表:

Hi all, I am using libpurple (package- 1:2.10.0-0ubuntu2) for developing a chat application. Everything works fine on x86 processor (Desktop - Ubuntu 11.10)

However, the same chat application (after cross-compilation) when run on the ARM (iMx Freescale based on Ubuntu 11.10) processor shows error:

"SSL peer presented an invalid certificate", while logging in.

--1-- All the packages seems to be present for the ARM target just like in the x86 machine. (including gnutls dev package, as mentioned in FAQ http://developer.pidgin.im/wiki/Installing%20Pidgin#IhaveOpenSSLwhyisntPidginusingit).

--2-- I have installed the ca-certificates package (updated it to the newest one in the Ubuntu repository for Ubuntu 11.10), using: 'apt-get install ca-certificates'.

--3-- Also tried copying the contents of "~/.purple/certificates/x509/tls_peers/", from the properly working x86 machine to the target system.

The SSL error still persists after these. Any help in resolving this issue would be highly appreciated. Thanks & Regards, Roy

和某个回复帖子阅读:

-----Original Message----- From: Mark -----er [mailto:ma--@-----nt.net] Sent: Monday, June 11, 2012 8:42 PM To: Roy Samuel (RB--/---4) Cc: support@pidgin.im Subject: Re: Error: SSL peer presented an invalid certificate | running on ARM-ubuntu-11.10

You could try to figure out why Pidgin thinks the certificate is invalid by running with "pidgin -d" to show lots of debug output (I'm a little surprised the error message you're seeing doesn't already say why it's invalid). The two most likely reasons I can think of are either the clock on your ARM computer is wrong, or Pidgin still can't find the CA certificates.

将目标 ARM 板上的日期更改为当前日期后,错误已解决!

关于ssl - ARM 上基于 libpurple 的连接尝试错误 "SSL peer presented an invalid certificate",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10943829/

相关文章:

java - 使用 AndroidKeyStoreProvider 生成证书签名请求的最佳方法是什么?

ssl - Windows 2000 Server/IIS 经典 ASP 页面的临时 SSL?

C# 证书生成框架

c - 为 Adium 包装一个 libpurple 插件

ssl - python-purple 失败,显示 "CRITICAL **: purple_ssl_connect_with_ssl_cn: assertion ' purple_ssl_is_supported( )'"

ssl - 当我与 cassandra 建立 SSL 连接时出现此问题 "Failed to initialize a pipeline"

来自 Git 存储库的 R studio 项目,自签名证书问题

c - C 中动态帐户连接的最佳解决方案?

ssl - 在 SSL 模式下使用 apache kafka

ssl - 领事 dnsmasq 和 tls