I cannot wrap my head around why this command does not work:
openssl s_client -connect [fe80::xxxx:xxxx:xxxx:xxxx]:yyyy
Note: I have garbled the link local address above with x
's, but I have some valid link local ipv6 address.
yyyy
is the port number.
I get the error:
1995535248:error:02002016:system library:connect:Invalid argument:../crypto/bio/b_sock2.c:108:
1995535248:error:2008A067:BIO routines:BIO_connect:connect error:../crypto/bio/b_sock2.c:109:
connect:errno=22
I also tried putting single/double quotes, but it resulted in the same error:
openssl s_client -connect '[fe80::xxxx:xxxx:xxxx:xxxx]:yyyy'
I'm using version OpenSSL 1.1.0f, which should have the support for IPv6.
Using IPv4 address, it works.