473,405 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

using ssl certificate in asp

2
Hi all,

I want to build an online shop with asp. Could you give me any idea on using ssl? Shall I purchase the ssl certificate first then set the key in the server? Do I need to do anything in the asp code? Or the "http" is the only thing needs to be changed?(change to "https" ?)

Any advice would be appreciated.
Aug 5 '06 #1
8 7941
sashi
1,754 Expert 1GB
Hi there,

pls refer to the link attached.. take care my fren..

http://www.thescripts.com/forum/thread52526.html
Aug 5 '06 #2
myasp
2
Hi Sashi, thanks for the link and I really appreciate it.
However, my case is a little bit different from John's. The details of my customer include some sensitive information and they will be saved in the database on my server, I guess I have to install the ssl certificate to protect those details when my customer submit the form. The problem is I have no idea how to apply ssl/ssl encryption in asp file. Is there any place that I can learn it? Or someone can explain it?
Aug 5 '06 #3
sashi
1,754 Expert 1GB
Hi there,

check out the attached links below.. hope it helps you to get started with SSL.. take care..

http://www.devguru.com/features/tuto...entication.asp
http://www.devhood.com/tutorials/tut...tutorial_id=85
http://jeays.net/asp.htm
Aug 7 '06 #4
menon
4
Hi Guys!

Please Refer this link, you will find more about Forcing http:// to https://

http://www.hotscripts.com/Detailed/57478.html


best regards,
Kalipurayath Sanal Menon
Aug 8 '06 #5
sashi
1,754 Expert 1GB
Hi Menon,

thanks for sharing the information with the rest.. good job.. keep it up buddy.. :)
Aug 10 '06 #6
matary
1
This is great! The only modification I would make is to add the query string in one of two ways:

Expand|Select|Wrap|Line Numbers
  1. <%
  2.    If Request.ServerVariables("SERVER_PORT")=80 Then
  3.       Dim strSecureURL
  4.       strSecureURL = "https://"
  5.       strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
  6.       strSecureURL = strSecureURL & Request.ServerVariables("URL")
  7.       strSecureURL = strSecureURL & "?" & Request.ServerVariables("QUERY_STRING")
  8.       Response.Redirect strSecureURL
  9.    End If
  10. %>
or

Expand|Select|Wrap|Line Numbers
  1. <%
  2.    If Request.ServerVariables("SERVER_PORT")=80 Then
  3.       Dim strSecureURL
  4.       strSecureURL = "https://"
  5.       strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
  6.       strSecureURL = strSecureURL & Request.ServerVariables("HTTP_X_REWRITE_URL")
  7.       Response.Redirect strSecureURL
  8.    End If
  9. %>
and as suggested include this file on a page to force it to use SSL.

BTW, when I wrote a similar script I used HTTPS server variable which returns on or off. Same final result as checking the port for 80 vs. 443.


To see all of the server variables use the following:

Expand|Select|Wrap|Line Numbers
  1. for each x in Request.ServerVariables
  2.   response.write("<b>" & x & ":</b><br /><pre>" & Request.ServerVariables(x) & "</pre><br /><br />")
  3. next
Happy coding:
Matary
Aug 12 '06 #7
If Request.ServerVariables("SERVER_PORT")=8080 Then
Dim strSecureURL
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & Request.ServerVariables("URL")
strSecureURL = strSecureURL & "?" & Request.ServerVariables("QUERY_STRING")
Response.Redirect strSecureURL

End If

The code is not working.. i am getting page cud not b found can anyvbody pl help
Mar 4 '08 #8
DrBunchman
979 Expert 512MB
Hi there,

Comment out your response.redirect and add a response.write. You'll be able to see what the url you are trying to navigate to is and hopefully see what is wrong with it.

Hope this helps,

Dr B
Mar 4 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ashutosh Bhalerao | last post by:
Hi all, I am trying to write a VB.Net application which communicates over SSL with an IIS server. I have got a temporary certificate from Verisign and installed it on IIS. I am using...
0
by: Subra Mallampalli | last post by:
Hi, I am trying to connect over HTTPS using a client certificate. I am able to connect fine when using IE. From my application, however, I get the following error: The underlying connection...
3
by: Tim Burris | last post by:
At the top here i will put a quick description of my problem followed by the long description. This way you want get bored reading! : short version what is the best/recommended way for ASPNET...
0
by: dinoo | last post by:
Can some body help me out? I am trying to use client certificates in a Webservice. But some how i am not able to make it. I went through the msdn resources but i think some one needs to help me...
1
by: Nelson R. | last post by:
Hi, i need to get some info from a website page that requires an certificate. Ive got the provided certificate installed in IE, and when accessing the website page, it shows a window to...
5
by: S.Vidya | last post by:
when accessing the URL using Https,the security alert box pop up everytime. how to block that security alert box showing 1.Certificate issued by a company you have not choosen to trust.view the...
0
by: Bryan Slatner | last post by:
I'm having some difficulty finding the information I need. Maybe someone can point me in the right direction. I need to call methods on a web service defined by one of our vendors. They require,...
5
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client...
2
by: b.fokke | last post by:
I'd like to connect to a webservice using TLS/SSL. I have two separate client certificates: 1. A certificate for digital verification 2. A certificate for encryption. When I use the first one...
3
by: Tery | last post by:
I'm trying to implement the Handango.com HTTP POST registration method. The instructions are here: http://www.handango.com/marketing/developerTeam/HTTP_Post_Reg_Model_How2.doc I'm stuck on how...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.