Skip to main content
Participant
September 16, 2010
Question

Configuring RTMPS with a self-signed certificate

  • September 16, 2010
  • 1 reply
  • 1343 views

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.

My ActionScript looks something like this:

var nc:NetConnection = new NetConnection();

nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);

nc.proxyType = "best";

nc.connect("rtmps://blah");

In the NET_STATUS handler I always get the following error: NetConnection.Connect.CertificateUntrustedSigner.

I don't understand why I am getting this error as I have installed the certificate as an authority in my browser.

Any thoughts?

Thanks

    This topic has been closed for replies.

    1 reply

    Participant
    October 8, 2011

    It's a long time ago, but here my answer: Flash does not accept self-signed certificates. You need to have a real certificate signed by a certificate authority. I know a certificate authority which does it for free.