Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: fatihalp on September 09, 2018, 12:07:11 AM

Title: AutoSSL is not working with DigitalOcean DNS
Post by: fatihalp on September 09, 2018, 12:07:11 AM
I want to install SSL with new SSL sertifcates screen

1- I'm testing pure HTML site without htaccess file.
2- Site is working with in it's domain. But it's giving this error:

"DNS of your domain doesn't point to this server or you have htaccess restrictions"

Digitalocean DNS IP address is NOT directly pointing my server IP. I think because of CWP thinks this domain is not pointing this server. I couldn't migrate to new server because of problem.

Best Regards, Thanks
Title: Re: AutoSSL is not working with DigitalOcean DNS
Post by: Sandeep on September 09, 2018, 09:06:10 AM
you need to have direct ip pointing DNS service
Title: Re: AutoSSL is not working with DigitalOcean DNS
Post by: fatihalp on September 09, 2018, 12:22:02 PM
None of DNS services (AWS, Google, Cloudflare etc) pointing directly to server.

It was working couple months ago. I believe if CWP does not check DNS it will work.
Title: Re: AutoSSL is not working with DigitalOcean DNS
Post by: bullten on September 09, 2018, 01:04:05 PM
Does the below command issue SSL. Replace yourdomain.com with your original domain name. What is output of this command below? Also when it ends you see your SSL files under /root/.acme.sh/cwp_certs 

sh /root/.acme.sh/acme.sh --home /root/.acme.sh/cwp_certs --issue -d www.yourdomain.com -d yourdomain.com -w /usr/local/apache/autossl_tmp --debug 2
Title: Re: AutoSSL is not working with DigitalOcean DNS
Post by: fatihalp on September 09, 2018, 03:47:55 PM
I think it's working but I can't access via https maybe I need configuration in Apache for SSL


See logs:
https://gist.github.com/fatihalp/e0bba91978f9d49c1f344d3cf245d2aa

[Sun Sep  9 15:43:41 UTC 2018] Cert success.


Quote from: bullten on September 09, 2018, 01:04:05 PM
Does the below command issue SSL. Replace yourdomain.com with your original domain name. What is output of this command below? Also when it ends you see your SSL files under /root/.acme.sh/cwp_certs 

sh /root/.acme.sh/acme.sh --home /root/.acme.sh/cwp_certs --issue -d www.yourdomain.com -d yourdomain.com -w /usr/local/apache/autossl_tmp --debug 2
Title: Re: AutoSSL is not working with DigitalOcean DNS
Post by: fatihalp on September 09, 2018, 04:46:41 PM
I've configured Apache for SSL in vhost httpS it's working! Thanks @bullten !

Now we're sure that letsencryt will work CWP will not check DNS.
Title: Re: AutoSSL is not working with DigitalOcean DNS
Post by: bullten on September 10, 2018, 02:08:05 AM
Perfect :D
Title: Re: AutoSSL is not working with DigitalOcean DNS
Post by: fatihalp on September 22, 2018, 09:49:13 PM
Solved: Real problem was DNS cache. Suggest to use : https://developers.google.com/speed/public-dns/cache