Write a file over SSL
Posted: Tue May 03, 2011 4:21 am
Hi.
My client puts security highly. Their website is in a DMZ (and will be referred to as external web from here on), while the rest of their network is behind a firewall and is thus inaccessible from their website. They wish to open as little traffic inwards as possible.
My job is to put up a page which should only be accessible from their internal web (located on a completely different box). This pages function is to generate a html page, write it to disk, and transfer this html file to their external web using SSL. The page should also be able to delete this html file from their external web.
I am thinking of using php's OPEN_SSL packages. But I have little or no experience using SSL, and as far as I have understood SSL is just a term for how the communication is encrypted. It does not contain methods for the actual transfer of the file. For this I must choose either SFTP or SSH2. Is this correct?
How can I make this happen? What needs to be put on the internal web, and what needs to be put on the external web? What are the caveats? Can anybody point me to code samples?
Thanks for all help on this.
My client puts security highly. Their website is in a DMZ (and will be referred to as external web from here on), while the rest of their network is behind a firewall and is thus inaccessible from their website. They wish to open as little traffic inwards as possible.
My job is to put up a page which should only be accessible from their internal web (located on a completely different box). This pages function is to generate a html page, write it to disk, and transfer this html file to their external web using SSL. The page should also be able to delete this html file from their external web.
I am thinking of using php's OPEN_SSL packages. But I have little or no experience using SSL, and as far as I have understood SSL is just a term for how the communication is encrypted. It does not contain methods for the actual transfer of the file. For this I must choose either SFTP or SSH2. Is this correct?
How can I make this happen? What needs to be put on the internal web, and what needs to be put on the external web? What are the caveats? Can anybody point me to code samples?
Thanks for all help on this.