检查服务器证书,ssl-用于检查服务器是否提供证书的OpenSSL命令

我试图运行openssl命令来缩小尝试从我们的系统发送出站消息时SSL问题的范围。

我在另一个主题中找到了此命令:使用openssl从服务器获取证书

openssl s_client -connect ip:port -prexit

此输出结果为

CONNECTED(00000003)

15841:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:188:

---

no peer certificate available

---

No client certificate CA names sent

---

SSL handshake has read 0 bytes and written 121 bytes

---

New, (NONE), Cipher is (NONE)

Secure Renegotiation IS NOT supported

Compression: NONE

Expansion: NONE

---

这是否意味着服务器不提供任何证书? 我在其他ip:port上尝试了其他系统,它们成功提交了证书。

相互认证是否会通过-prexit影响此命令?

-更新-

我再次执行命令

openssl s_client -connect ip:port -prexit

我现在得到这个回应

CONNECTED(00000003)

write:errno=104

---

no peer certificate available

---

No client certificate CA names sent

---

SSL handshake has read 0 bytes and written 121 bytes

---

New, (NONE), Cipher is (NONE)

Secure Renegotiation IS NOT supported

Compression: NONE

Expansion: NONE

---

我在命令中添加了-ssl3

openssl s_client -connect ip:port -prexit -ssl3

响应:

CONNECTED(00000003)

write:errno=104

---

no peer certificate available

---

No client certificate CA names sent

---

SSL handshake has read 0 bytes and written 0 bytes

---

New, (NONE), Cipher is (NONE)

Secure Renegotiation IS NOT supported

Compression: NONE

Expansion: NONE

SSL-Session:

Protocol : SSLv3

Cipher : 0000

Session-ID:

Session-ID-ctx:

Master-Key:

Key-Arg : None

Krb5 Principal: None

Start Time: 1403907236

Timeout : 7200 (sec)

Verify return code: 0 (ok)

---

还尝试-tls1

CONNECTED(00000003)

write:errno=104

---

no peer certificate available

---

No client certificate CA names sent

---

SSL handshake has read 0 bytes and written 0 bytes

---

New, (NONE), Cipher is (NONE)

Secure Renegotiation IS NOT supported

Compression: NONE

Expansion: NONE

SSL-Session:

Protocol : TLSv1

Cipher : 0000

Session-ID:

Session-ID-ctx:

Master-Key:

Key-Arg : None

Krb5 Principal: None

Start Time: 1403907267

Timeout : 7200 (sec)

Verify return code: 0 (ok)

---

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值