The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

wildcard certificate in shared ip

Discussion in 'Bind / DNS / Nameserver Issues' started by pnueda, Jan 21, 2015.

  1. pnueda

    pnueda Member

    Joined:
    Nov 12, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I've already tried the common guides but still not able to get my wildcard ssl cert working on a shared ip address.

    I have bought a wildcard ssl certificate for *.domain.com
    That certificate should work for /http://www.domain.com and shop.domain.com
    I installed it with the result of no errors and it seems to be working: see /https://domain.com/test/index.htm

    Then,
    when I try to go to the main website /https://www.domain.com/ but it loads broken
    The same url with standard http loads fine: /http://www.domain.com/

    I checked tail -f /usr/local/apache/domlogs/shop.domain.com-ssl_log and it is logging an Err 500 message on every request.

    We need to enable ssl for both main website and online shop in the subdomain shop.domain.com

    I followed instructions in the following forum thread:

    http://forums.cpanel.net/f5/wildcard-ssl-shared-ip-problem-191851.html
    and troubleshooting guide:
    https://documentation.cpanel.net/di...Troubleshooting-WhatisawildcardSSLcertificate

    I am running a Centos 6.6 server with cpanel 11.46 and apache 2.2.27

    Strange detail: after installing ssl host in WHM, I shared it, however the column "Needs SNI?" is tagged as "No" for both main website and subdomain. Is not that supposed to be a "Yes" since the certificate was installed in a shared IP?
    What am I missing?

    Any help will be appreciated.

    Best regards,
    Paco
     
    #1 pnueda, Jan 21, 2015
    Last edited by a moderator: Jan 21, 2015
  2. pnueda

    pnueda Member

    Joined:
    Nov 12, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Update:

    I've found out why it is not working on main website. It is old outdated code using absolute paths i.e. http://... so it cannot load properly using https

    Problem persists on subdomain shop.domain.com
    It is an updated Prestashop, so it should work fine. However, when I try https://shop.domain.com/administrador/ the following error is recorded in shop.domain.com-ssl_log:
    Code:
    62.175.212.10 - - [21/Jan/2015:18:20:26 +0100] "GET /administrador/ [B][COLOR="#FF0000"]HTTP[/COLOR][/B]/1.1" 500 20 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36"
    Note that it is trying to GET using HTTP and not HTTPS. Why would it be that?
     
    #2 pnueda, Jan 21, 2015
    Last edited by a moderator: Jan 21, 2015
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,744
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you have any rewrite rules or script configuration options that would use the non-secure URL? The best way to ensure the SSL certificate is working is to upload a simple test HTML page and attempt to load it with the secure URL.

    Thank you.
     
Loading...

Share This Page