secure transaction with ssl

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
maldar
Forum Commoner
Posts: 49
Joined: Mon Aug 18, 2003 4:39 pm

secure transaction with ssl

Post by maldar »

Hi All,
I want to develop an Online Shopping Cart and know that must use SSL
for secure transactions.
I have a script in my project called "checkout.php" that by it I can recieve
user information .I use a link to call this script such this:
"https://myservername.mydomain/mypath/checkout.php"
but everywhen I click it I get this error:
"The Page Cannot be Displayed" or this
"Action Canceled"
I am sure that the path is correct because when use "http://myservername.mydomain/mypath/checkout.php"
have no problem but seurity is lost.

where is the wrong?
If I must set any else configuration or change link syntax in my scripts?

Please help me to solve this problem. any sugesstion will be welcome
Thanks

curl is enabled and mod_ssl is one of loaded modules(mod_ssl 2.8.16,open_ssl 0.9.6b)
and php version is:4.3.3
ckuipers
Forum Commoner
Posts: 61
Joined: Mon Mar 24, 2003 6:10 am

Post by ckuipers »

Did you create your certificate and key?

Assuming you're using Apache, did you update your configuration file? It needs the location of the two above. You will need to create a virtual host for this with the correct port allocation. Usually this is 443.

Hope this helps.
maldar
Forum Commoner
Posts: 49
Joined: Mon Aug 18, 2003 4:39 pm

Post by maldar »

Thanks to ckuipers but I'm newbie in this
Are this configuration must be on my host/server?
may anyone help me to solve this problem?I need more information
I read manual but did not found any useful tip to solve this?
any resource may be useful and will be welcome
ckuipers
Forum Commoner
Posts: 61
Joined: Mon Mar 24, 2003 6:10 am

Post by ckuipers »

Ok, from the top.

Did you create a certificate for your domain?

If so, have you update your apache config file to reflect this:

<VirtualHost 10.12.35.42:443>
ServerName http://www.ck-server.net
DocumentRoot c:\WebPages\WWWRoot\server_info
SSLEngine On
SSLCertificateFile conf/ssl/ck-server.cert
SSLCertificateKeyFile conf/ssl/ck-server.key
</VirtualHost>

As you can see you need both a certificate and a key in the ssl folder.
Post Reply