self-signed-ssl icon indicating copy to clipboard operation
self-signed-ssl copied to clipboard

Support for IP addresses in 'Subject Alternative Names?'

Open jckefan opened this issue 2 years ago • 2 comments

The script works great as-is, however, when creating the certs, the script only asks for (sub)domains not for an IP address. As such, when I try to access HTTPS IP address URL, I get expected 'NET::ERR_CERT_COMMON_NAME_INVALID' HTTPS error.

Although I'm not a programmer, I read that the script only has SAN="${SAN}DNS.${i} = ${u// /}"$'\n' not something like SAN="${SAN}IP.${i}...

If you wouldn't mind, would you be able to add support for IP address in Subject Alternative Names, thanks.

jckefan avatar Jan 30 '22 12:01 jckefan

For now, I solved the issue with alternative script.

jckefan avatar Feb 01 '22 04:02 jckefan

@jckefan I am planning to focus more attention on a newer project: Acert. This utility provides the ability to parse IP addresses from a --san argument.

The best option for this script may be to add an explicit option for IP addresses. I am a bit short on time at the moment, but will consider this when I do have more time available.

lstellway avatar Feb 02 '22 00:02 lstellway