Page 1 of 1
php https
Posted: Sat May 16, 2009 9:26 am
by wpsd2006
How do I create https in php?
can someone point me to the right direction ?
do i need to register or pay somewhere first to enable it
or can i create it my own https from my own server ?
Re: php https
Posted: Sat May 16, 2009 9:36 am
by kaisellgren
You do not really need to do much in PHP-side. Just make sure the site is accessed through HTTPS:
Code: Select all
if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off')
{header('Location: https://yoursite.com'); exit;}
You need to get a certificate. OpenSSL can generate certificates and even sign them yourself, which is free, but will generate errors when people visit your site (such as this certificate is not trusted). If your site is public, you need a paid certificate. Try looking at
http://www.instantssl.com I like it myself.
Re: php https
Posted: Sat May 16, 2009 12:15 pm
by ldougherty
The largest provider of SSL certificates is Trustwave
https://ssl.trustwave.com/
You should read the FAQ, lots of helpful information.
https://ssl.trustwave.com/support/support-faq.php
Re: php https
Posted: Tue May 19, 2009 9:46 pm
by wpsd2006
Thanks looking at it right now