ßáÇæÏ ÝáíÑ CloudFlare ÊæÞÝ AutoSSL ÚäÏ ÇáÊæáíÏ ÇáÊáÞÇÆí ááÔåÇÏÉ
An error occurred the last time AutoSSL - AutoSSL not working with CloudFlare
How to Repair the DNS DCV Error in cPanel - How to Use AutoSSL with Cloudflare
How to solve problem renewing SSL certificate when using cPanel AutoSSL and Cloudflare
how to use SSL and Cloudflare at the same time.



------------------------------------------------------------------
ÇáãÔßáÉ :
------------------------------------------------------------------
ÔåÇÏÉ ssl ÊæáÏ ÊáÞÇÆíÇ ÈÔÑØ Çä íßæä dns ãæÌå Çáì Çí Èí ÇáÓíÑÝÑ
æáßä ßáÇæÏ ÝáíÑ íÓÊÎÏã ÈÑæßÓí Çì íÎÝì ÇáÇí Èí æíÖÚ Çì Èì ÇÎÑ
æÈÇáÊÇáì áÇ íãßä ÊæáíÏ ÔåÇÏÉ ÊáÞÇÆíÇ

æåíÊØáÈ ßá 3 ÔåæÑ Úãá pause ááßáÇæÏ ÝáíÑ Úáì ÔÇä ÇáÈÑæßÓí íÞÝ
Ëã ãä ÏÇÎá ÇáÓí ÈÇäíá ÊæáÏ ÇáÔåÇÏÉ ãÑÉ ÇÎÑí æåíÚãá 100 %
æßÑÑ Ðáß ßá 3 ÔåæÑ

ÇáÍá ÇáÏÇÆã :
- åæ ÊÑÞíÉ ÇáÌÓÇÈ ÇáãÌÇäì Çáì ÇáãÏÝæÚ ãä ßáÇæÏ ÝáíÑ
- íæÌÏ ÏÇÎá ÇáßáÇæÏ ÝáíÑ ÇáÛÇÁ ÇÌÈÇÑ https Ýì ÇáÊæÌíå æåæ ÇáÍá ÇáæÍíÏ ÇáãÌÇäì
æåíÝÖá ÇáÍãÇíÉ ÊÚãá æáßä ÑæÇÈØ http áä ÊÍæá ÊáÞÇÆíÇ Çáì https
æÎÇÕÉ ÇÐÇ ßÇä áÏíß ãÞÇáÇÊ ÈåÇ ÕæÑ ÈÇáÇãÊÏÇÏ http
æÇíÖÇ ÇÐÇ ßÇä áÏíß ÝÇíÑææá ÞÏ íæÞÝ autossl

- Çæ ÚÏã ÇÓÊÎÏÇã ÔåÇÏÉ ÇáÓí ÈÇäíá !!!

äÚã íãßäß Ðáß ÍíË Çä ÇáßáÇæÏ ÝáíÑ íÓÊÎÏã ÔåÇÏÉ ãÞÏãå ãä ÎáÇáå ÊáÞÇÆíÇ
æáÇ íÓÊÎÏã ÇáÓí ÈÇäíá ÇØáÇÞÇ , æáßä ÇáãÔßáÉ Çáì åÊæÇÌåß åì Ýì ÇáÇíãíáÇÊ
æÍáåÇ æÖÚ Ýì ÇÚÏÇÏÇÊ ÇáÎÇÏã ÇÓã ãæÞÚ ÇáÓíÑÝÑ Çáì Èå ÔåÇÏÉ ssl ãä ÇáÓí ÈÇäíá

--------------------------------------------------------------------------

Im using CloudFlare and WHM AutoSSL can not verify domain name.
I have errors like:

DNS DCV: The DNS query to “_cpanel-dcv-test-record.companyname.com” for the DCV challenge returned no “TXT” record that matches the value “_cpanel-dcv-test-record=zDMyqFvxp3hhaPE”.; HTTP DCV: “cPanel (powered by Sectigo)” forbids DCV HTTP redirections.
A temporary solution is to "Pause Cloudflare on Site" (Cloudflare), run again "AutoSSL" (cPanel), and then "Enable Cloudflare on Site" (Cloudflare).
Any better solution with AutoSSL and CloudFlare?

Notes:
Iam using Full encryption mode at Cloudflare (Encrypts end-to-end, using a self signed certificate on the server)


------------------------------------------------------------------
Íá ÇáãÔßáÉ ÏÇÆã " áßä ÇÍíÇäÇ áÇ íÚãá "
------------------------------------------------------------------

áãÇÐÇ ÇÍíÇäÇ áÇ íÚãá ¿ áÇäå ÇÐÇ ßÇä áÏíß ãáÝ htaccess ÈÏÇÎáå ßæÏ íÞæã ÈÚãá Force HTTPS Redirect
ãËá : ÇÖÇÝÉ ÇáææÑÏÈÑíÓ All In One WP Security ÊÖÚ ÇßæÇÏ ÊãäÚ ÇáÊÍæíá Ýì htaccess
áÐáß åÊÊæÞÝ ÔåÇÏÉ ssl Úä ÇáÊæáíÏ áÊæÞÝ ÇÊÕÇáåÇ http Ýì åÐå ÇáÍÇáÉ ãÚ ÇáßáÇæÏ ÝáíÑ



1- Þã ÈÇáÛÇÁ Force HTTPS Redirect Ýåì ÊãäÚ ãä ÊæáíÏ ÇáÔåÇÏÉ ÈÇáÇÊÕÇá ãÚ ßáÇæÏ ÝáíÑ




2- Þã ÈÇáÛÇÁ Always Use HTTPS ãä ÇáãÓÇÑ Edge Certificates tab -> SSL/TLS
Click the slider to disable the Always Use HTTPS option



You should leave this option disabled permanently. If you want to enforce HTTPS usage on your site, you can use .htaccess redirects as described in this article. Alternatively, if you are using WordPress, you can enforce HTTPS usage as described in this article.



SSL certificate renewals should now complete successfully. However, if they still fail, check the following settings in Cloudflare:


  • Automatic HTTPS Rewrites: This option is located on the Edge Certificates tab of the SSL/TLS section in Cloudflare. If it is enabled, disable it temporarily for SSL renewals.
  • SSL/TLS encryption mode: This option is located on the Overview tab of the SSL/TLS section in Cloudflare. If Full (strict) mode is enabled, set it instead to Full mode temporarily for SSL renewals.


https://www.hostens.com/knowledgebas...ssl-on-cpanel/
https://www.hostens.com/knowledgebas...osting-cpanel/

------------------------------------------------------------------
Íá ÇáãÔßáÉ ÇáÏÇÆã ÝÚÇá " ÊËÈíÊ ÔåÇÏÉ ßáÇæÏ ÝáíÑ 15 ÓäÉ " :
------------------------------------------------------------------

Installing Cloudflare SSL on cPanel

If you do not want to purchase a commercial certificate or use the free Let’s Encrypt SSL, you can install Cloudflare SSL on your hosting plan. In this lesson, you will learn how to do this.
1) Log in to your Cloudflare system, select your domain. Click on the SSL/TLS icon -> Pick Origin Server tab -> Click Create button:

2) Settings should be the following:
– Generate private key and CSR with Cloudflare;
– Make sure your domain is indicated in Hostnames;
– Certificate Validity 15 years (Optional).
Click Create button:

3) Copy-paste Origin Certificate and Private Key. You will need this information to install SSL on your server. The Key format should be PEM:

4) You will also need CA Bundle to establish the full chain of trust. You can download the Cloudflare CA root certificate on this page. You will see two options there:
– Cloudflare Origin ECC PEM (do not use with Apache cPanel)
– Cloudflare Origin RSA PEM <- THIS IS THE ONE YOU NEED TO DOWNLOAD
As a result, you will have 3 pieces of SSL:
1) Private Key;
2) Certificate or CRT (Origin Certificate);
3) Certificate Authority Bundle or CABUNDLE (Cloudflare Origin RSA PEM).
The SSL installation on cPanel takes place according to this tutorial.
IMPORTANT
For SSL to work correctly, you will need to make sure that your domain’s type A record is Proxied on your Cloudflare DNS zone:

Also, you will need to enable Full (strict) SSL/TLS encryption in Cloudflare SSL/TLS -> Overview section:


ãáÍæÙÉ åÇãÉ : áÇ ÇäÕÍ ÈÊÝÚíá Full Strict áÇäåÇ ÊÚØá ÇáãæÞÚ ÝìÇ ßËíÑ ãä ÇáÇæÞÇÊ
ÇÐÇ æÌÏÊåÇ ÊÚãá !!! Þã ÈÝÊÍ ÇáãæÞÚ áãÏÉ ÇÓÈæÚ Úáì ÇæÞÇÊ ãÎÊáÝÉ åÊÌÏå ÊÚØá æÊæÞÝ áÐáß ÇäÊÈå ãäåÇ !!!
áÐáß ÇÌÚáåÇ full ÝÞØ
That’s it! Congrats on installing Cloudflare SSL for your domain:




Installing a certificate on the shared hosting
1. Choose Services > Web Hosting and then choose your Shared Hosting package and select “SSL/TTL Status”. If any certificate is already installed, press “Exclude from AutoSSL”:

2. Go back to the main menu and select “SSL/TTL”. Click on the last link “Manage SSL sites” and select a domain:

3. Go down to the paragraph “Install an SSL Website”:

4. Paste all saved keys. If CRT is correct you will see this notification:

5. After pasting just press a button “Install Certificate”. If everything goes correctly, you see this message:



Once this is done, you will have to wait a bit and your certificate will be installed.
You will be able to check it with 3rd party tools like

https://www.sslshopper.com/ssl-checker.html




------------------------------------------------------------------
Íá ÇáãÔßáÉ " ÇáãÄÞÊ" :
------------------------------------------------------------------



ÇáÈÇÞÉ ÇáãÌÇäíÉ ãä ßáÇæÏ ÝáíÑ áÇ ÊÓãÍ áß ÈÇÓÊÎÏÇã ÔåÇÏÉ ssl ãÏãÌÉ
ÇáÇ Ýì ÇáÈÇÞÉ ÇáãÏÝæÚÉ , æÇáÈÏíá Úãá pause ááßáÇæÏ ÝáíÑ Ëã ÇáÐåÇÈ Çáì cpanel
æÇáÖÛØ Úáì autossl æÈÚÏ ÊæáíÏ ÇáÔåÇÏÉ ÑÌÚ ÇáßáÇæÏ ÝáíÑ ááÚãá ãÑÉ ÇÎÑí.
* ãáÍæÙÉ ÊæáíÏ ÇáÔåÇÏÉ Èíßæä ßá 3 ÔåæÑ

íãßäß Úãá Pause Çæ ÊÍæíá ÇáÇíÞæäÇÊ ÇáÈÑÊÞÇáì Çáì ÇáÑãÇÏí
æåäÇ åíßæä ÌãíÚåÇ æåì ÊÞÑíÈÇ 10 íÌÈ ÌÚáåÇ dns only Çì æÖÚ ÇáÑãÇÏí
ÍíË ÔåÇÏÉ ssl ÊæáÏ ÇáßËíÑ ãä subdomains ãÚåÇ ÇíÖÇ æíÌÈ ÌãíÚåÇ Çä íÊã Úãá ssl
ãáÍæÙÉ : ÓæÇÁ ÌÚá ÇáÇíÞæäÉ ÑãÇÏì Çæ Úãá pause
ßáÇåã íæÞÝ ÇáÈÑæßÓí æÈÇáÊÇáì íÙåÑ ÇáÇì Èì ÇáÍÞíÞì æåíÔæÝ ÇáÓíÑÝÑ
áÇ íæÌÏ ÇäÊÙÇÑ 24 ÓÇÚÉ æáÇ ÊÛííÑ dns æáÇ ÊæÞÝ ÇáãæÞÚ ... ÝÞØ ÊæÞÝ ÇáÈÑæßÓí
æÌÚá ÇáãæÞÚ ãæÌå ááÏì Çä ÇÓ ãÈÇÔÑ ÇáÎÇÕ Èß æÚãá ãä äÝÓå ÊÚØíá ãÄÞÊ áÌãíÚ ÇÚÏÇÏÊ cf
æÝì ÇáÍÇáì ÇÐåÈ ÇÚãá auto renew Ëã ÇÑÌÚ ÇÚãá resume Ýì ßáÇæÏ ÝáíÑ
Ýì ãäÊåì ÇáÓåæáÉ.


------------------------------------------------------------------
How to Address the Error
------------------------------------------------------------------

We have several options in addressing this problem.
We can purchase a stand-alone SSL certificate

We can use Cloudflare’s SSL Option without AutoSSL

We can use the cPanel SSL option without Cloudflare

We can temporarily pause Cloudflare and then update the AutoSSL certificate


We choose option 4 in this case. Addressing this problem is pretty straightforward.

Step 1. Pause Cloudflare

We begin by logging into the cloudflare.com dashboard that controls the DNS for the domain and pauses Cloudflare for a moment.
In the top left, go to “Overview.” Then find the “Advanced Options” section, and in the bottom right, click on “Pause Cloudflare on Site.”



Step 2. Run AutoSSL


Once we have accomplished this, we can rerun AutoSSL to issues the certificate. This will ensure our domain passes Domain Control Validation.
Using AutoSSL in WHM-Cpanel
While we are on this topic, we will demonstrate how to use the AutoSSL feature in WHM.

  1. First login to your server WHM.

2. In the search bar type “autossl” and click on “Manage AutoSSL”
3. This will take us to a new screen. In that screen locate the “Manage Users” tab.
4. Find the cPanel user for your domain on the right and click on check “example” in blue.
5. It will now issue an SSL for the domain.



Great! We just renewed the SSL.
Verify SSL

So, where do we go to verify it actually worked? We will check the logs, of course!

  1. Go back to the “Manage AutoSSL” option in WHM.

2. Click on the “Logs” tab in the middle.
3. Click on “Refresh” so you can see the latest logs.
4. Click on the latest log available.
5. Click on “View Log”, to view the log you selected.
The output of the log is usually long, but it will show an entry something akin to the following entry at the very bottom of the log.
The certificate is available. The system will now attempt to install it.
12:49:02 PM SUCCESS The certificate is now installed!



ãÇÐÇ íÍÏË ÇÐÇ áã ÊÌÏÏ ÔåÇÏÉ ssl ¿


åíÙá ÇáÊÔÝíÑ ßãÇ åæ íÚãá Èíä ÇáÚãíá æ ßáÇæÏ ÝáíÑ ãäÇ äÇÍíÉ
æáßä ãä äÇÍíÉ ÇáßáÇæÏ ÝáíÑ æ ÇáÓíÑÝÑ áÇ íÚãá ÇáÊÔÝíÑ
æÈÇáÊÇáì ÇÐÇ ßÇä ÇáÊÔÝíÑ åÇã ØÈÞ ÇáÔÑÍ Ýì ÇáÇÚáì
æáÇ íæÌÏ Íá ÇÎÑ ÇáÇ ÈÇáÏÝÚ ÈÇÞÉ business æåì ÛÇáíÉ

Conclusion

The free SSL from WHM should be renewed every 3 months. The other workaround would be ordering a paid SSL for one year. If we choose to order an SSL to avoid having to do this every 3 months we have 2 options.

  • Standard SSL that covers your domain.com and the subdomain www.domain.com for $50/Year.
  • A Wildcard SSL. This SSL will cover your main domain and any subdomain for $150/Year.


https://www.sslshopper.com/ssl-checker.html

ÇáãÑÌÚ:
https://www.a2hosting.com/kb/add-on-...nabled-domains
https://support.cpanel.net/hc/en-us/...PS-Redirection
https://forums.cpanel.net/threads/au...dflare.678069/
https://www.liquidweb.com/kb/how-to-...ror-in-cpanel/
https://maevelander.net/how-to-solve...nd-cloudflare/
https://www.namecheap.com/support/kn...led-in-cpanel/
https://webmasters.stackexchange.com...loudflares-ssl
https://www.indowhiz.com/articles/en...-cdn-problems/
https://community.cloudflare.com/t/h...dflare/68798/3
https://support.cpanel.net/hc/en-us/...PS-Redirection