Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Issue rewrite a SSL directive in easyapache

Discussion in 'EasyApache' started by melveg, Nov 15, 2018.

  1. melveg

    melveg Registered

    Joined:
    Nov 15, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,459
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. melveg

    melveg Registered

    Joined:
    Nov 15, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Managua
    cPanel Access Level:
    Root Administrator
    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.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,459
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @melveg

    I'm really happy to hear that you were able to resolve the issue with autoSSL! If you have any issues ever again with AutoSSL please let us know and we'll do our best to help you find out why and how to resolve it!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice