Apache thru port 443

  • dummy
  • Novice
  • Novice
  • dummy
  • Posts: 23

Post 3+ Months Ago

Hello Guys and Girls :D

Help :!:

I want to install an SSL certificate on an server and in preperation modified the httpd.conf file to listen on port 443 then restarted apache - but it isn't working :( I can't see my domain anymore.

Do i need to do something more than edit the httpd.conf file to listen through port 443 :?: The port is open.

Any help would be appreciated - i have a client getting waiting ... :?

thanks

Dummy
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

Depending on your distribution, you probably don't place your ssl configs in httpd.conf, you'd place them in your ssl.conf.

Have you tried hitting https://yoursite.com? it might already work and all you'd need to do is install the certificate, again depending on your distribution.

The location and name of the file you need varies from distro to distro. Look for either a conf.d/ssl.conf or a vhost-ssl.conf somewhere under your web server root (not your web root). If this doesn't make sense to you, or you just can't find it, post back with which distro you're using.
  • meman
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3432
  • Loc: London Town , Apples and pears and all that crap

Post 3+ Months Ago

If this is on your computer you may have to forward 443 from your router to the machine running the server..
  • dummy
  • Novice
  • Novice
  • dummy
  • Posts: 23

Post 3+ Months Ago

Hi,

Thanks for the help.

I've found a conf.d/ssl.conf files :D it looks very familiar to the httpd.conf file :? i'm scouring the net for tutorials on what to do next but any help / pointers would be mucho appreciated.

I'm running an old version of Red Hat ( 8 ) with apache 1.

thanks

dummy
  • dummy
  • Novice
  • Novice
  • dummy
  • Posts: 23

Post 3+ Months Ago

Whooooooooooooopie - sussed it :D (i think :? ) I haven;t installed the certificate yet but everything appears to be working OK and ready :D

Thanks for your help - put me on the right track :D

Dummy
  • seo4ssl
  • Born
  • Born
  • User avatar
  • Posts: 1
  • Loc: california, usa.

Post 3+ Months Ago

Steps to install verisign SSL cetificate.

Step 1.

Visit clickssland click on Try SSL Trail. Once here, enter the required details and move on till you see an enrollment form.

Step 2.

In the enrollment form you shall be asked to enter the CSR (Certificate Signing Request) of the server.

Follow the steps below to generate a CSR
1. Under Administrative Tools, open Internet Services Manager.
2. Open the Properties window by right-clicking on the name of the Web site you wish to secure.
3. Click the Directory Security.
tab.
4. Click Server Certificate in the Secure communications section. If you have not used this option before the Edit button will not be active.
5. Select Create a new certificate
6. Select Prepare the request now, but send it later. VeriSign only accepts CSR's through the enrollment process forms. We do not accept CSR's via email.
7. Complete the information requested by the IIS Certificate Wizard to create a private key that is stored locally on your server and a public key (the Certificate Signing Request) that you will use during the enrollment process. You have now created a public/private key pair.
8. Click Finish to exit the IIS Certificate Wizard. A CSR file has been generated.
9. Go back to the Enrollment form.
10. To copy and paste the information into the enrollment form, open the file in Notepad
11. Upon submitting the form successfully, you shall be acknowledged about the same and an order number will be displayed to you.
12. Now wait for the Trail SSL Certificate to reach you by email (this normally takes less than a minute).
Step 3.

Upon receiving the SSL Certificate through email, copy the same and save in into a file with ".cer" extension. (Remember the location where you have save it)

Note: The Certificate that you received now strictly corresponds the CSR that you sent. In the event of the CSR changing in the meantime, you would not be able to proceed further, and you may have the enroll once again with the changed CSR. Also, Verisign expects a different CSR everytime you enroll. This can be achieved by giving a different value for the Department field while creating the CSR (For eg. If you had given a value "Microsoft Dept" earlier, change it to "Microsoft Dept1" this time. This change is sufficient to generate a different CSR)

Step 4.

"This Root CA Certificate is used during the testing phase of the Trial VeriSign Secure Site SSL Certificate. This will need to be installed into each browser that will be used to test the SSL Certificate"

Follow the steps below to install the certificate into a browser
1. Open a Microsoft IE Browser.
2. Go to Tools > Internet Options > Content > Certificates
3. Click Import. A certificate manager Import Wizard will appear. Click Next.
4. Browse to the location of the recently stored root (done in step 2). Select ALL files for file type.
5. Select the certificate and click Open.
6. Click Next.
7. Select "Automatically select the certificate store based on the type of the certificate". Click Ok.
8. Click Next then Finish.
9. When prompted and asked if you wish to add the following certificate to the root store, click Yes.

Step 5:Installing the SSL Certificate

Follow the steps below to install the SSL Certificate
1. Open the Internet Services Manager (IIS). Click Start > All Programs > Administrative Tools > Internet Information Services (IIS) Manger.
2. Under Web Sites
, right-click your web site and select Properties.
3. Click the Directory Security tab.
4. Under Secure Communications, click Server Certificate.
5. The Web Site Certificate Wizard will open, click Next.
6. Choose Process the Pending Request and Install the Certificate, then click Next.
Important: The pending request must match the response file. If you deleted the pending request in error you must generate a new CSR and replace this certificate.
7. Select the location of the certificate response file, and then click Next.
8. Read the summary screen to be sure that you are processing the correct certificate and then click Next. You see a confirmation screen.
9. After you read this information, click Next.

Stop and start your Web server prior to any testing. Be sure to assign your site an SSL port (443 by default). If you do not specify an IP address when installing your SSL Certificate, the same ID will be used for all virtual servers created on the system. If you are hosting multiple sites on a single server, you can specify that the ID only be used for a particular server IP address.

Steps to convert your http page to https:

Method 1:

Replace Application_BeginRequest method with below line of codes

HttpApplication httpApp;
HttpContext httpContext;
try
{
httpApp = (HttpApplication)source;
httpContext = httpApp.Context;
string str = httpContext.Request.RawUrl;
httpContext.Response.Redirect(httpContext.Request.Url.ToString().Replace("http", "https"));
}
catch (Exception ex)
{
}

Method 2:

Use the following code in your index or home page of application.

string strURL = Request.Url.ToString();
Array arrURL = strURL.Split('/');
string strHttpPath;
string strHttpsPath;
Array arrHttpPath;
strHttpPath = "http://" + arrURL.GetValue(2).ToString() + Request.ApplicationPath;
strHttpsPath = "https://" + arrURL.GetValue(2).ToString() + Request.ApplicationPath;
arrHttpPath = strHttpPath.ToCharArray();
if (arrHttpPath.GetValue(strHttpPath.Length - 1).ToString() == "/")
{
strHttpPath = strHttpPath.Substring(0, strHttpPath.Length - 1);
strHttpsPath = strHttpsPath.Substring(0, strHttpsPath.Length - 1);
}
//Session["HttpPath"] = strHttpPath; //When http path is required uncomment it and use this session value while redirecting it to other page.
Session["HttpsPath"] = strHttpsPath;

Now use Response.Redirect method in following way.

Code

Response.Redirect(Session["HttpsPath"].ToString() + "/Contents/ThankYou.aspx");

Note: My Thankyou page is located inside Contents folder.

Incase of using javascript to redirect the page, follow the below code

location.href = '<%=Session["HttpsPath"].ToString()%>' + "/Contents/ ThankYou.aspx ";


--------------------------------------------

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 85 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.