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.

How to set up a page to be https (ssl)

Discussion in 'Database Discussions' started by MZmuda, Jun 14, 2008.

  1. MZmuda

    MZmuda Active Member

    Joined:
    Oct 22, 2005
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Long Island, NY
    Hi.

    This is a total noob question, so first, let me appologize.

    How do I go about securing a page on my server (making it https instead of http?)

    I have a page : http://www.mydomain.com/somedir/someotherdir/accountstuff.php which is a form that asks for passwords, etc... and I want the form to give the data back to itself where it will do it's magic. Only, because there are passwords involved (and other account info,) I'd like the data to be as secure as possible*, and I'm figuring https (ssl) will do that for me. (PLEASE CORRECT ME IF I'M WRONG!!!)

    What I'd like the user to be able to do is go to
    https://www.mydomain/somedir/someotherdir/accountstuff.php to fill out the form and submit to the same page.

    Second related noob question - Does this have anything to do with SSL certificates, and can I create them myself using CPanel? (I might eventually spring for a trusted cert, but my company may be undergoing a name change, so I don't want to lay out the cash only to have to do it again with a new name in a few months.)

    Can anyone out there help me? Please be as specific as possible. I appreciate it!

    - Mike Z

    * "... the data to be as secure as possible..." means "the data as sent to the user via html" not "the data stored on my server." (My server stores the info in password protected fields in the database, etc...)
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    Yes, SSL certificate is the best solution to make your pages secure via https.

    You can not generate or make it on your own. For the SSL certificate installation in your domain you will have to follow below steps:

    1. You will have to ask your web host to generate a CSR key.
    2. Based on that CSR key you can purchase SSL certificate from any SSL providers (Geotrust, instantssl, Verisyn, Entrust).
    3. Again, update your web host with the SSL certificate to install.
     
  3. MZmuda

    MZmuda Active Member

    Joined:
    Oct 22, 2005
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Long Island, NY
    Hi.

    Thanks for the quick reply.

    I was able to do a bit of it (I think,) but am looking for more guidance.

    1) I went into WHM and generated a SSL Certificate & Signing Request.
    2) I then went to InstantSSL and got a free SSL certificate.
    3) I then went back into WHM and tried to Install a SSL Certificate and Setup the Domain.

    That's when stuff started to get a little weird.

    My IP address came up as 0, so I went into Account Functions, and Changed Site IP Address for my site.

    After doing that, I tried to install the SSL certificate again, this time entering the new IP address.

    Upon submitting the info, WHM seemed to accept the cert.

    But now, when I click on Managed SSL Hosts, and I see my domain under Installed SSL Hosts, when I click on it, I still get the standard "Internet Explorer cannot display the webpage" error.

    Am I doing the above steps correctly? Do I need to wait for the new IP address that I assigned my site to propogate? Did I install the cert correctly? (I never added the bundle text.) Do I need to create content somewhere for my new secure site? (ie: do I need to copy any .html or .php files from one directory into the ssl directory?)

    Lastly, does this now mean that any secure pages will be

    "https://secure.mydomain.com/whateverdir/whateverpage"

    Sorry for all the questions, but I've never done this before (and I'm a little in-over-my-head with just basic WHM / cPanel admin.)

    Thank You again for the advice.

    - Mike Z.
     
  4. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    If you have purchased simple SSL and installed it on the main domain name then you can not use it with the sub-domain for example, if you have installed SSL on abc.com then you can not use it for xyz.abc.com.

    You will have to host sub-domain xyz.abc.com seprately and install SSL on it. However, if you purchase wild card SSL then it will work for the domain and also for all the sub-domains.
     
Loading...

Share This Page