Hello,
O followed the steps from “How to create a self-signed SSL certificate” tutorial. I’ve been created the certificate but I already don’t understand some points:
-
how to configure my application to use it
-
how to configure the url player and player to access this application.
Can you help me?
Hi,
Please see the article below for configuration details.
How to get SSL certificates from the StreamLock service
The URL in the player needs to point to the StreamLock.net name.
Server: rtmps://StreamLockID.streamlock.net/vod
Stream: mp4:sample.mp4
Regards,
Jason
Hi,
Currently JW Player does not support RTMPS, so that part, at least, is not going to work.
If you were to use HLS in JW Player instead, then you could use HTTPS, which JW player does support.
Daren
Hi,
Please see the article below for configuration details.
How to get SSL certificates from the StreamLock service
The URL in the player needs to point to the StreamLock.net name.
Server: rtmps://StreamLockID.streamlock.net/vod
Stream: mp4:sample.mp4
Regards,
Jason
Jason,
I don’t intend to use StreamLock service for now but a self-signed SSL certificate. I followed the steps below:
-
I created a self-signed SSL certificate named “ssl.dns024967.jks” in the path “C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.0.1\conf”.
-
I modified the VHost.xml file to enable SSL port
I set the SSLConfig/KeyStorePath value to
${com.wowza.wms.context.VHostConfigHome}/conf/ssl.dns024967.jks
and
set
SSLConfig/KeyStorePassword
- My application modules are configurated on the server according this:
base Base com.wowza.wms.module.ModuleCore
logging Client Logging com.wowza.wms.module.ModuleClientLogging
flvplayback FLVPlayback com.wowza.wms.module.ModuleFLVPlayback
ModuleCoreSecurity Core Security Module for Applications com.wowza.wms.security.ModuleCoreSecurity
My Custom Module My Custom Module br.com.bbts.modulos.MyCustomModule
ModuleRequireSecureConnection ModuleRequireSecureConnection com.wowza.wms.plugin.security.ModuleRequire
But There’s a step at the tutorial that I did not understand:
You must configure a domain name entry for the domain chosen above and all communications that use port 443 must use either SSL or RTMPS and the domain name specified in the certificate.
What does it mean?
Look at my player configuration:
[HTML]jwplayer(“myElement1”).setup({
file: “rtmp://dns024967/live/myStream”,
height: 480,
width: 704,
image: “/assets/myVideo.jpg”,
rtmp: {
bufferlength: 1.0,
}
});[/HTML]
In this case I receive the message:
INFO server comment - MediaCasterStreamValidator.init[live/_definst_]: Started
INFO server comment - ModuleCoreSecurity.onAppStart[live/_definst_]: Publish: AllowedEncoders: securityPublishValidEncoders:Wirecast/|FME/|FMLE/
INFO server comment - ModuleCoreSecurity.onAppStart[live/_definst_]: Publish: block duplicate stream names : false
INFO server comment - ModuleCoreSecurity.onAppStart[live/_definst_]: Play: SecureConnection: securityPlayRequireSecureConnection:false
INFO application app-start _definst_ live/_definst_
INFO session connect-pending 10.8.1.172 -
INFO session comment 1418295069 ModuleRequireSecureConnection.onConnect: rejectConnection: clientId:1418295069
INFO session connect 10.8.1.172 -
In another way (the configuration below), i do not identify the request:
[HTML]jwplayer(“myElement2”).setup({
file: “rtmps://ssl.dns024967/live/myStream”,
image: “/assets/myVideo.jpg”,
height: 256,
width: 340
});[/HTML]