Flex 4.5 :: RemoteObject And AMFPHP Over SSL With Self-signed Certificate
Nov 2, 2011
I'm trying to connect to AMFPHP over SSL (self-signed) from a Flex 4.5 application.Will this work? Or do I need an authority-signed certificate?Will it silently fail or prompt user like it does in browser?How do I need to edit the services-config.xml file for this to work?
View 1 Replies
Similar Posts:
Jan 2, 2012
I nedd to create a self signed certificate for my desktop app. What do I need to enter in these fields?
Organization unit
Organization name
Does Organization means my agency's name?
View 2 Replies
Dec 16, 2010
I have a demo application using Adobe Air that accesses my own SSL web service that uses a self-signed certificate. In .NET clients, I can explicitly handle (and ignore) certificate warnings and suppress them via the ServicePointManager.ServerCertificateValidationCallback. I've examined the URLRequest and URLLoader classes but haven't found anything.
View 1 Replies
Sep 16, 2010
I have configured FMS 4.0 to do RTMPS on port 443. To test it, I created a self-signed certificate and then imported the certificate as an authority in my browser (Firefox). I don't want to go and get a real certificate until I can verify that FMS is able to do what I want it to.I included the path to the certificate and the private key in Adaptor.xml in <install dir>/conf/_defaultRoot_/That's the only file I have modified.[code]In the NET_STATUS handler I always get the following error: NetConnection.Connect.CertificateUntrustedSigner.
View 1 Replies
Sep 23, 2011
I have a Flash Player ActiveX control embedded in a .NET WinForms application and am trying to load a SWF into the FP control over an HTTPS url. In development I'm using a self-signed certificate and it seems that in this scenario I can't get FP to accept the certificate and allow the HTTPS communications.When I try to load the swf over https directly, I don't see the swf and when I right-click on the control I see "Movie not loaded". I can load the swf over http and then try to make Flash Remoting calls over https. I don't expect this to work by default but I added a crossdomain.xml file to allow insecure communications. The crossdomain.xml file is in the root of the server but is not loaded. I added an explicit call to loadPolicyFile with the full https url and the crossdomain.xml file is still not loaded. The local IIS logs don't show any request for the file at all, nothing in the HTTPERR file, and Flash's policyfiles.txt log says URl...If I host the swf in a browser, then the browser prompts to accept the certificate and everything works fine. I've accepted the certificate in IE and Firefox.I also tried calling DisableLocalSecurity() on the FP ActiveX control but it had no effect. I didn't really expect it to since I'm not actually loading the swf locally, it's loaded from a url.Can anyone confirm if the self-signed cert really is the problem? Is there a way to get FP to accept the certificate? Any way to bypass the http/https restriction (this is a locally installed app so I can change any local config files we need)?
View 1 Replies
Jul 12, 2011
what is a framework RSL and difference between Signed and un-signed framework RSLs in Flex.
View 1 Replies
May 6, 2010
I am looking to subclass RemoteObject. Instead of:
<mx:RemoteObject ... >
<mx:method ... />
<mx:method ... />
[code].....
View 1 Replies
Mar 23, 2011
Basically, I'm using a remote object that access to a secure EndPoint. This EndPoint is located into my server. It means that my channel is a SecureAMFChannel. If I accept the certificat by going directly to this URL with my browser, then I'm able to run my flex application and to exchange some data.However, if I'dont go to this url to accept the server's certificat, and launch my Flex application, the remoteObject is not able to accept the certificat. And of course, any information can be exchanged.
My problem is, how to accept automatically a certificat in a Flex application.Do I need to configure something to accept it? Maybe my manipulation is not correct. my certificat is self-signed, do you think that this problem could be solved by buying a Certificat signed by a CA?
View 1 Replies
Nov 25, 2009
How do I generate a self-signed certificate to sign an adobe AIR app? I'm using the maven flexmojos plugin. I've followed an openssl tutorial to generate a .p12, but now the mvn plugin /adt compiler is telling me that the certificate is not a X509 certificate.
View 1 Replies
Oct 22, 2009
In our flex/air application we are calling a web service over https.The web service is java based and has, at the moment, an untrusted certificate.When doing a POST to the service with some json, the payload on the server side is pretty garbled.A popup does occur asking whether you want to continue and even when I do and add the untrusted certificate into my keychain (on the mac), the data sent through always comes through mangled.I installed charles http proxy to see the actual traffic and it seems at times I'm getting a SSLHandshakeException back...I'm guessing this is causing the garbled data as ssl isn't being setup properly.
View 1 Replies
Feb 9, 2012
I need to get some SSL information (such as the 'issued by' parameter and so on). I know you can get the certificate status with a recent Adobe addition (secureSocket.serverCertificateStatus) but i need to know as much as possible about the certificate and hence my question.
View 1 Replies
Mar 16, 2011
im trying to output my database information in a text input field in flex by using remoteObject(cfc). The information is being provided by a database using a query and an array collection. I'm just unsure how i go about taking the queried array collection information and display it into TextInput Fields.
[Code]...
View 1 Replies
Mar 31, 2010
I have a remoteobject within my main.mxml.I can call a function on the service from an init() function on my main.mxml, and my java debugger triggers a breakpoint.When I move the remoteobject declaration and function call into a custom component (that is declared within main.mxml), the remote function on java-side no longer gets called, no breakpoints triggered, no errors, silence.[code]
View 2 Replies
Nov 1, 2010
"The SSL Certificate is not trusted." dialog occurs in Adobe AIR application. How can I detect this situation before it happens? (Actually I want my app to bypass the warning...) check the following code:
[Code]...
View 1 Replies
Jul 19, 2011
An Adobe FLEX 4 object loads from a webpage and runs in the browser. The connection between browser and server is secured using SSL over HTTP (HTTPS) with a secure certificate from a valid Certificate Authority.
Can FLEX code read the secure certificate information and retrieve information such as to whome the certificate was issued, when it is valid, and for what domain it was issued, etc. ?
View 1 Replies
Oct 1, 2009
In the code below when I call chkAuthentication function from another function the remoteObj.login (login function in my service file (.php)) is called after the remaining code in that function. i.e., the loginStatus is returned from the function before the result-handler function loginResult is called. but my loginStatus is supposed to be set in loginResult function. It seems that the asynchronous behaviour is the culprit. what should I do in order to get the loginResult function to complete first?
[Code]...
View 2 Replies
Oct 21, 2009
I've been tinkering around with Flex RemoteObjects, and I've found that they aren't very well behaved with respect to timing out.First, I can't figure out how to set a timeout on "connect". I know I can set requstTimeout, which will correctly timeout after an initial handshake... But if the server doesn't handshake, the connection doesn't time out (eg, the server accepts the connection, then does nothing with it, the client will just be left hanging).
Second, when a requestTimeout fires (timing out the request), Flex doesn't actually take any steps to tear down the connection - it just leaves it hanging there (no RST or the like). Clearly, this is more than a little bit undesirable. Is there any way to explicitly tear down the connection after the timeout?
View 1 Replies
Aug 24, 2010
I was wondering what is considered to be a best practice when I have multiple components and use RemoteObject for AMF communication with a PHP backend.
Have the RemoteObject in the Main.mxml file with all the methods declared here (with handlers and all) and have all components call functions from the parentApplication, thus having a centralized result and fault handling, but making reusiability more difficult.Have a RemoteObject in each component with only the methods (and handlers) relevant to that component, thus making it easy to have clean, reusable components.
View 1 Replies
Apr 7, 2011
Is it possible to abort a flex remoteObject call? I tried the below method but the http request is still loading in the background:[code]The thing I'm interested in is freeing up the browsers HTTP Pipeline, just like in javascript where you can use abort on the XHR.
View 2 Replies
Apr 29, 2011
I need to make a function that execute a java method and return his result. It is static becouse a lot of other functions will call this function. So I did this:
public static function FKDescription(dest:String):String{
var jRemote:RemoteObject = new RemoteObject();
var s:String;
[Code].....
But the function returns null, because the valresult() was not been called at the end of main function. What shoud I do to make FKDescription() return the string that came from remoteobject?
View 2 Replies
Apr 2, 2009
Is there a way to make synchronous calls using RemoteObject in Flex?
Solution: Add the second call to the result handler of the first call, having a token check for multiple originating calls.
View 9 Replies
Jun 16, 2009
I am in the process of writing an application in Flex 3.3, using the Cairngorm framework, for deployment as an AIR application. The application heavily utilizes RemoteObject services to get data from a web server.Each of my service delegates extends a common class which provides a method for calling service methods on the RemoteObject.So, where I previously usedServiceLocator.getInstance().getRemoteObject('myService').myOperation.send();I instead usethis.send('myOperation', 'myService');I use this method instead of calling the RemoteObject operations directly because this method adds another, global, responder to the operation call. This extra responder analyses data in the headers of reponse from the server.
Or at least it should -- this is where the problem is. In the result data (event as mx.rpc.events.ResultEvent) the headers property is always null despite the headers definitely being sent from the server.
View 1 Replies
Jul 1, 2009
I have a swf which, for some reason, has four RemoteObjects pointing to the same ChannelId, but they are listing that channel as being at two different spots. In four of the five RemoteObjects, everything behaves as expected, but in the fourth (WidgetService), the version on dev is switching from dev.context.root toloc.context.root. To make matters more confusing, it only does this on the dev server (QA and production are fine, as are local builds).The relevant information from the config files follows:
#This is from build.properties, which is used by Ant
#to build the swf on the server
flex.sdk.dir = /path/to/sdk/flex_sdk_3.2.0.3958
[code].....
View 1 Replies
Jan 10, 2010
I am using Google AppEngine, in conjunction with PyAMF to provide RemoteObject support. In my Flex code I make several RemoteObject method calls at once which tends to batch the AMF Messages into a single HTTP request. Most of the time this is fine but AppEngine applies some strict per request limits (in this case I am hitting a DeadlineExceededError - max 30 seconds). A number of service methods are expected to take upwards of 10 seconds and if these are batched by the RemoteObject into 1 HTTP you see where this is going. Now you could say refactor your service calls and that is also going on but not really the question being asked here. Is there a way to prevent Flex RemoteObject from batching AMF requests for situations like this? I have done a fair amount of Googling on the subject and come up with bupkis. It seems to me that I would need to implement a custom version of mx.messaging.channels.AMFChannel or something of that nature, which seems waay too hardcore for a feature like this
View 3 Replies
Jun 10, 2010
I have a Flex app that uses Flash Remoting and the RemoteObject to pull data from a ColdFusion CFC. About 75% of the time it works, but the other times I get a message using Charles (a debugging tool) that says faultString = "Unable to Invoke CFC". FaultCode = "Server.Processing".
Here's my RemoteObject:
<mx:RemoteObject id="carsSvc" destination="ColdFusion" source="ca.sqmIDash.cfc.sqmIdash">
<mx:method name="getCARs" result="resultHandler(event)"/>
</mx:RemoteObject>
The server set up on our web farm is to use load balancing. I'm not sure if this is causing the problem or not. Probably not, but it's a thought.
View 1 Replies
Apr 29, 2011
I am having some issues trying to make an AIR application connect to a RemoteObject when the application is run in a domain that has proxy servers for outbound connection.The error provided is as below:
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://myTestService.org:8080/default/message/amf'"]
View 1 Replies
May 27, 2011
Heres the code:
[Code]....
Unfortunatly, its doesnt reach the eventHandler, when i call the loadCurrentSchem() function. Whats wrong? This is how i call the class:
[code].....
View 1 Replies
Jul 11, 2009
I have a couple of remote object methods that I want to respond to in different ways depending on the context, but I'd rather not set up a bunch of different RemoteObject aliases.Some background: Let's say I have an admin application that displays sales stats in different ways. The remote method looks like:
<mx:RemoteObject id="rpt" destination="AMFServer">
<mx:method name="getSalesStats" fault="getSalesStatsFault(event)"
result = "getSalesStatsSuccess(event)" />[code]........
The getSalesStats method takes an employee ID and a sales type as its arguments. You'd call it like:
rpt.getSalesStats(120, "peanuts");
public function getSalesStatsSuccess(e:ResultEvent):void {
salesdata:ArrayCollection = e.result.rows as ArrayCollection;[code]......
I'd like to pass something through the remote method to the responding function, like:
rpt.getSalesStats(120, "peanuts", "clicked button one");
but that of course throws an error because the server doesn't want that last argument.
View 6 Replies
Nov 11, 2009
If I send remote data from Zend_Amf to Flex, if two array properties on the object have the same data values they are deserialized at the remote end with the same memory storage.Example: AS3 object:
Snippet:
[RemoteClass(alias="TestVO")]
public class TestVO
[code].....
View 2 Replies
Dec 7, 2010
I'm calling ColdFusion cfc method using RemoteObject method of the Flex.
[Code].....
So you can see that I changed the sequence of the parameter, when I call the cfc method. But it does not worked. It means that <s:arguments> does not pass the named parameter. Is there any solution for that? As you can see that I may have some of the arguments not mandatory so, it must be passed by name.
View 1 Replies