Expand my Community achievements bar.

Self Signed Cert. For Secure SecureRTMPChannel

Avatar

Level 2
Self Signed Cert. For Secure SecureRTMPChannel



What steps do I need to take to get a self signed certificate
to work with SecureRTMPChannel?



I generate the keystore file with something like this:

keytool -genkey -alias flex2cert -dname "CN=localhost,
OU=Presidio, O=Presidio, L=San Francisco, S=California, C=CA"
-validity 3650



and configure the channel like this:

<channel-definition id="secureRTMP"

class="mx.messaging.channels.SecureRTMPChannel">

<endpoint uri="rtmps://localhost:2099"

class="flex.messaging.endpoints.SecureRTMPEndpoint" />

<properties>

<idle-timeout-minutes>20</idle-timeout-minutes>


<keystore-file>C:/Tomcat/webapps/Presidio/WEB-INF/flex/.keystore</keystore-file>

<keystore-password>changeit</keystore-password>

</properties>

</channel-definition>





The server starts and I see this in the console:

[Flex][INFO] Endpoint secureRTMP created with security: None

at URI: rtmps://localhost:2099

[Flex][WARN] The current license does not support clustering;
clustering for all destinations is disabled.

[Flex][INFO] RTMPS-Server listening on port:2099

[Flex][DEBUG] Created worker thread: RTMPS-Worker-0

[Flex][DEBUG] Created worker thread: RTMPS-Worker-1

[Flex][DEBUG] Created worker thread: RTMPS-Worker-2

[Flex][DEBUG] Created worker thread: RTMPS-Worker-3





When I try to connect I get this:



'secureRTMP' channel got status. (Object)#0

code = "NetConnection.Connect.CertificateUntrustedSigner"

level = "status"





Thank you,

-Vito
1 Reply