all groups > macromedia flash flash remoting > april 2004 >
You're in the

macromedia flash flash remoting

group:

Flash Remoting and SSL


Flash Remoting and SSL Bobby1500
4/20/2004 2:54:05 PM
macromedia flash flash remoting:
I have a interesting problem with Flash Remoting. Due to certain government
regulations, we must authorize every time we go to a secured site and we are
not allowed to use certificate trust list. I already setup IIS 6.0 with Custom
HTTP headers and enable Content Expiration. I think the problem lies in Flash
remoting because it can not confirm the certificate, but no error logs are
generated. When netconnection is running it brings up error opening URL , then
if I go to web service in flash it won't let me input a https sites(wsdl).
Then if I use Service browser it comes up with a error 404. I can enter the
files name in the URL with https and it comes up.

This is my rig
Dual 2.8 Xeons
1GB Memory
Win2003 with most recent updates
SQL2000 with most recent updates
CFMX 6.1

Any ideas

thanks
Robert

Re: Flash Remoting and SSL eapostol
4/18/2005 12:00:00 AM
Hi - Did you ever get this error resolved? Here is my issue (similar)... I
have set up a few Win 2K Pro machines used by developers with IIS running with
SSL and a self-generated certificate using GnuWin32 tools. I was showing junior
developers how to generate their own certificates and run SSL on their
machines. Now what I want to show them is SSL and Flashcom. So I created a
simple client side Flash App to start off, with a username field, a password
field, and a submit button. On submit, I would make a Flash Remoting call to a
ColdFusion component that authenticates the user by comparing their info to
that found in a database. My connection code looks like this - //initialize
the Flash Remoting MX Object
NetServices.setDefaultGatewayUrl('https://localhost/flashservices/gateway');
gatewayConnection = NetServices.createGatewayConnection(); authenticate_cfc =
gatewayConnection.getService('projects.abc.xyz.fcsauthenticate', this);
Similarly, I created a main.asc file which includes the following code snippet;
// Load the NetServices Class Libraries load('netservices.asc');
load('components.asc'); application.onConnect = function(clientObject,
ticket_hash) {
NetServices.setDefaultGatewayUrl('https://localhost/flashservices/gateway');
var gatewayConnection = NetServices.createGatewayConnection(); var
authenticate_cfc
=gatewayConnection.getService('projects.abc.xyz.fcsauthenticate', this);
//call the server function, authenticateUser,passing the username and password
var invokeService = cf_authenticate_cfc.dologin(enc_info); }; With
SSL off, no certificates, and using http://localhost/flashservices/gateway/ as
the gateway, the whole application works fine. However, whenever I invoke SSL
with my self-generated cert and using https://localhost/flashservices/gateway/
as the gateway, I keep on getting this error Error opening URL
'https://localhost/flashservices/gateway'. Has anyone else encountered or
found a resolution to this issue?
Re: Flash Remoting and SSL maliko50
4/23/2005 12:00:00 AM
Re: Flash Remoting and SSL djhmateer
4/23/2005 12:00:00 AM
Hi

Has anyone solved these issues... ie to get flash remoting working via ssl. I am going from Apache->CF7 via the standard Jrun module.

Regards

Re: Flash Remoting and SSL noitaluspacne
6/3/2005 12:09:59 AM
Has anyone had success getting flash remoting to work with SSL?

I am using CF7 with flash remoting. The flash remoting gateway url doesn't
seem to work when it starts with https, but works fine when it starts with
http.

I have no problem viewing .cfm pages using https on the site, so the ssl
certificate and ssl port seem to be setup properly.

Does anyone know where I can find information on how to get flash remoting
setup using SSL? The macromedia site has examples and documentation for non
SSL setups but I haven't been able to find anything about flash remoting with
SSL.

Any help would be much appreciated.

-thanks


Re: Flash Remoting and SSL noitaluspacne
6/3/2005 1:13:45 PM
Problem solved.

The problem I was having was due to serving up the swf file using a non-secure
url while using secure flash remoting.

See this article for the details on security restrictions in Flash 7:
http://www.macromedia.com/devnet/mx/flash/articles/fplayer_security.html
Re: Flash Remoting and SSL aaronexodus
7/5/2005 8:28:45 PM
AddThis Social Bookmark Button