I have not test AMFPHP with Https protocol and I couldn't find any info on running over the secure HTTP.
I see secureAMFEndPoint can be enable in another script or part of AMFPHP code? Or any way to make the login work over HTTP*S* from HTTP*S*?
I use this code
import com.almerblank.utils.ServiceUtility; // Singleton
public var amfphp:ServiceUtility = ServiceUtility.getInstance();
private const GATEWAY:String = 'http://localhost/amfphp/gateway.php';
private const POLICY:String = 'http://localhost/amfphp/crossdomain.xml';