问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
