Wowza Community

Protect streaming using SecureToken in Wowza Streaming Engine

Hi,

In this case. I have hashCalculated match with hashReceived.

string hashed is: vod/mp4:sample.mp4?mySharedSecret&wowzatokenendtime=1452191364&wowzatokenstarttime=1446191364

my URL request is: http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y=

Why my VLC player error:

Your input can’t be opened:

VLC is unable to open the MRL ‘http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest?wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckr bM60RqzL9Vd7co4u3F5vPFg463Y=’. Check the log for details.

please help me…

log detail:

2015-10-29 23:51:31 ICT comment server INFO 200 - MediaCasterStreamValidator.init[vod/definst]: Started - - - 2030.512 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Publish: AllowedEncoders: securityPublishValidEncoders:Wirecast/|FME/|FMLE/|Wowza GoCoder*|Lavf/|UA Teradek/|KulaByte/ - - - 2030.529 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Publish: block duplicate stream names : false - - - 2030.529 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Play: SecureConnection: securityPlayRequireSecureConnection:false - - - 2030.529 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Play: SecureToken: create:true publish:false play:false SecureToken:true - - - 2030.529 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Play: using SecureToken Version 2, play security enabled for RTMP, RTSP, HLS, HDS, SmoothStreaming and Dash protocols - - - 2030.53 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Play: using SHA-256 for play security - - - 2030.53 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Play: securitySecureTokenIncludeClientIPInHash: false - - - 2030.53 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Play: SecureToken query parameters prefix: wowzatoken - - - 2030.53 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Play: SecureToken token start time query parameter is wowzatokenstarttime - - - 2030.53 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Play: SecureToken token end time query parameter is wowzatokenendtime - - - 2030.53 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onAppStart[vod/definst]: Play: SecureToken token hash query parameter is wowzatokenhash - - - 2030.53 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT app-start application INFO 200 definst vod/definst - - - 2030.536 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onStreamCreate[vod/definst]: Client is null. No Secure Token check. - - - 0.057 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT connect smoothstreaming INFO 200 397301881 - defaultVHost vod definst 0.058 192.168.100.222 1935 http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= 192.168.100.20 http (smooth) - VLC/2.2.1 LibVLC/2.2.1 397301881 0 0 - 0 - - sample.mp4 wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= - - - - http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y=

2015-10-29 23:51:31 ICT create stream INFO 200 sample.mp4 - defaultVHost vod definst 0.001 192.168.100.222 1935 http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= 192.168.100.20 http (smooth) - VLC/2.2.1 LibVLC/2.2.1 397301881 0 0 1 0 0 0 sample.mp4 wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= - - - - http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y=

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onHTTPSessionCreate[vod/definst/sample.mp4]: All security checks passed. - - - 0.058 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:current time stamp: 1446137491 - - - 0.059 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:sessionId: 397301881 - - - 0.059 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:hashReceived: sSkCjEUEP5ZYFckrbM60RqzL9Vd7co4u3F5vPFg463Y= - - - 0.059 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:creating httpToken for SessonId:397301881 uri:/vod/mp4:sample.mp4/Manifest?wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckr bM60RqzL9Vd7co4u3F5vPFg463Y= - - - 0.059 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:client IP: 192.168.100.20 - - - 0.063 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:hashCalculated: sSkCjEUEP5ZYFckrbM60RqzL9Vd7co4u3F5vPFg463Y= - - - 0.063 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:string hashed: vod/mp4:sample.mp4?mySharedSecret&wowzatokenendtime=1452191364&wowzatokenstarttime=1446191364 - - - 0.063 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:token start time stamp: 1446191364 - - - 0.063 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:token end time stamp: 1452191364 - - - 0.064 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]SecureTokenDef:current time, 1446137491, is before token start time, 1446191364 - - - 0.064 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onStreamCreate[vod/definst]: Client is null. No Secure Token check. - - - 0.087 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT connect smoothstreaming INFO 200 998935661 - defaultVHost vod definst 0.088 192.168.100.222 1935 http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= 192.168.100.20 http (smooth) - VLC/2.2.1 LibVLC/2.2.1 998935661 0 0 - 0 - - sample.mp4 wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= - - - - http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y=

2015-10-29 23:51:31 ICT create stream INFO 200 sample.mp4 - defaultVHost vod definst 0.001 192.168.100.222 1935 http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= 192.168.100.20 http (smooth) - VLC/2.2.1 LibVLC/2.2.1 998935661 0 0 2 0 0 0 sample.mp4 wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= - - - - http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y=

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onHTTPSessionCreate[vod/definst/sample.mp4]: All security checks passed. - - - 0.089 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:current time stamp: 1446137491 - - - 0.089 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:sessionId: 998935661 - - - 0.089 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:hashReceived: sSkCjEUEP5ZYFckrbM60RqzL9Vd7co4u3F5vPFg463Y= - - - 0.089 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:creating httpToken for SessonId:998935661 uri:/vod/mp4:sample.mp4/Manifest?wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckr bM60RqzL9Vd7co4u3F5vPFg463Y= - - - 0.089 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:client IP: 192.168.100.20 - - - 0.089 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:hashCalculated: sSkCjEUEP5ZYFckrbM60RqzL9Vd7co4u3F5vPFg463Y= - - - 0.089 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:string hashed: vod/mp4:sample.mp4?mySharedSecret&wowzatokenendtime=1452191364&wowzatokenstarttime=1446191364 - - - 0.09 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:token start time stamp: 1446191364 - - - 0.09 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:token end time stamp: 1452191364 - - - 0.09 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]SecureTokenDef:current time, 1446137491, is before token start time, 1446191364 - - - 0.09 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onStreamCreate[vod/definst]: Client is null. No Secure Token check. - - - 0.1 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT connect smoothstreaming INFO 200 1281755124 - defaultVHost vod definst 0.101 192.168.100.222 1935 http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= 192.168.100.20 http (smooth) - NSPlayer/7.10.0.3059 1281755124 0 0 - 0 - - sample.mp4 wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= - - - - http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y=

2015-10-29 23:51:31 ICT create stream INFO 200 sample.mp4 - defaultVHost vod definst 0.001 192.168.100.222 1935 http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= 192.168.100.20 http (smooth) - NSPlayer/7.10.0.3059 1281755124 0 0 3 0 0 0 sample.mp4 wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= - - - - http://192.168.100.222:1935/vod/mp4:…4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y= http://192.168.100.222:1935/vod/mp4:sample.mp4/Manifest wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckrbM60RqzL9 Vd7co4u3F5vPFg463Y=

2015-10-29 23:51:31 ICT comment server INFO 200 - ModuleCoreSecurity.onHTTPSessionCreate[vod/definst/sample.mp4]: All security checks passed. - - - 0.102 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:current time stamp: 1446137491 - - - 0.102 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:sessionId: 1281755124 - - - 0.102 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:hashReceived: sSkCjEUEP5ZYFckrbM60RqzL9Vd7co4u3F5vPFg463Y= - - - 0.102 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:creating httpToken for SessonId:1281755124 uri:/vod/mp4:sample.mp4/Manifest?wowzatokenstarttime=1446191364&wowzatokenendtime=1452191364&wowzatokenhash=sSkCjEUEP5ZYFckr bM60RqzL9Vd7co4u3F5vPFg463Y= - - - 0.102 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:client IP: 192.168.100.20 - - - 0.102 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:hashCalculated: sSkCjEUEP5ZYFckrbM60RqzL9Vd7co4u3F5vPFg463Y= - - - 0.103 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:string hashed: vod/mp4:sample.mp4?mySharedSecret&wowzatokenendtime=1452191364&wowzatokenstarttime=1446191364 - - - 0.103 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:token start time stamp: 1446191364 - - - 0.103 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]ModuleCoreSecurity:token end time stamp: 1452191364 - - - 0.103 - - - - - - - - - - - - - - - - - - - - - - - - -

2015-10-29 23:51:31 ICT comment server INFO 200 - [vod/definst]SecureTokenDef:current time, 1446137491, is before token start time, 1446191364 - - - 0.103 - - - - - - - - - - - - - - - - - - - - - - - - -

Hi,

It looks like the issue could be due to the last line in your logs:

SecureTokenDef:current time, 1446137491, is before token start time, 1446191364

Please test with a token start time that is before the current time.

Michelle