# Localhost lets encrypt

**URL:** <https://community.letsencrypt.org/t/localhost-lets-encrypt/46711>\
**Category:** Help\
**Created:** [November 20, 2017, 7:36pm UTC](https://community.letsencrypt.org/t/localhost-lets-encrypt/46711 "2017-11-20T19:36:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpskierbg](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mpskierbg/32/18140_2.png) [@mpskierbg](https://community.letsencrypt.org/u/mpskierbg)\
**Post date:** [November 20, 2017, 7:36pm UTC](https://community.letsencrypt.org/t/localhost-lets-encrypt/46711/1 "2017-11-20T19:36:27Z")

</div>

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. [https://crt.sh/?q=example.com](https://crt.sh/?q=example.com)), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: i dont know (localhost)?

I ran this command: sudo certbot --apache

It produced this output:  
Saving debug log to /var/log/letsencrypt/letsencrypt.log  
Plugins selected: Authenticator apache, Installer apache  
No names were found in your configuration files. Please enter in your domain  
name(s) (comma and/or space separated) (Enter ‘c’ to cancel): [https://localhost/](https://localhost/)

* * *

One or more of the entered domain names was not valid:

[https://localhost/:](https://localhost/:) Requested name [https://localhost/](https://localhost/) appears to be a URL, not a  
FQDN. Try again without the leading “https://”.

## Would you like to re-enter the names?

(Y)es/(N)o: y  
Please enter in your domain name(s) (comma and/or space separated) (Enter 'c’  
to cancel): localhost/  
Obtaining a new certificate  
An unexpected error occurred:  
The request message was malformed :: Error creating new authz :: Invalid character in DNS name  
Please see the logfiles in /var/log/letsencrypt for more details.

My web server is (include version):

The operating system my web server runs on is (include version): Apache/2.4.18

My hosting provider, if applicable, is: i dont know.

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):no

okay so through these questions I think i already know the answer. I cant use lets encrypt just with my localhost i need to actually have a website up and running. Am I right?

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [November 20, 2017, 7:43pm UTC](https://community.letsencrypt.org/t/localhost-lets-encrypt/46711/2 "2017-11-20T19:43:23Z")

</div>

> [@mpskierbg](#):
>
> okay so through these questions I think i already know the answer. I cant use lets encrypt just with my localhost i need to actually have a website up and running. Am I right?

Hi @mpskierbg, yes, that's right—or at least there needs to be a public domain name that you control that you want to be the subject of the name. Let's Encrypt can't issue certificates for localhost or anything other than a public fully-qualified domain name. (If you search this forum for "localhost", you can find more discussions involving people who wanted certificates to use on their local machines for development purposes, in case that's part of your situation.)

---

<div class="post-metadata">

**Author:** ![ahaw021](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/ahaw021/32/14882_2.png) [@ahaw021](https://community.letsencrypt.org/u/ahaw021)\
**Post date:** [November 20, 2017, 9:31pm UTC](https://community.letsencrypt.org/t/localhost-lets-encrypt/46711/3 "2017-11-20T21:31:44Z")

</div>

some CAs can issue these types of certificates but they are chargeable

[https://www.globalsign.com/en-au/ssl/intranetssl/](https://www.globalsign.com/en-au/ssl/intranetssl/)

---

<div class="post-metadata">

**Author:** ![schoen](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/schoen/32/79_2.png) [@schoen](https://community.letsencrypt.org/u/schoen)\
**Post date:** [November 20, 2017, 10:11pm UTC](https://community.letsencrypt.org/t/localhost-lets-encrypt/46711/4 "2017-11-20T22:11:00Z")

</div>

For an individual user, I don’t think that offers any clear benefit compared to using self-signed certificates.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [December 20, 2017, 10:11pm UTC](https://community.letsencrypt.org/t/localhost-lets-encrypt/46711/5 "2017-12-20T22:11:01Z")

</div>

Closed on December 20, 2017, 10:11pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
