Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to get ssl certificate for ip:port instead of a domain name?

I know we can secure domains like "https://www.abcdef.com" and get the url to appear in green indicating it's secure.

but is it possible to get a valid ssl certificate for url like "https://10.111.121.240:3000". If yes how?

Currently, I am using https://10.111.121.240:3000 but the https in the url is striked out and shown as unsecured. So I cannot get data in ios/ android emulator/ simulator.

like image 420
Chetan Avatar asked Nov 18 '22 00:11

Chetan


1 Answers

As a general rule, NO.

CAs do not issue certificates for IP addresses. As of October 2018, all certificates that were issued for IP addresses were revoked.

Of course as @Dana mentioned you might get a certificate, but it's not going to be cheap.

like image 107
Orestis Zekai Avatar answered Jun 28 '23 01:06

Orestis Zekai