Quantcast
Channel: Ignite Realtime : Popular Discussions - Red5
Viewing all articles
Browse latest Browse all 2000

Red5, http bind with ssl

$
0
0

I am struggling a bit to find out any information about the problem I am having. I have the red5 plugin working on the http bind port of 8080 but I would like to get it working on SSL. In the openfire http bind setting page I have tried setting the ssl port to 8443 but when red5 is running I get this:

 

Error creating bean with name 'rtmpt.server' defined in class path resource [red5-core.xml]: Invocation of init method failed;

 

as well as several net.BindAddress errors in my openfire warn.log:

 

2008.09.08 00:35:56 failed SelectChannelConnector@0.0.0.0:8000
java.net.BindException: Address already in use
    at sun.nio.ch.Net.bind(Native Method)

 

In the openfire error log I get this repeating several times after I try and set the ssl port in the openfire web interface:

 

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Server' defined in class path resource [red5-rtmpt.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
Caused by: java.net.BindException: Address already in use
    at sun.nio.ch.Net.bind(Native Method)

 

Digging through the source code of the bean with id="rtmpt.server" (red5-core.xml) is this:

 

Server rtmptServer = (Server) appCtx.getBean("Server");
rtmptServer.start();

si it looks like the 'server' bean is the root of the problem.

 

I have tried changing the bean with id="server" port values but it didn't help.

 

The port does get set in the openfire database under the key httpbind.port.secure but it is always '0' after I reboot openfire in the web interface.

 

I can see in the red5-rtmpt.xml file that there is a section to uncomment for SSL. I haven't done that and I am a littel unsure of what I am doing so any advice would be appreciated.

 

If I remove the red5 plugin everything seems to go OK but I am unsure how to prove that. I can hit localhost:8443 and be given a 404 which is what I would expect without red5 running.

 

Could anyone please provide any suggestions or hints?


Viewing all articles
Browse latest Browse all 2000

Trending Articles