rtsp摘要认证协议(Response计算方法).docxVIP

  • 38
  • 0
  • 约4.37千字
  • 约 8页
  • 2021-04-13 发布于天津
  • 举报
VodServer/1.0.0 Cseq: VodServer/1.0.0 Cseq: 1 Public: OPTIONS, rtsp 摘要认证协议 (Response 计算方法 ) ,是应用rtsp 摘要认证协议流程 ,是应用 RTSP 协议,全称 Real Time Streaming Protocol 层的协议,它主要实现的功能是传输并控制具有实时特性的 媒体流,如音频( Audio )和视频( Video )。 Rtsp 认证主要 分为两种:基本认证( basic authentication )和摘要认证 digest authentication)。基本认证是 digest authentication )。基本认证是 http 1.0 提出的认 证方案,其消息传输不经过加密转换因此存在严重的安全隐 患。摘要认证是 http 1.1 提出的基本认证的替代方案,其消 息经过 MD5 哈希转换因此具有更高的安全性。下面将以 次与网络摄像机握手的全过程来详细介绍 RTSP 摘要认证的 应用: 摘要认证 Digest authentication [plain] view plaincopyprint? 客户端第一次发起连接请求: OPTIONS rtsp://58:554/11 RTSP/1.0 CSeq: 1 User-Agent: LibVLC/2.0.5(LIVE555 Streaming Media v2012.09.13)服务器端返回服务端信息及 Media v2012.09.13) 服务器端返回服务端信息及 public 方 法: RTSP/1.0 200 OK Server: HiIpcam/V100R003 DESCRIBE, SETUP, TEARDOWN, VodServer/1.0.0 Cseq: VodServer/1.0.0 Cseq: 3 Content-Type: application/sdp PLAY,GET_PARAMETER 客户端再次发起连接: DESCRIBE rtsp://58:554/11 RTSP/1.0 CSeq: 2 User-Agent: LibVLC/2.0.5(LIVE555 Streaming Media v2012.09.13) Accept: application/sdp 服务器端 返回 401 错误,提示未认证并以 nonce 质询: RTSP/1.0 401 Unauthorized Server: HiIpcam/V100R003 VodServer/1.0.0 Cseq: 2 WWW-Authenticate:Digest 客户端realm=HipcamRealServer, nonce=3b27a446bfa49b0c48c3ed 客户端 以用户名,密码, nonce , HTTP 方法,请求的 URI 等信息 为基础产生 response 信息进行反馈(计算方法参考说明) DESCRIBErtsp://58:554/11 RTSP/1.0 CSeq: 3 Authorization: Digest username=admin,realm=Hipcam RealServer, nonce=3b27a446bfa49b0c48c3ed,uri=rtsp: //58:554/11, response=258af9d739589e615f711838a0ff8c58 User-Agent: LibVLC/2.0.5(LIVE555 Streaming Media v2012.09.13) Accept: application/sdp 服务器对客户端 反馈的 response 进行校验,通过则返回如下字段: RTSP/1.0 200 OK Server: HiIpcam/V100R003 VodServer/1.0.0 Cseq: VodServer/1.0.0 Cseq: 4 Session: 430786884314920 Cache-Control: must-revalidateContent-length: 306Content-Base: rtsp://58:554/11/v=0o=StreamingServer 3331435948 1116907222000 INIP458 s=\11 c=IN IP4 b=AS:1032t=0 Cache-Control: must-revalidate Content-length: 306 Content-Base: rtsp://58:554/11/ v=0 o=StreamingServer 3331435948 1116907222000

文档评论(0)

1亿VIP精品文档

相关文档