Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Member
    Join Date
    May 2004
    Posts
    26

    Default SSL - A definitive answer

    There's one thing that keeps coming up but I have not seen any clear answers for yet, and that is a shared SSL ceritifcate for a server.

    What I mean by "shared SSL", and someone may want to correct me on my use of that term, is that all the domains on a shared IP address share the same SSL certificate.

    I have a shared IP address on my server and I want to provide generic, self-signed SSL for every domain on that IP. Can I do that with just one SSL cert on the shared IP address? How is that accomplished?

    Also - how can I set a subdirectory to use for storing my secure site? For example, I want https://mydomain.com to bring me straight to the secure folder, and do it transparently - meaning that https://mydomain.com still shows in the browser's address line, without the secure subdirectory name showing. I had this set up once when I was on a host with Plesk, and I'd like to try and set it up that way for my users in cpanel, since I remember it being a very user-friendly setup.

    I know that's a lot for one post, but if I could get this cleared up once and for all, it would really help everyone, I think. Thanks to anyone who can help.
    Last edited by DuxAranea; 05-21-2004 at 07:17 AM.

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    345

    Default

    Correct me if I am wrong anyone..

    But with a shared SSL your users would need to use https://IP/~userid not https://theirdomain.com/

  3. #3
    Member
    Join Date
    May 2004
    Posts
    26

    Default

    That doesn't sound right to me...

  4. #4
    Member
    Join Date
    Jan 2004
    Posts
    248

    Default

    To use a shared SSL you have to do it like icanectc said. To do it the other way each site would have to have its on self signed ssl. And since you can only have 1 ssl per IP that would require every client to have their own IP.

    To have the https:// go to a different folder then you need to edit the httpd.conf file for that domain and specify the root file path for the secure website to be what ever you want it to be.

  5. #5
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Originally posted by DuxAranea
    That doesn't sound right to me...
    Well, it is...

  6. #6
    Member Host4u2's Avatar
    Join Date
    Mar 2002
    Posts
    244

    Default

    Example:

    Server name: test.abc.com

    Create account: abc.com (sharing server IP address)
    Create sub-domain: test.abc.com

    Order SSL Cert for test.abc.com, using server IP.

    Install Certificate via WHM for test.abc.com

    Now, clients/accounts can use the server-wide Shared Certificate using:

    https://test.abc.com/~userID/filename.shtml

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    91

    Default

    Hi,

    I too have been trying to get this to work. I have followed the instructions of Host4u2 and I find:

    https://test.abc.com/ goes to teh same place as http://abc.com/ and https://test.abc.com/~userID/ gets Not Found

    http://test.abc.com/~userID/ works fine

    also the secure cpanel at https://test.abc.com:2083 works fine too with the SSL cert

    (my server names are different obviously)

    Any ideas would be great.

    Will

  8. #8
    Member Host4u2's Avatar
    Join Date
    Mar 2002
    Posts
    244

    Default

    Note: In the example, test.abc.com is the server name. Also, the Certificate must be issued to "test.abc.com" (important).

    You wrote: "https://test.abc.com/ goes to the same place as http://abc.com/"

    Is your Certificate issued to your server name, test.abc.com, using abc.com's unique IP address?

    Obviously, test.abc.com (sub-domain.url.com) is substituted for your real domain and sub-domain

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    91

    Default

    Thanks,

    Yes server name is test.abc.com and ssl cert is for same

    abc.com is on the same IP address as all the user accounts that don't have their own IP address (so they can have their own SSL certs). This is the main server IP address that is used by the Server Name. Is this wrong?

  10. #10
    Member Host4u2's Avatar
    Join Date
    Mar 2002
    Posts
    244

    Default

    Yes, abc.com should have it's own unique IP address (as is so with any SSL Cert.).

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    91

    Default

    I tried to switch abc.com to a new ip ad it seemed to mess things up. http://test.abc.com went to a customer's site and
    http://test.abc.com/~username was not found. This also broke http://[main ahared ip]/~username. I had to restore the last httpd.conf file to get things right again. I'm a little scared of messing things up :-(

  12. #12
    Member Host4u2's Avatar
    Join Date
    Mar 2002
    Posts
    244

    Default

    The time to assign a unique Ip is before you order the Cert. It's already assigned the IP you ordered it with now.

  13. #13
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    91

    Default

    I seem to have done it. I manually changed the httpd.conf file:

    added:

    <IfDefine SSL>
    <VirtualHost [Shared IP]:443>
    DocumentRoot /usr/local/apache/htdocs
    BytesLog domlogs/[Server Name]-bytes_log
    ServerName [Server Name]-
    SSLEnable
    SSLCertificateFile /usr/share/ssl/certs/[Server Name]-.crt
    SSLCertificateKeyFile /usr/share/ssl/private/[Server Name]-.key
    SSLLogFile /var/log/[Server Name]-
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    </VirtualHost>
    </IfDefine>

    Does this seem okay to you?

  14. #14
    Member Host4u2's Avatar
    Join Date
    Mar 2002
    Posts
    244

    Default

    Yep, especially if that is working for you. I was about to suggest uninstalling the Cert and then reinstalling it with assigning it a new unique IP address (for abc.com)

  15. #15
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    91

    Default

    Okay, Hopefully cpanel will not overwrite it. Thanks for the help.

    Will

Similar Threads & Tags
Similar threads

  1. Definitive FreeTDS installation instuctions
    By cPanelDavidL in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 02-08-2012, 01:11 PM
  2. is there a definitive list of cpanel applets?
    By heatherfhile in forum New User Questions
    Replies: 1
    Last Post: 02-10-2010, 02:26 PM
  3. WebMail Logout Should be Definitive
    By webr00t in forum E-mail Discussions
    Replies: 9
    Last Post: 01-21-2010, 04:18 AM
  4. domlog rotation: The Definitive Answer?
    By payne in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 11-23-2003, 08:33 AM
  5. SSL - looking for quick answer
    By silvernetuk in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-27-2003, 09:40 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube