4

我的问题很简单,只看截图:

Elinks问题

**对于疲倦的眼睛:

-bash-4.1$ cat /etc/*release
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Red Hat Enterprise Linux Server release 6.6 (Santiago)
-bash-4.1$
-bash-4.1$
-bash-4.1$ elinks -version
ELinks 0.12pre5
Built on Jan  4 2013 07:04:04

Features:
Standard, IPv6, gzip, bzip2, UTF-8, Periodic Saving, Viewer (Search
History, Timer, Marks), Cascading Style Sheets, Protocol
(Authentication, BitTorrent, File, FTP, HTTP, URI rewrite, User
protocols), SSL (OpenSSL), MIME (Option system, Mailcap, Mimetypes
files), LED indicators, Bookmarks, Cookies, Form History, Global
History, Goto URL History
-bash-4.1$
-bash-4.1$
-bash-4.1$ elinks -dump -eval 'set connection.ssl.cert_verify = 1' https://10.113.1.104:443/sgc/registro2.asp
ELinks: SSL error
-bash-4.1$
-bash-4.1$
-bash-4.1$ elinks -dump -eval 'set connection.ssl.cert_verify = 0' https://10.113.1.104:443/sgc/registro2.asp
ELinks: SSL error
-bash-4.1$

我不明白为什么 elinks 仍然显示错误 SSL。任何想法?

4

2 回答 2

7

您可以将 elinks 配置为忽略 SSL 验证:编辑 elinks.conf 并将connection.ssl.cert_verify设置更改为0,然后重新启动 elinks。


set connection.ssl.cert_verify = 0

于 2016-10-18T17:20:40.730 回答
0

首先确定

  1. 您的服务器确实在侦听端口 443 并且
  2. 它从/向该端口接收/发送流量。

还要检查您的服务器 (10.113.1.104) 证书的密钥长度;很可能 elinks 需要 2048 位密钥,而您的证书密钥长度小于该长度:

$ echo | openssl s_client -connect 10.113.1.104:443 2>/dev/null | openssl x509 -text -noout | grep "Public-Key"
于 2014-12-30T00:01:14.383 回答