OMA DM最佳实践之二:MD5安全认证

田海立

2012-02-27

DM业务现在是国内运营商要求的必备业务之一。通过DM业务运营商可以掌握用户终端情况和数据使用情况,并是客服模式发生了改变;终端厂商可以降低售后成本,配置参数以及后续版本升级更加方便。中国移动就把DM业务叫做增强售后服务业务。本系列文章针对CMCC的DM业务的终端自注册、安全认证、参数采集,以及参数配置等业务,给出实现它们的最佳实践。

安全认证是CMCCDM业务中除了自注册之外所有的其他业务都需要的。

1. 认证流程

下面以MD5/Base64为例,看终端和Server相互认证的流程。


DM Security#1

DM Security#

DM Security#3

图中,

- 圆角方框内的Credential是通过username:password,以及Nonce计算出来的数值;

- 方框内的NextNonce发给对方,让对方下次计算Credential时使用;

- 椭圆内的数值代表了对对方认证的结果。

2. Credential的计算

设定:

H:利用MD5进行Hash计算;

Credential:MD5进行Hash计算的结果

B64:Base64Encode计算

那么,Credential的计算方法为:

Credential= H(B64(H(uasername:password)):nonce)

其中要特别注意:

图中的流程上所示的NextNonce并不能直接用于公式中nonce,NextNonce为了网络上传输,进行了BaseEncode操作,所以NextNonceDecode之后才能用于Credential的计算。


Many devices cannot continuously listen for connections from a management server. Other devices simply do not wish to “open a port” (i.e. accept connections) for security reasons. However, most devices can receive unsolicited messages, sometimes called “notifications”. Some handsets, for example, can receive SMS messages. Other devices may have the ability to receive other, similar datagram messages. A management server can use this notification capability to cause the client to initiate a connection back to the management server. This connection might be over HTTP, WAP or another transport protocol. The contents of such a “Notification Initiation Alert” might be empty, but the message itself may be signed such that the client can authenticate it. The result of receiving such an alert would be for the client to initiate a connection to the management server that sent the alert. In this scenario, the client might verify that this management server is among those authorized to request such activity. Alternatively, the contents of the alert might indicate that another management server should be contacted. An identical effect of receiving a Notification Initiation Alert can also be caused in other ways. For example, the user interface (UI) of the device may allow the user to tell the client to initiate a management session. Or, the management client might initiate a session as the result of a timer expiring. Of course, a fault of some type in the device could also cause the management client to initiate a session.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值