🌐
blog.cat.ssl

Can you get an SSL certificate for an IP address, and when does it make sense?

25.11.2026
← All articles

Some services run without a domain name, straight on an IP address: an internal warehouse system, an API that point-of-sale terminals post to, or an admin panel on a VPS. The browser warns that the connection is not secure, and the obvious question follows: can you get a free certificate for an IP, the way you would from Let's Encrypt? The answer depends on what kind of IP it is and what you expect from the certificate.

What a certificate actually proves

A certificate tells the browser that the server really controls the name it was reached by. That name is normally a domain stored in the Subject Alternative Name (SAN) field, but the standard also allows an IP address there. The hard part is validation: the certificate authority must confirm the IP belongs to you. For a domain that happens through DNS or a file on the site; for an IP the only option is connecting to the server at that address.

Public vs private IP addresses

Some CAs issue certificates for public, internet-reachable IPs. Commercial CAs have offered this for years, and Let's Encrypt has recently started rolling out IP address certificates alongside its short-lived certificate profile. Validity can be much shorter than the usual 90 days, so only use them with fully automated renewal, and check the CA's official documentation for current terms. Private ranges such as 192.168.x.x, 10.x.x.x and 172.16-31.x.x, as well as 127.0.0.1, can never get a publicly trusted certificate, because industry rules forbid certificates for internal names and reserved addresses.

CasePublicly trusted certificatePractical solution
Public IP (e.g. 203.0.113.10)Offered by some CAsUse a domain if you can
Private IP (192.168.x.x, 10.x.x.x)Not issuedSelf-signed or internal CA
127.0.0.1 (localhost)Not issuedA local tool such as mkcert

For a public IP, remember that DNS-01 validation is impossible, so the CA must reach port 80 or 443 directly, and your ACME client must support IP identifiers.

A self-signed certificate for an internal system

Picture a private school in Samarkand running its gradebook on 192.168.1.50, used only from school computers. A public certificate is not an option, but passwords should still not cross the network in plain text. This command works with OpenSSL 1.1.1 and newer and puts the IP into SAN, which modern browsers require; the CN alone is not enough.

openssl req -x509 -newkey rsa:2048 -nodes \
  -keyout ip.key -out ip.crt -days 365 \
  -subj "/CN=203.0.113.10" \
  -addext "subjectAltName=IP:203.0.113.10"
openssl x509 -in ip.crt -noout -ext subjectAltName
# X509v3 Subject Alternative Name:
#     IP Address:203.0.113.10

Then point the web server at the files:

server {
    listen 443 ssl;
    server_name 203.0.113.10;
    ssl_certificate     /etc/ssl/local/ip.crt;
    ssl_certificate_key /etc/ssl/local/ip.key;
    location / {
        proxy_pass http://127.0.0.1:8080;
    }
}

Browsers will still warn until ip.crt is added to each computer's trusted store. With many devices, create a small internal CA and distribute only its root certificate.

Usually the best answer: use a domain

For a service on a public server, giving it a subdomain is far simpler. Point an A record for panel.example.uz at your VPS and get a normal Let's Encrypt certificate that every device trusts and that renews automatically; if the server IP changes, you only update DNS. If you already own a domain, add the A record in the DNS section of the sayt.uz cabinet.

A name is also easier for people to remember than a string of digits, and it lets you move the service to another server without touching any certificate. Whatever you choose, do not train users to click through browser warnings. They will do the same on a genuinely dangerous site later.

Related articles

🔐 ZeroSSL, Buypass and Other Free SSL Authorities Beyond Let's Encrypt ⚖️ HTTP-01 vs DNS-01: Which ACME Challenge Should You Use? 🔒 How to Fix Mixed Content in WordPress: A Step-by-Step Guide 🔍 Free Tools to Check Your SSL Certificate: From Browser to Terminal
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓