# Can't host a subdomain

**URL:** <https://forum.infinityfree.com/t/cant-host-a-subdomain/51580>\
**Category:** Hosting Support\
**Created:** [September 18, 2021, 11:55am UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580 "2021-09-18T11:55:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon21192215](https://forum.infinityfree.com/letter_avatar/anon21192215/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon21192215](https://forum.infinityfree.com/u/anon21192215)\
**Post date:** [September 18, 2021, 11:55am UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/1 "2021-09-18T11:55:58Z")

</div>

### Username (e.g. epiz\_XXX) or Website URL

[wp.softhardsystem.com](http://wp.softhardsystem.com)

### Error Message

# This site can’t provide a secure connection

**[wp.softhardsystem.com](http://wp.softhardsystem.com)** sent an invalid response.

ERR\_SSL\_PROTOCOL\_ERROR

### Other Information

The domain [softhardsystem.com](http://softhardsystem.com) is hosted on Cloudflare Pages and the DNS is managed by Cloudflare. I want to use WordPress as a headless CMS. So, I have added the [wp.softhardsystem.com](http://wp.softhardsystem.com) subdomain to InfinityFree to host WordPress. I have two NS records pointing to [ns1.epizy.com](http://ns1.epizy.com) and [ns2.epizy.com](http://ns2.epizy.com) in the Cloudflare dashboard. I have also installed WP using cPanel Softaculous. But after a successful installation, I see that I can’t access [wp.softhardsystem.com](http://wp.softhardsystem.com). It is showing ERR\_SSL\_PROTOCOL\_ERROR. I think it’s related to SSL but how can I solve the error.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [September 18, 2021, 12:08pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/2 "2021-09-18T12:08:42Z")

</div>

What is your ssl setting on CloudFlare? If it is “Full”, you will need to add a self-signed ssl certificate through the InfinityFree cPanel. You cannot use “Full (Strict)” on InfinityFree.

It looks like you do not have any SSL on your subdomain.

---

<div class="post-metadata">

**Author:** ![anon21192215](https://forum.infinityfree.com/letter_avatar/anon21192215/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon21192215](https://forum.infinityfree.com/u/anon21192215)\
**Post date:** [September 18, 2021, 12:15pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/3 "2021-09-18T12:15:34Z")

</div>

How can I set up a SSL certificate from the cPanel? My current SSL setting on CF is Full (Strict). I have experimented by changing it to Full, Flexible and even Off (not secure). But none of them works. I think I’ll have to install a SSL cert first. But how can I do that from cPanel \> SSL/TLS ? It asks for Key, CSR and Certificate. And if I fill up them using the values I get from Cloudflare \> SSL/TLS \> Origin Certificate \> Create Certficate, it gives an error that `The certificate is not for wp.softhardsystem.com (Cloudflare Origin Certificate was seen)`. What should I do now?

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [September 18, 2021, 12:21pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/4 "2021-09-18T12:21:38Z")

</div>

Go to [app.infinityfree.net/ssls](http://app.infinityfree.net/ssls) and request a SSL certificate for [wp.softhardsystem.com](http://wp.softhardsystem.com) from self-signed.

Go through the same process that you did for the CloudFlare certificate.  
Go to [dash.cloudflare.com](http://dash.cloudflare.com) and change SSL mode to Full. The reason you cannot use Strict is because of

> [@anon21192215](#):
>
> The certificate is not for [wp.softhardsystem.com](http://wp.softhardsystem.com) (Cloudflare Origin Certificate was seen)

because the cPanel does not support a common name that is not the domain name.

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [September 18, 2021, 12:30pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/5 "2021-09-18T12:30:29Z")

</div>

> [@anon21192215](#):
>
> I have two NS records pointing to [ns1.epizy.com](http://ns1.epizy.com) and [ns2.epizy.com](http://ns2.epizy.com) in the Cloudflare dashboard.

That’s not right. Please read this guide an set Cloudflare up correctly.  
Thanks

> [@A Full Guide To Cloudflare](https://forum.infinityfree.com/t/a-full-guide-to-cloudflare/44451):
>
> Hello, I will show you how to easily set up Cloudflare, Edit Records, and Troubleshoot with images! PLEASE READ BEFORE STARTING!!! Cloudflare cannot be used on free subdomains from InfinityFree. You can use Cloudflare on Custom Domains ([yoursite.com](http://yoursite.com)) and with Custom Sub-Domains ([subdomain.yoursite.com](http://subdomain.yoursite.com)). A video tutorial can be found at the end of this guide, should you get stuck. You must connect your domain to your InfinityFree account first. [Read more here](https://forum.infinityfree.com/t/how-to-add-your-own-domain-to-your-account/49227). Set-Up Cloudflare Go to [Dash…](http://Dash.Cloudflare.com)

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [September 18, 2021, 12:34pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/6 "2021-09-18T12:34:40Z")

</div>

> [@wackyblackie](#):
>
> You cannot use “Full (Strict)” on InfinityFree.

Is possible

> [@anon21192215](#):
>
> current SSL setting on CF is Full (Strict).

You definite need an SSL cert, not self-signed cert. Use below as guide

> [@How to get Free SSL (HTTPS) on InfinityFree](https://forum.infinityfree.com/t/how-to-get-free-ssl-https-on-infinityfree/49323):
>
> If you’re using free hosting with your own domain or a subdomain, you’ll want to make your website work over HTTPS (SSL). Fortunately, InfinityFree provides all the tools you need to make it so. If you like videos better then text guides, scroll on down to the bottom of this guide. This guide uses the control panel functions and the Free SSL Certificates tool provided by InfinityFree to get SSL up and running on your site. This article only applies to custom domains Free subdomains (like your…

---

<div class="post-metadata">

**Author:** ![anon21192215](https://forum.infinityfree.com/letter_avatar/anon21192215/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon21192215](https://forum.infinityfree.com/u/anon21192215)\
**Post date:** [September 18, 2021, 1:31pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/8 "2021-09-18T13:31:31Z")

</div>

I just tried what you said. But instead of creating a self-signed cert I installed a ZeroSSL certificate. It has been installed successfully. I have received a Private Key and a Certificate. But when I paste them in the fields by going to cPanel \> SSL/TLS, I’m getting an error. ` The certificate you have entered does not match the current private key.`. What should I do now?

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [September 18, 2021, 1:32pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/9 "2021-09-18T13:32:29Z")

</div>

You should make sure that you uploaded the correct private key. Also, I really suggest using a self-signed certificate for CloudFlare.

---

<div class="post-metadata">

**Author:** ![anon21192215](https://forum.infinityfree.com/letter_avatar/anon21192215/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon21192215](https://forum.infinityfree.com/u/anon21192215)\
**Post date:** [September 18, 2021, 1:48pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/11 "2021-09-18T13:48:30Z")

</div>

I copied the key and pasted it. I have also tried re-pasting them. So, there’s technically no way that I have copied the wrong key. I didn’t use a self-signed cert for the cons it has. But if there’s no other way I will try that.

---

<div class="post-metadata">

**Author:** ![anon21192215](https://forum.infinityfree.com/letter_avatar/anon21192215/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon21192215](https://forum.infinityfree.com/u/anon21192215)\
**Post date:** [September 18, 2021, 1:56pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/12 "2021-09-18T13:56:25Z")

</div>

Thank you @wackyblackie for your help. It’s working now. I forgot to click on the `Upload Key` button! Now, I can access [wp.softhardsystem.com](http://wp.softhardsystem.com). And I have selected Full in the CF dashboard.

---

<div class="post-metadata">

**Author:** ![anon21192215](https://forum.infinityfree.com/letter_avatar/anon21192215/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon21192215](https://forum.infinityfree.com/u/anon21192215)\
**Post date:** [September 18, 2021, 2:04pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/13 "2021-09-18T14:04:58Z")

</div>

Yup! The Full (Strict) mode also is working!!! I think you just need an SSL cert instead of a Self-Signed Cert.

---

<div class="post-metadata">

**Author:** ![anon21192215](https://forum.infinityfree.com/letter_avatar/anon21192215/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon21192215](https://forum.infinityfree.com/u/anon21192215)\
**Post date:** [September 18, 2021, 2:15pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/14 "2021-09-18T14:15:18Z")

</div>

Thank you, man! I just followed your tutorial and now the content is being proxied via CF CDN!

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [September 25, 2021, 2:16pm UTC](https://forum.infinityfree.com/t/cant-host-a-subdomain/51580/15 "2021-09-25T14:16:14Z")

</div>

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