大网数据广告活动
服务器运维问答

SSL/TLS Client Authentication: How to see Acceptable client certificate CA names?

· 52CE 我爱测

I have an HTTPS Service which uses SSL/TLS client authentication and requires a certificate to be presented. How can I get a list of Acceptable client certificate CA names using openssl s_client without presenting a client certif…

问题原文

原帖链接 · Alastair McCormack · CC BY-SA 3.0

I have an HTTPS Service which uses SSL/TLS client authentication and requires a certificate to be presented. How can I get a list of Acceptable client certificate CA names using openssl s_client without presenting a client certificate?

If I try without a client certificate I get the following error:

4967:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:

已采纳解答

原帖链接 · Alastair McCormack · CC BY-SA 3.0

You need to use the -prexit option:

E.g.

openssl s_client -connect server:8443 -prexit

print session information when the program exits. This will always attempt to print out information even if the connection fails. Normally information will only be printed out once if the connection succeeds. This option is useful because the cipher in use may be renegotiated or the connection may fail because a client certificate is required or is requested only after an attempt is made to access a certain URL. Note: the output produced by this option is not always accurate because a connection might never have been established.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-09-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。