Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

secure server-to-server transmissions

 
   Database Help (Home) -> PHP RSS
Next:  crazy script prints variable value from other scr..  
Author Message
runner7

External


Since: Aug 22, 2006
Posts: 6



(Msg. 1) Posted: Mon Oct 02, 2006 8:35 pm
Post subject: secure server-to-server transmissions
Archived from groups: comp>lang>php (more info?)

Can anyone tell me the easiest or best way to do secure
server-to-server transmissions using PHP? Does SSL work for
server-to-server? Thanks for any replies.

 >> Stay informed about: secure server-to-server transmissions 
Back to top
Login to vote
Nick Miller

External


Since: Oct 03, 2006
Posts: 1



(Msg. 2) Posted: Tue Oct 03, 2006 6:55 am
Post subject: Re: secure server-to-server transmissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

runner7 wrote:
> Can anyone tell me the easiest or best way to do secure
> server-to-server transmissions using PHP? Does SSL work for
> server-to-server? Thanks for any replies.

You could call exec() to use SCP, given both your server and the
recipient system are running *nix.

-Nick

 >> Stay informed about: secure server-to-server transmissions 
Back to top
Login to vote
Erwin Moller

External


Since: Sep 11, 2003
Posts: 337



(Msg. 3) Posted: Tue Oct 03, 2006 9:44 am
Post subject: Re: secure server-to-server transmissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

runner7 wrote:

> Can anyone tell me the easiest or best way to do secure
> server-to-server transmissions using PHP? Does SSL work for
> server-to-server? Thanks for any replies.

Hi,

Did you look up ftp at www.php.net?
Just type ftp in the searchbox, select the functions, and go.
Read it. Smile

It contains a link to a function named ftp_ssl_connect() which does what you
need.

Regards,
Erwin Moller
 >> Stay informed about: secure server-to-server transmissions 
Back to top
Login to vote
runner7

External


Since: Aug 22, 2006
Posts: 6



(Msg. 4) Posted: Tue Oct 03, 2006 12:08 pm
Post subject: Re: secure server-to-server transmissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I guess I should have mentioned I may need to use SOAP securely, and as
far as I can tell SOAP only works over HTTP(S?). Any solutions for
using SOAP securely?
 >> Stay informed about: secure server-to-server transmissions 
Back to top
Login to vote
runner7

External


Since: Aug 22, 2006
Posts: 6



(Msg. 5) Posted: Tue Oct 03, 2006 3:58 pm
Post subject: Re: secure server-to-server transmissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andy Hassall wrote:
> When you've got one server communicating to another, then one of the servers
> is just a client, so all the usual secure client-server methods are available:
> https, ssh, etc.

Would it be safe to assume, then, that I could do the following with a
SOAP kit such as NuSOAP and expect secure communications as long as the
server subdomain is properly set up with an SSL certificate? In other
words, all I have done is add "s" to the scheme:

$client = new soapclient('https://sub.domain.com/soap_app.php');

Is anything else needed? Which software is actually handling the
client-side aspects of the secure connection: the web server, the
operating system, NuSOAP, or PHP runtime?
 >> Stay informed about: secure server-to-server transmissions 
Back to top
Login to vote
Andy Hassall

External


Since: Jan 11, 2004
Posts: 318



(Msg. 6) Posted: Tue Oct 03, 2006 8:19 pm
Post subject: Re: secure server-to-server transmissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2 Oct 2006 20:35:50 -0700, "runner7" wrote:

>Can anyone tell me the easiest or best way to do secure
>server-to-server transmissions using PHP? Does SSL work for
>server-to-server? Thanks for any replies.

When you've got one server communicating to another, then one of the servers
is just a client, so all the usual secure client-server methods are available:
https, ssh, etc.

--
Andy Hassall :: andy.TakeThisOut@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
 >> Stay informed about: secure server-to-server transmissions 
Back to top
Login to vote
runner7

External


Since: Aug 22, 2006
Posts: 6



(Msg. 7) Posted: Tue Oct 03, 2006 9:15 pm
Post subject: Re: secure server-to-server transmissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks so much Andy. I'm quite impressed with your knowledge. Would
you mind passing on to us some idea of how you learned what you know
about PHP so we could do the same? Do you have a degree in computer
science?
 >> Stay informed about: secure server-to-server transmissions 
Back to top
Login to vote
Andy Hassall

External


Since: Jan 11, 2004
Posts: 318



(Msg. 8) Posted: Wed Oct 04, 2006 1:35 am
Post subject: Re: secure server-to-server transmissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 3 Oct 2006 15:58:35 -0700, "runner7" wrote:

>Andy Hassall wrote:
>> When you've got one server communicating to another, then one of the servers
>> is just a client, so all the usual secure client-server methods are available:
>> https, ssh, etc.
>
>Would it be safe to assume, then, that I could do the following with a
>SOAP kit such as NuSOAP and expect secure communications as long as the
>server subdomain is properly set up with an SSL certificate? In other
>words, all I have done is add "s" to the scheme:
>
>$client = new soapclient('https://sub.domain.com/soap_app.php');

Yes, that'd get you at least SSL encryption for the communication.

>Is anything else needed? Which software is actually handling the
>client-side aspects of the secure connection: the web server, the
>operating system, NuSOAP, or PHP runtime?

The PHP runtime. PHP can act as an HTTP, HTTPS and FTP client (and more):
http://uk.php.net/manual/en/wrappers.php

There is also an interface to the cURL library which implements many
protocols, and offers more options in some areas than PHP's built in support:
http://uk2.php.net/curl

I don't know which one NuSOAP uses, but I would expect that it'd be
configurable and probably use PHP's native support by default with the option
to use cURL.

HTTPS gets you two things; encryption for the traffic to avoid eavesdropping,
and verification of the identity of the site through the certificate to avoid
impostor sites. Encryption may well be enough for you; but if you want to also
verify the certificate, then cURL does this by default (see the
CURLOPT_SSL_VERIFYPEER option), and the PHP HTTPS client doesn't but has an
option for it (see verify_peer at the bottom of
http://uk2.php.net/manual/en/transports.php#transports.inet and then backtrack
through the page to find how to set it).

--
Andy Hassall :: andy.TakeThisOut@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
 >> Stay informed about: secure server-to-server transmissions 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
how to secure documents in server - Hello, Can anyone suggest me solution? I Need to manage different types of documents (doc,xls,ppt etc) in server. I have folder structure to maintain these documents in server. Say folder1 is having all doc files; folder2 is having all xls files and so...

secure soap connection where server is in java ? - I have been trying to figure out apache/rampart soap security. We have a soap server in java and the client is PHP. I just read this article which concerns me because it seems to imply rampart/java won't work with PHP. Are there any other good solutions,...

loaded latest edition of Apache http server on XP, and ins.. - How do I run a .php program? (I'm starting with the "hello world" script)

Secure Login - Does anyone have the source, class, or link for a secure login using sessions? Preferably with MySQL. Any help would be greatly appreciated. Thank you very much.

How do you secure a WYSIWYG editor? - I use tinyMCE to provide a formattable textarea for the users of my website. How do I filter data so complex as that?
   Database Help (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]