SSL cert does not work with IP address for SAN
You're using the wrong SAN type – only actual domain names are allowed in "DNS" type SANs; for IP addresses there is the "iPAddress" type ([7] OCTET STRING
).
For OpenSSL you can use:
subjectAltName=IP:192.168.1.50
subjectAltName=IP:2001:db8:1234::4567
You have to add your IP Address to SAN. This code working for me. Add your IP Address like this.
[alternate_names]
IP.1 = 127.0.0.1