Secure Socket Policy File issues
Ok, this is a bit of an odd one. Little background: The site is internal - so rather than a second IP to handle socket connections, we're using port 8088. We are also making both a secure and non-secure connection.
I wrote two simple java socket servers to respond to policy file requests - one insecure on 843 and one secure on 844. Both appear to be working as expected. My logs show the request comes in on :843 and the policy file is sent. Logs also show the request comes in on :844 and the policy file is sent.
If I don't serve a policy on 843 then the policy file on 844 is never read.
In order for the secure policy to be read - I added this in one the class files:
Security.loadPolicyFile("tlssocket://mydomain.com:844");
The policy file is the same for both.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>
The error that's being thrown suggests that sure enough the policy file is being read - however, it's complaining about the <site-control> tag and stops??
*** Security Sandbox Violation ***
Connection to mydomain.com:8088 halted - not permitted from https://mydomain.com/includes/myswf.swf?nocache=111115102420
Warning: Ignoring <site-control> tag in policy file from tlssocket://mydomain.com:844. This tag is only allowed in master policy files.
Has anyone run into issues like this serving secure policy files?
