Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I certify website without domain name?

Is it possible to do self signed certification a website without domain name? I have read that let'sencrypt.org does not issue certificate for having no domain name.

like image 271
Aisha atique Avatar asked Jul 14 '18 15:07

Aisha atique


People also ask

Can I publish a website without a domain?

A domain name isn't strictly necessary in order to create a presence on the web. However, having your own domain name gives you control over your online identity and the content you post – and a domain of your own is a must-have for building confidence in your brand or business.

Can I use Letsencrypt without domain?

No, it continues to not be possible from Let's Encrypt.


1 Answers

If you want a certificate from LetsEncrypt that would be trusted by most browsers you need a domain that resolves to your server. LetsEncrypt does not issue certs for IP addresses nor for custom dev-domains like .local.

You can of course create and sign a certificate yourself, for every domain name you want, or even for IP addresses. The domain name can be anything, and doesn't necessarily be the one you use to access the site. The webserver won't mind. Your browser will display a lot of warnings, though (CN mismatch, non-trusted signature-path), but if you skip/ignore those you can access your site via HTTPS.

For local development certificates there also is the tool mkcert, which even makes your browser trust them by adding a local CA.

like image 188
Tobias K. Avatar answered Oct 25 '22 19:10

Tobias K.