# Its there any full tutorial or blog to setup certbot on xampp server ubuntu server in aws ec2

**URL:** https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155
**Category:** Help
**Created:** [November 11, 2023, 5:50am UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155 "2023-11-11T05:50:42Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![KuyaGit](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KuyaGit](https://community.letsencrypt.org/u/KuyaGit)
#### Post date: [November 11, 2023, 5:50am UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/1 "2023-11-11T05:50:42Z")

</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. [crt.sh | 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: pesosanjuan.online

I ran this command: sudo certbot --apache

It produced this output:Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:  
Domain: pesosanjuan.online  
Type: unauthorized  
Detail: 2a02:4780:1d:7a31:945c:f224:5995:b01e: Invalid response from [http://pesosanjuan.online/.well-known/acme-challenge/zr28QpxahJMxs4PUto90yEEzJr\_kaJ45k9ztuqUe6uY:](http://pesosanjuan.online/.well-known/acme-challenge/zr28QpxahJMxs4PUto90yEEzJr_kaJ45k9ztuqUe6uY:) 404

My web server is (include version):

The operating system my web server runs on is (include version):  
Ubuntu 22.04  
My hosting provider, if applicable, is:  
Ec2 Instance  
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):

The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you're using Certbot): certbot 1.21.0

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 9:03am UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/3 "2023-11-11T09:03:40Z")

</div>

Hi @KuyaGit, and welcome to the LE community forum 🙂

You mention `AWS EC2`, but I only see `Hostinger` IP addresses:

```plaintext
Name: pesosanjuan.online
Addresses: 2a02:4780:1d:ad20:c53a:46df:1142:bd91
           191.101.104.68

```

[ARIN Whois/RDAP - 2a02:4780:1d:ad20:c53a:46df:1142:bd91](https://search.arin.net/rdap/?query=2a02%3A4780%3A1d%3A7a31%3A945c%3Af224%3A5995%3Ab01e)  
[ARIN Whois/RDAP - 191.101.104.68](https://search.arin.net/rdap/?query=191.101.104.68)

---

<div class="post-metadata">

### Author: ![KuyaGit](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KuyaGit](https://community.letsencrypt.org/u/KuyaGit)
#### Post date: [November 11, 2023, 1:12pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/4 "2023-11-11T13:12:03Z")

</div>

Thank you for welcoming me. What will I do

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 1:15pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/5 "2023-11-11T13:15:40Z")

</div>

Check that you have entered the correct Internet IP for your system.  
From your server, what do these show?:

# `curl -4 ifconfig.io`

# `curl -6 ifconfig.io`

---

<div class="post-metadata">

### Author: ![KuyaGit](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KuyaGit](https://community.letsencrypt.org/u/KuyaGit)
#### Post date: [November 11, 2023, 1:22pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/6 "2023-11-11T13:22:20Z")

</div>

I already get the certificates but can you send me a link or blog how i will setup that on xampp server ubuntu. Thank you very much

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 1:24pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/7 "2023-11-11T13:24:56Z")

</div>

This is not a place to find such a link/blog.  
That said, `XAMPP` uses `Apache` and enabling a secure site on that is straight forward.  
What do these show?:  
`sudo apachectl -t -D DUMP_VHOSTS`  
`certbot certificates`

---

<div class="post-metadata">

### Author: ![KuyaGit](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KuyaGit](https://community.letsencrypt.org/u/KuyaGit)
#### Post date: [November 11, 2023, 1:27pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/8 "2023-11-11T13:27:26Z")

</div>

> [@rg305](#):
>
> sudo apachectl -t -D DUMP\_VHOSTS

 ![image](https://global.discourse-cdn.com/letsencrypt/original/3X/2/c/2c6cb4bef1384c0b2ae74bbae119f4788986364d.png)

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 1:28pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/9 "2023-11-11T13:28:20Z")

</div>

The site is already secured.  
What are you missing?

Maybe the "`www`" is missing from the secured vhost...  
What names are on the cert?:  
`certbot certificates`

---

<div class="post-metadata">

### Author: ![KuyaGit](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KuyaGit](https://community.letsencrypt.org/u/KuyaGit)
#### Post date: [November 11, 2023, 1:28pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/10 "2023-11-11T13:28:25Z")

</div>

> [@rg305](#):
>
> certbot certificates

 ![image](https://global.discourse-cdn.com/letsencrypt/original/3X/2/9/290d42339cd30ad75bc0d5c3f404ebc0bc537ee0.png)

---

<div class="post-metadata">

### Author: ![KuyaGit](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KuyaGit](https://community.letsencrypt.org/u/KuyaGit)
#### Post date: [November 11, 2023, 1:29pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/11 "2023-11-11T13:29:46Z")

</div>

![image](https://global.discourse-cdn.com/letsencrypt/original/3X/0/d/0df3e5add07765667e9ff329bcafc3e32ae69c89.png)  
ERR\_SSL\_PROTOCOL\_ERROR

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 1:30pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/12 "2023-11-11T13:30:17Z")

</div>

OK , the "`www`" name is NOT in the certificate.  
If you intend on using that name, you will have to replace that cert with a cert that has both names on it:

- `pesosanjuan.online`
- `www.pesosanjuan.online`

---

<div class="post-metadata">

### Author: ![KuyaGit](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KuyaGit](https://community.letsencrypt.org/u/KuyaGit)
#### Post date: [November 11, 2023, 1:33pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/13 "2023-11-11T13:33:29Z")

</div>

![image](https://global.discourse-cdn.com/letsencrypt/original/3X/9/9/999c5a8eaea177b861fb3fd564aee45dfd9cd5fd.png)

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 1:33pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/14 "2023-11-11T13:33:33Z")

</div>

That error is unexpected.  
hmm...

Is there any NAT / port mapping in place?  
What shows?  
`netstat -pant | grep -i listen | grep :443`

---

<div class="post-metadata">

### Author: ![MikeMcQ](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mikemcq/32/52772_2.png) [@MikeMcQ](https://community.letsencrypt.org/u/MikeMcQ)
#### Post date: [November 11, 2023, 1:35pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/15 "2023-11-11T13:35:29Z")

</div>

The port 443 virtual host looks incomplete. SSL is not enabled

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 1:35pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/16 "2023-11-11T13:35:30Z")

</div>

The server is using both names, but the cert does not have both names on it.  
See the "subject alternative name" section:  
[crt.sh | 11065837845](https://crt.sh/?id=11065837845)

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 1:37pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/17 "2023-11-11T13:37:33Z")

</div>

Good catch @MikeMcQ!

@KuyaGit, how was that secure vhost created?

---

<div class="post-metadata">

### Author: ![KuyaGit](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KuyaGit](https://community.letsencrypt.org/u/KuyaGit)
#### Post date: [November 11, 2023, 1:40pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/18 "2023-11-11T13:40:07Z")

</div>

what other things that i need to set?

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 1:41pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/19 "2023-11-11T13:41:18Z")

</div>

Everything related to TLS is missing from that vhost.  
Is this the first site you secure?

---

<div class="post-metadata">

### Author: ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)
#### Post date: [November 11, 2023, 1:43pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/20 "2023-11-11T13:43:07Z")

</div>

Here is a very rough example found on the Internet:

```plaintext
<VirtualHost *:443>
DocumentRoot "C:\xampp\htdocs\www.example.com"
ServerName www.example.com
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
</VirtualHost>

```

See the three lines that start with "SSL"?

---

<div class="post-metadata">

### Author: ![KuyaGit](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@KuyaGit](https://community.letsencrypt.org/u/KuyaGit)
#### Post date: [November 11, 2023, 1:43pm UTC](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155/21 "2023-11-11T13:43:36Z")

</div>

Yes I'm currently college. I appreciate you and Mike

[Next page](https://community.letsencrypt.org/t/its-there-any-full-tutorial-or-blog-to-setup-certbot-on-xampp-server-ubuntu-server-in-aws-ec2/208155.md?page=2)
