Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    16

    Default SSL on hostname

    How can I install SSL cert on server's hostname?

    I know how to install SSL cert on domains hosted on the server. but not sure about on hostname.
    Is it the same procedure as hosted domains?

    like, you generate the SSL cert and signing request with your hostname and so on....

    If you have installed SSL cert on your hostname, please tell me how you did it.

    Thank you in advance.

  2. #2
    Member Trigger's Avatar
    Join Date
    May 2003
    Location
    Brisbane
    Posts
    87

    Default

    You should not use the host name of the server for anything other than the setup. cPanel/WHM uses a self signed certificate to secure all access to the control panel, trying to use the host name of the server to run a website or for any other purpose may conflict with the setup of the server.

    If you want to offer Shared SSL then get yourself another domain, anonymous domain name if you prefer and set it up with a certificate. Let your customers access the shared certificate with http://anonymousdomain.com/~accountname/ .

    Note that by allowing users to access their sites this way any bandwidth used will be put on the domain being used to access the site ie. the anonymousdomain.com.

    If you have mod_userdir Tweak enabled to stop this you can exclued the account used for the shared SSL to enable it to be used in this fashion.
    Ron Rogers
    Need SSL Certificates? WEBYSSL.com (RapidSSL.com International Affiliate)
    Put Your Mark on the WWWorld with WEBY Systems

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Unless of course you're just talking about using a CA signed certificate for secure WHM/cPanel access for the hostname. In that case you can certainly generate a CSR (WHM > Generate a SSL Certificate and Signing Request) and then install it in WHM > Change cPanel/WHM Certificate
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Jan 2004
    Posts
    16

    Default

    Thank you both Trigger & chirpy for your reply.

    The reason I want to install SSL cert on hostname is because I want to offer secure POP3 connection for my clients.

    So, if my hostname is "server.domain.com"
    Then I just Generate a SSL Certificate and Signing Request with the domain name "server.domain.com" and install it in WHM's Change cPanel/WHM Certificate.

    Is it right?

    How about IP address?
    Don't I need to assign IP address for "server.domain.com" as it needs a dedicated IP address?

    Thank you.

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Yup, that's how you would do it.

    The dedicated IP would have to be the main IP for the server, so you need to ensure that you don't have a client hosted on the main IP with an SSL certiciate already installed.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    Jan 2004
    Posts
    16

    Default

    Thank you very much. chirpy

  7. #7
    Member
    Join Date
    Jan 2004
    Posts
    16

    Default

    I installed SSL on hostname as I was adviced.
    everything seems to have gone well.
    now I can access whm,cpanel via SSL.
    Thanks for that.

    But I can not access as

    https://hostname.domain.com/~usrname/.

    I want to offer a shared SSL access for my clients as well.

    Am I missing something?

    Please help me.

  8. #8
    Member
    Join Date
    Jul 2004
    Posts
    203

    Default

    Already answered.
    Quote Originally Posted by Trigger
    If you want to offer Shared SSL then get yourself another domain, anonymous domain name if you prefer and set it up with a certificate. Let your customers access the shared certificate with http://anonymousdomain.com/~accountname/ .

    Note that by allowing users to access their sites this way any bandwidth used will be put on the domain being used to access the site ie. the anonymousdomain.com.

    If you have mod_userdir Tweak enabled to stop this you can exclued the account used for the shared SSL to enable it to be used in this fashion.
    additionally you can create a subdomain account ( ie. secure.yourdomain.com ), give it a dedicated IP and set that up for shared SSL useage.

    Hope That Helps.
    Regards,
    RAIS


    { RAIS Hosting }~{ Superior Hosting Solutions - Personal, Business, Reseller Solutions. Great value }
    { RAIS Domains }~{ Low cost Domain Name registration services }

  9. #9
    Member
    Join Date
    Jan 2004
    Posts
    16

    Default

    Thank you for your reply..:RAIS:.

    But I want to offer shared SSL using hostname.

    now I can access
    http://hostname.domain.com/~usrname/

    but not

    https://hostname.domain.com/~usrname/

    Any idea what i'm missing?

  10. #10
    Member
    Join Date
    Jul 2004
    Posts
    203

    Default

    As Trigger stated, it is not a good Idea to use the server hostname for shared SSL. It should only be used for cPanel.

    When a user types in the IP ( or hostname.domain.com ) as the URL of the shared IP for the server it comes up `No Website Configured At this Address`, however when you dedicate an IP to an account and type the IP it will show the contents of the account that is on the dedicated IP

    This is a part of the reason WHY you shouldnt use the hostname as a shared SSL location.
    Regards,
    RAIS


    { RAIS Hosting }~{ Superior Hosting Solutions - Personal, Business, Reseller Solutions. Great value }
    { RAIS Domains }~{ Low cost Domain Name registration services }

  11. #11
    Member
    Join Date
    Jan 2004
    Posts
    16

    Default

    Hi.

    I've changed that default index page(No Website Configured At this Address) to my own template. so there is no worry about that.

    Do you have any idea how I can do that?

  12. #12
    Member
    Join Date
    May 2003
    Location
    SC
    Posts
    96

    Default

    Did anyone ever figure this out? I've got what I think is the proper httpd config setup in httpd.conf but no luck.

  13. #13
    Member
    Join Date
    Apr 2005
    Posts
    16

    Default https://hostname.com/~user

    Yes I worked it out..

    Your second entry in httpd.conf should look like:

    <IfDefine SSL>
    <VirtualHost 210.x.x.x:443>
    DocumentRoot /usr/local/apache/htdocs
    ServerName server.blah.com
    SSLEnable
    SSLCertificateFile /usr/share/ssl/certs/server.blah.com.au.crt
    SSLCertificateKeyFile /usr/share/ssl/private/server.blah.com.au.key
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    </VirtualHost>
    </IfDefine>

    now the tricky bit is finding the actual key and crt! You can find them in:

    /usr/local/cpanel/etc/mycpanel.pem

    Both the key and cert are in that file. Just copy and paste them seperately into the files you have defined with SSLCertificateFile and SSLCErtificateKeyFile

    I am yet to find a good reason why not to use SSL on the hostname. I wish someone would give us an explanation instead of just saying "its bad!"

  14. #14
    Member
    Join Date
    May 2003
    Location
    SC
    Posts
    96

    Default

    Thanks for updating the thread. I ended up finding that solution and meant to do the same.

  15. #15
    Member
    Join Date
    Feb 2005
    Posts
    17

    Default

    After I did this, seems that private SSL's (dedicated IP) don't work and redirect to the DocumentRoot /usr/local/apache/htdocs

    Is it possible to do both?

Similar Threads & Tags
Similar threads

  1. SSL for the hostname
    By serlex in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-03-2009, 09:14 AM
  2. SSL and Hostname
    By Knyteguy in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-06-2009, 11:49 AM
  3. SSL install for hostname
    By jerryghb in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-11-2009, 09:01 AM
  4. SSL cert works for hostname/cpanel but not hostname:2082
    By foxphiles in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-30-2008, 09:12 AM
  5. SSL over hostname
    By mike25 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-27-2007, 06:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube