Red Hat Bugzilla – Bug 601612
s_server doesn't listen for ipv6 connections
Last modified: 2011-05-19 07:47:40 EDT
Description of problem:
I cannot connect to s_server with s_client using IPv6 address (or host resolved as IPv6 adress)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Have two IPv6 enabled machines, generate pem for s_server, add server with ipv6 address to /etc/hosts
1. openssl s_server
2. openssl s_client -host server
socket: Connection refused
Connection successful as with IPv4
Proposed blocker as IPv6 is a RHEL6 feature
I don't think this is a blocker. Openssl s_server is just a debugging tool for testing interoperability of various TLS clients with the openssl TLS server. It has no ability to listen on two addresses simultaneously. If you configure the server host with IPv6 addresses only (including the loopback) it should work.
The only feasible way how to fix this is to add a new option which would cause it to listen only on a specified address.
Proposing for 6.1 according to comment #2
I've made the s_server to listen on the IPv6 wildcard if available which automatically makes it to accept the IPv4 connections as well.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.