Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: OT: Encrypting stuff (secure connection) Date: Mon, 4 Jun 2018 06:58:09 +0200 Lines: 21 Message-ID: References: <4901acf9-9439-4b59-8e4f-9960d508d72c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net D5Q3RitdFegObBWq8Y7RaQvK7zwTeiVQ43r5QzOtqz8g/0NXg/ Cancel-Lock: sha1:E9hUMxVNudlTv/RLTu4OYVQLUis= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 In-Reply-To: <4901acf9-9439-4b59-8e4f-9960d508d72c@googlegroups.com> Content-Language: en-GB Xref: csiph.com comp.lang.php:17771 On 03/06/18 19:33, bit-naughty@hotmail.com wrote: > I have a form with 2 fields, which I would like encrypted between client and server. > Do I just change the "action=http..." to "action=https..." in the HTML or what? This will only work if you have configured your web server to use certificate (you can get free one from letsencrypt.org) To make it secure, the form page needs to have been sent over a secure layer too, not just the post pack. > It doesn't seem to be working when I test it local.... > if I say "http://localhost/prog.php", it works, but "https://localhost/prog.php" does not.... For more information how to use certificates ask in a newsgroup related to your web server -- //Aho