Issue rewrite a SSL directive in easyapache

melveg

Registered
Nov 15, 2018
2
0
1
Managua
cPanel Access Level
Root Administrator
Hi.. My name is melvin vega... We have a dedicated server with cpanel installed and we use easyapache 4. I have been using the easyapache documentation to some some things.. but with this issue is not enought.. because is very specific.

I am using certbot to generate my certs. the i just enable the include ssl file for the respective domain and i add the lines:

SSLCertificateFile /etc/letsencrypt/live/domain.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.org/privkey.pem

The i restart apache.. but apache doesnt restart.. because of this line in the httpd.conf

SSLCertificateFile /var/cpanel/ssl/apache_tls/domain.org/combined

Is some king of conflict. I just thought that when you use include files.. you could rewrite the directives... For example if you use DocumentRoot in the include file you rewrite the path without problems... but in the case of SSLCertificateFile is not working...

Please i really need help with this.. there is a way to solve this... Thanks in advance
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
7,940
630
263
Houston
cPanel Access Level
DataCenter Provider
Hi @melveg


First of all I am curious is there a reason as to why you're using certbot rather than the Let's Encrypt provider via WHM?

Troubleshooting certbot installations isn't something necessarily supported by cPanel but it might be worth it to find out if when you modified the include for apache did you also rebuild the apache configuration file?
 

melveg

Registered
Nov 15, 2018
2
0
1
Managua
cPanel Access Level
Root Administrator
Hi @melveg


First of all I am curious is there a reason as to why you're using certbot rather than the Let's Encrypt provider via WHM?

Troubleshooting certbot installations isn't something necessarily supported by cPanel but it might be worth it to find out if when you modified the include for apache did you also rebuild the apache configuration file?
I used certbot in that moment because i didnt know about the existence of the AutoSSL option. I changed certbot by autossl recently.. but it didnt work for all the domains... lucky me.. didnt work with my primary domain... So i just go back to certbot again but.. I tried to follow the rules.. because i know that with easyapache you cannot modify httpd.conf directly.. so i made my configuration in the include ssl files.. but apache.. when i try restart apache.. you know doesnt restart.

well i dont know what rebuildhttpdconf do... so i suppose i didnt execute the command because of that. but i have an update.. I solved my issue with the autossl option... the issue was solved. Thanks for answer me fast... you are cool.