2 Replies Latest reply on Feb 23, 2012 11:40 AM by oldMster

    Problems to deploy HTTPS




      I have problems to deploy a web application using SSL. i don´t have problems when i deploy in localhost, but when i deploy (https://www.XXXX.com/nameapllication) in production, the remote objects doesn´t work. I have the the next one crossdomail.xml file (path: https://www.XXXX.com/crossdomail.xml):


      <?xml version="1.0"?>

      <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">


        <allow-access-from domain="*" to-ports="*" secure="true" /> 


      This domain can accept any header from a SWF file on any subdomain of example.com and supports https requests 


        <allow-http-request-headers-from domain="*" headers="*" secure="true" /> 





      <?xml version="1.0" encoding="UTF-8"?>




              <service-include file-path="remoting-config.xml" />

              <service-include file-path="proxy-config.xml" />

              <service-include file-path="messaging-config.xml" />       


          <!-- factory para utilizar beans de spring -->





              <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>


              <security-constraint id="basic-read-access">













              <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">

                  <endpoint url="https://www.XXXX.com/nameapllication/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>










              <target class="flex.messaging.log.ConsoleTarget" level="Error">


                      <prefix>[BlazeDS] </prefix>


































      <?xml version="1.0" encoding="UTF-8"?>

      <service id="remoting-service"




              <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>




              <channel ref="my-secure-amf"/>


      <destination id="getUsers">  



      I don´t know what to do in this case, please help me. The application starts, but when i do something that use the remote objects, nothing is return.

        • 1. Re: Problems to deploy HTTPS
          drkstr_1 Level 4

          Do you have an appropriate SSL cert installed on the server? Does it work if you view the page using https (shouldnt be needed if you have an SSL cert)? Does it work in other browsers like FireFox? What does your crossdomain.xml look like?



          I had a similar issue once with IE, but not FireFox. Viewing the page as https solved it, and then later installing an SSL cert on the server eliminated that requirement.


          Note: I didn't read your services config, but I assume it's good since it works on localhost.

          • 2. Re: Problems to deploy HTTPS
            oldMster Level 3

            If you view the page using https in the browser, and the browser reports any issues with the certificate, the https calls to that URL will not work from flex.