Subject: | ip_in_cn not working with IPv6 address |
Hi
I found some issues with IO::Socket::SSL when we are adding IPv6 address to Common Name of the certificate.
if ( $identity eq $commonName ) {
return 1 if
$scheme->{ip_in_cn} == 4 ? length($ipn) == 4 :
$scheme->{ip_in_cn} == 6 ? length($ipn) == 8 :
1;
}
1. Here ip_in_cn == 1 is not handled.
2. length($ipn) is 16 byte in case of IPv6.
Best Regards,
Tamas Kelemen