I generated https certificate using cryptography lib in Python. Will this certificate…
- User
I generated https certificate using cryptography lib in Python. Will this certificate work with plain IP address like https://255.255.255.255 ?
- Assistant
When you generate an HTTPS certificate using the cryptography library in Python (or any other method), it will include a subject and possibly subject alternative names (SANs) that specify the domain names (or IP addresses) that the certificate is valid for.
In general, HTTPS certificates are designed to match domain names, and most publicly trusted Certificate Authorities (CAs) will not issue certificates for plain IP addresses because IP address ownership can change over time. However, it's technically possible to create a self-signed certificate or to use a private CA to issue a certificate that includes an IP address in the SAN.