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 ?
php https
Moderator: General Moderators
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
Re: php https
You do not really need to do much in PHP-side. Just make sure the site is accessed through HTTPS:
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.
Code: Select all
if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off')
{header('Location: https://yoursite.com'); exit;}-
ldougherty
- Forum Contributor
- Posts: 103
- Joined: Sun May 03, 2009 11:39 am
Re: php https
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
https://ssl.trustwave.com/
You should read the FAQ, lots of helpful information.
https://ssl.trustwave.com/support/support-faq.php
Re: php https
Thanks looking at it right now