Summary of the invention
The technology of the present invention is dealt with problems: overcome the deficiencies in the prior art, a kind of Smart Home safe network implementation method based on intelligent cloud TV gateway be provided, have advantages of safe, confidentiality is strong, and versatility and user experience good.
The technology of the present invention solution: a kind of Smart Home safe network implementation method based on intelligent cloud TV gateway, wherein Smart Home internal network refers to that intelligent cloud TV is as the gateway of user's Smart Home, mutual with the equipment in household internal, and can control the network environment that household internal equipment forms, also referred to as Smart Home Intranet.Intelligence cloud TV refers to the secure storage areas that obtains the device certificate based on PKI digital certificate system and safe read-write can be provided and with ZigBee radio communication suspension member, the uniform outlet as Smart Home to public network communication, also referred to as intelligent cloud TV gateway.Portable UKey refers to a kind of by USB(USB (universal serial bus)) be directly connected, have cryptographic authorization functions, reliable small memory device at a high speed with the Micro-USB mouth of intelligent movable equipment, there is the equipment of equipment room intercommunication module and safety caculation module (as safety chip).Intelligent home device refers to integrated ZigBee radio communication suspension member, has the home equipment of the functions such as detection, control, deal with data.Wherein ZigBee radio communication suspension member refers to the pluggable module that ZigBee communication and safety compute (as safety chip) are provided.
Briefly introduce the basic thought of this programme, the present invention has drawn the advantage of existing solution, and specifically, technical solution of the present invention comprises following several aspect:
Aspect one: in view of user wants oneself home equipment of Remote Visit and Control, be required to be user " key " of opening door is provided, by intelligent cloud TV gateway to UKey initialization, make UKey obtain the digital certificate of the demarcation UKey identity based on PKI certificate system, " key " (safety of signing and issuing of intelligent cloud TV gateway enter license voucher) of opening door and PKI and the sign of intelligent cloud TV gateway, thereby set up the safe and orderly mechanism of permitting the entrance that user accesses oneself Smart Home, become the important safe barrier of Smart Home secure access.
Aspect two: realize the initialization to intelligent home device by obtaining digital certificate UKey, intelligent home device the is obtained credible networking voucher be responsible for signing and issuing by UKey and the PKI that guarantees the intelligent cloud TV gateway of networking information confidentiality, for the fail safe, the reliability that strengthen based on the networking of traditional Z igBee protocol devices, establish solid foundation, guaranteed the legitimacy of networking home equipment.
Aspect three: for fear of the intelligent cloud TV gateway of illegal home equipment access user, steal subscriber household private information, the credible networking voucher that intelligent home device issues by UKey and intelligent cloud TV gateway PKI, realize the mutual trust checking networking with intelligent cloud TV gateway, and consult to obtain the secret key of symmetry of secure communication with intelligent cloud TV gateway, build safety permission mechanism and Intranet house security communication mechanism that intelligent cloud TV gateway is received intelligent home device.
Aspect four: the secret key of communicating by letter of consulting with intelligent home device by intelligent cloud TV gateway, realize both sides' secure communication, prevent that go-between from illegally obtaining family's private data, guarantee confidentiality, the integrality of family data information, further promote the fail safe of the total system of Smart Home.
The present invention compared with prior art, has following remarkable advantage:
User experience is good, versatility, safe, confidentiality is strong.Because the present invention has adopted the Implementation Modes of safe and portable UKey, there is fabulous user-operable, applicable to general intelligent home device; Adopt two-layer voucher technology and symmetrical secret key coded communication technology based on PKI public key cryptography system simultaneously, there is extremely strong confidentiality, the anti-property denied, so user experience is good, versatility, safe, confidentiality is strong.
Embodiment
The present invention, by intelligent cloud TV and portable safety UKey equipment, on traditional Z igBee protocol basis, adopts two-layer voucher and symmetrical secret key communication encryption based on PKI public key cryptography system, sets up Smart Home internal network security service mechanism.This programme is by the two-layer voucher technology based on PKI public key cryptography system, realize the secret key of communicating by letter between the identity map binding of user's intelligent home device and oneself intelligent cloud TV gateway and consulting device, the intelligent home device that guarantees user can only, by oneself intelligent cloud TV gateway institute management and control, improve the personal secrets of subscriber household equipment; By symmetrical secret key coded communication information, guarantee to transmit between household equipment confidentiality, the integrality of data simultaneously, promote the coefficient of safety of intelligent domestic system.Its core is to set up the security service mechanism of Smart Home internal network, forms the controlled Smart Home of secure and trusted, promotes the sound development of Smart Home industry.
For making object of the present invention, advantage and technical scheme clearer, by following concrete, implement, and by reference to the accompanying drawings 1, the present invention is described in more detail.
The General Implementing framework of this scheme has been described on the whole for Fig. 1, in short, the one, it is a kind of by USB(USB (universal serial bus) that user uses UKey(UKey of the present invention to refer to first) be directly connected, have the memory device of cryptographic authorization functions with the Micro-USB mouth of intelligent movable equipment) time, UKey need be inserted on the ZigBee radio communication suspension member interface of intelligent cloud TV gateway TV, by the curing Smart Home App client certificate Cert of UKey
app, the legal credibility of the upper prepackage of checking TV App.After if App checking is credible, App starts PIN(full name Personal Identification Number, is called for short PIN, is exactly the individual recognition code of UKey) interface is set, user successfully arranges after the PIN code of UKey, and public private key pair, TV that UKey generates self sign and issue the security credence Ticket that enters
uKey, TV generates the secret key K of outer Network Communication
outNet, TV PKI K
tV (pub)with sign ID
tV, simultaneously intelligent cloud TV gateway obtains the PKI K of UKey
uKey (pub)with sign ID
uKeythereby, complete the initial work to UKey; The 2nd, user uses UKey to insert intelligent home device D, and intelligent home device D can obtain from UKey the PKI K of intelligent cloud TV gateway
tV (pub)with sign ID
tVand obtain the credible networking voucher Ticket signed and issued by UKey
dthereby, complete the initial work to intelligent home device; The 3rd, user's intelligent home device D completes after initial work, according to credible networking voucher Ticket
dwith intelligent cloud TV gateway PKI K
tV (pub), independently complete with intelligent cloud TV gateway secure and trusted networking and consult both sides' the secret key of communication encryption
realize the identity map binding of user's intelligent home device and oneself intelligent cloud TV gateway; The 4th, user's intelligence cloud TV gateway is by the secret key of communication encryption
the confidentiality of realization to the security control of intelligent home device and assurance intelligent home device transmission information.Mainly comprise tetrameric content below.
One, the implementation method of intelligent cloud TV gateway initialization UKey
User wants oneself home equipment of Remote Visit and Control, is required to be user " key " of opening door is provided, and the UKey initialization of user being carried by intelligent cloud TV gateway, can make UKey acquisition enter and permit voucher Ticket
uKeyand for the initialization of intelligent home device lays the foundation, below in conjunction with accompanying drawing 2, specifically describe its implementation:
(1) when user uses UKey first, UKey is inserted on the ZigBee radio communication suspension member interface of intelligent cloud TV gateway TV, by the curing Smart Home App client certificate Cert of UKey
app, the legal credibility (this legitimate verification principle is) of the upper prepackage of checking TV App, after App checking is credible, UKey and intelligent cloud TV gateway TV set up safe trusting relationship by App;
(2) UKey and intelligent cloud TV gateway TV successfully set up safe trusting relationship, and the Smart Home App client on TV ejects PIN code interface is set, and user successfully arranges after PIN code, and UKey obtains PIN code by App, and then UKey generates public private key pair K
uKey (pub)and K
uKey (pri);
(3) UKey is by self identification ID
uKeywith PKI K
uKey (pub)send intelligent cloud TV gateway TV to;
(4) intelligent cloud TV gateway TV receives UKey sign ID
uKeywith PKI K
uKey (pub)after, rise time stamp TS
tVwith the secret key K of outer Network Communication
outNet, adopt hash algorithm (as SHA1, SHA256) to calculate ID
tV, ID
uKeyand TS
tVcryptographic Hash H=Hash (ID
tV|| ID
uKey|| TS
tV), use intelligent cloud TV gateway TV private key K
tV (pri)private key is encrypted cryptographic Hash H, forms intelligent cloud TV gateway TV signature
(5) intelligent cloud TV gateway TV is used its PKI K
tV (pub)to UKey sign ID
uKeywith time stamp T S
tVencrypt, form TV and use its K
tV (pub)the identification information ciphertext of encrypting
(6) the intelligent cloud TV gateway TV S that will sign
tVwith identification information ciphertext
as the license voucher of entering
License voucher Ticket will enter
uKey, TV PKI K
tV (pub), the secret key K of outer Network Communication
outNetbe handed down to UKey, simultaneously by the sign ID of UKey
uKeywith PKI K
tV (pub)as the important record of UKey, be stored in the secure storage areas of TV;
(7) UKey accepts TV and transmits information, uses and obtains PIN code to its private key K
uKey (pri)with the secret key K of outer Network Communication
outNetbe encrypted respectively protection, form private key ciphertext Enc[K
uKey (pri)]
pINwith the secret key ciphertext of outer Network Communication Enc[K
outNet]
pIN;
(8) UKey is by self identification ID
uKeywith other hardware informations (as memory block capacity and computing chip sign etc.), generate PIN code and protect secret key K
uKey (EncPin)(this secret key dynamic operation in UKey produces and does not preserve, and has strengthened the fail safe of UKey), and by this secret key K
uKey (EncPin)encrypt PIN code, form PIN code ciphertext
(9) UKey will enter and permit voucher Ticket
uKey, TV PKI K
tV (pub), PIN code ciphertext
the secret key ciphertext of outer Network Communication Enc[K
outNet]
pIN, self PKI K
uKey (pub)with private key ciphertext Enc[K
uKey (pri)]
pINas important record storage, the initial work of UKey completes.
The successful realization of this process, sets up the safe and orderly mechanism of permitting the entrance that user accesses oneself Smart Home, becomes the important safe barrier of Smart Home secure access.
Two, the implementation method of UKey initialization intelligent home device
In intelligent home device networking process, to guarantee that intelligent home device D can only be identified by oneself intelligent cloud TV gateway TV of user, to guarantee that this process is safe and reliable simultaneously, here adopt UKey to meet above-mentioned security requirement to the initialization of intelligent home device, UKey after user uses initially inserts intelligent home device D, and intelligent home device D can obtain from UKey the PKI K of intelligent cloud TV
tV (pub)with the credible networking voucher Ticket being signed and issued by UKey
d, below in conjunction with accompanying drawing 3, specifically describe its implementation:
(1) user is inserted in the UKey after initial on the ZigBee radio communication suspension member interface of intelligent home device D, after intelligent home device D identification UKey, by the sign ID of himself
dsend UKey to;
(2) UKey receives the sign ID of home equipment D
d, generate random number N
uKey, adopt hash algorithm (as SHA1, SHA256) to calculate ID
d, ID
uKeyand N
uKeycryptographic Hash H=Hash (ID
uKey|| ID
d|| N
uKey);
(3) UKey is by self identification ID
uKeywith other hardware informations (as memory block capacity and computing chip sign etc.), generate PIN code and protect secret key K
uKey (EncPin), and by this secret key K
uKey (EncPin)the PIN code ciphertext of deciphering UKey storage
Obtain PIN code;
(4) UKey is deciphered and is obtained the UKey private key K being protected by PIN code in memory block by PIN code
uKey (pri), and with obtaining private key K
uKey (pri)(2) step cryptographic Hash is encrypted, form UKey signature
(5) UKey is used the PKI K of intelligent cloud TV gateway
tV (pub)to device identification ID
dand random number N
uKeyencrypt, form UKey and use K
tV (pub)the identification information ciphertext of encrypting
(6) the UKey S that will sign
uKey, identification information ciphertext
with the license voucher Ticket that enters
uKey, as networking voucher
Be handed down to intelligent home device D, intelligent home device D is by this credible networking voucher Ticket
dstorage, the initial work of intelligent home device D completes.
The successful realization of this process, has established solid foundation for the fail safe, the reliability that strengthen based on the networking of traditional Z igBee protocol devices, has guaranteed the legitimacy of networking home equipment.
Three, the implementation method of intelligent cloud TV gateway and intelligent home device mutual trust checking networking
After intelligent home device D initialization completes, mainly by obtaining believable networking voucher Ticket
dwith intelligent cloud TV gateway PKI K
tV (pub), independently carry out secure and trusted networking and consult both sides' the secret key of communication encryption with intelligent cloud TV gateway
realize the identity map binding of user's intelligent home device and oneself intelligent cloud TV gateway, below in conjunction with accompanying drawing 4, specifically describe its implementation:
(1) after intelligent home device D initialization completes, generate random number N D, use this random number N
dto device identification ID
dwith equipment network voucher Ticket
dencrypt, form networking voucher ciphertext
then use intelligent cloud TV gateway PKI K
tV (pub)to N
dencrypt, form random number ciphertext
finally using the subsidiary networking voucher ciphertext of random number ciphertext as equipment network broadcast message
zigBee communication module by intelligent home device D is broadcasted;
(2) intelligent cloud TV gateway TV receives after the networking information of intelligent home device D broadcast, uses its private key K
tV (pri)decrypted random is counted ciphertext, obtains random number N
d, then use N
ddeciphering networking voucher ciphertext, equipment sign ID
dwith equipment network voucher Ticket
d, finally verify networking voucher Ticket
dlegitimacy, intelligent cloud TV gateway is used UKey PKI K
uKey (pub)the signature of checking UKey
obtain cryptographic Hash H=Hash (ID
uKey|| ID
d|| N
uKey), and with intelligent cloud TV gateway private key K
tV (pri)deciphering is used K by UKey
tV (pub)the identification information ciphertext of encrypting
equipment sign ID
drandom number N with UKey generation
uKey, and from its safe storage, obtain UKey sign ID
uKey, adopt identical hash algorithm (as SHA1, SHA256) the calculating ID that signs with UKey
d, N
uKeyand ID
uKeycryptographic Hash H
1=Hash (ID
uKey|| ID
d|| N
uKey), compare cryptographic Hash H and H
1whether equate, if both are not identical, show that UKey is undesired, networking voucher Ticket
dillegal, TV stops next step work; If both are identical, show that UKey is normal, TV is used its PKI K
tV (pub)certifying signature
obtain cryptographic Hash H=Hash (ID
tV|| ID
uKey|| TS
tV), and with its private key K
tV (pri)deciphering is by K
tV (pub)the identification information ciphertext of encrypting
obtain UKey sign ID
uKeytime stamp T S with TV generation
tV, adopt identical hash algorithm (as SHA1, SHA256) the calculating ID that signs with TV
tV, ID
uKeyand TS
tVcryptographic Hash H
1=Hash (ID
tV|| ID
uKey|| TS
tV), compare cryptographic Hash H and H
1whether equate, if both are not identical, show that TV signature is forged, networking voucher Ticket
dillegal, TV stops next step work; If both are identical, show that TV is normal, networking voucher Ticket
dchecking legitimacy, is presented at equipment D information the networking equipment list of intelligent cloud TV gateway; If other legal intelligent home device D in subscriber household
.receive after intelligent home device D broadcast message, will, based on Zigbee protocol as routing node, forward this information of broadcast; If illegal intelligent home device D in user's wired home
*receive after intelligent home device D broadcast message, cannot obtain by N
dthe particular content of enciphered data and initiate man-in-the-middle attack to TV; If intelligent cloud TV gateway requires networking to possess high security and ageing, can control checking networking voucher Ticket
dnumber of times and the time stamp T S of this voucher
tVrealize, i.e. equipment network voucher Ticket
din N
dhave uniqueness, the proving time of the voucher of networking simultaneously can not surpass the certain hour starting from timestamp;
(3) user selects a certain equipment D(in home equipment networking list in intelligent cloud TV gateway TV to operate as added), intelligent cloud TV gateway produces Traffic encryption key(TEK) at random for this equipment D
and by the sign ID of equipment
d, networking voucher Ticket
dand Traffic encryption key(TEK)
as an equipment records, be stored in its secure storage areas;
(4) intelligent cloud TV gateway is used (2) step to obtain random number N
d+ 1 couple of device identification ID
dand Traffic encryption key(TEK)
encrypt, form the secret key ciphertext of communication
by this ciphertext attendant equipment sign ID
dby its ZigBee communication module, broadcast;
(5) intelligent home device D receives after TV broadcast data, uses its (1) step to generate random number N
dthe sign ID of the secret key ciphertext of+1 decrypt communication equipment
dwith the secret key of communication encryption
checking receives the consistency of device identification and deciphering equipment sign, if both verify unanimously, by the secret key of communication encryption
networking voucher Ticket
d, intelligent cloud TV gateway PKI K
tV (pub)as a record, preserve; If both verify inconsistent, intelligent home device D repeats (1) step, if carry out M(M>=1) inferior, the sign ID of acquisition
dobtain sign ID with deciphering
dstill consistent, quit work.If legal intelligent home device D receives after TV broadcast message in subscriber household, by the wireless network protocol based on ZigBee(low speed short-distance transmission, the low-power consumption of an IEEE802.15.4 standard territory fidonetFido) agreement, as routing node, forwards this information of broadcast; If illegal intelligent home device D in subscriber household
*receive after TV broadcast message, cannot obtain by N
dthe particular content of enciphered data, initiates man-in-the-middle attack to intelligent home device D.
The successful execution of this process, intelligent home device and intelligent cloud TV gateway complete mutual trust checking networking and consult the secret key of symmetry of both sides' secure communication, build safety permission mechanism and Intranet house security communication mechanism that intelligent cloud TV gateway is received intelligent home device.
Four, the implementation method of intelligent cloud TV gateway and intelligent home device secure communication
Intelligence cloud TV gateway receives after the remote control commands of intelligent home device D, uses the secret key K of outer Network Communication of its storage
outNet(this K
outNetcorresponding one by one with UKey) this equipment control command of deciphering acquisition, then by the secret key of this equipment D communication encryption
complete and intelligent home device between the safe access control of information, below in conjunction with accompanying drawing 5, specifically describe its implementations:
(1) intelligent cloud TV gateway TV receive intelligent home device D remote control commands (this command format:
use UKey sign ID in intelligent cloud TV gateway secure storage areas
uKeythe corresponding secret key K of outer Network Communication
outNetto ciphertext instruction
be decrypted, obtain the sign ID of this equipment
dwith control command cmd;
(2) Intelligent television terminal gateway TV is used Traffic encryption key(TEK) corresponding to home equipment D in its secure storage areas
to device identification ID
dencrypt with control command cmd, forming device D Intranet is encrypted control command
the Intranet generating is encrypted to control command attendant equipment sign ID
d, the ZigBee-network module by intelligent cloud TV gateway is by this control information
Broadcast;
(3) intelligent home device D receives after the information of intelligent cloud TV gateway TV broadcast, with the secret key of communication encryption of its storage
to encrypting control command
be decrypted, obtain control command cmd and sign ID
d, checking obtains sign ID
dwhether consistent with self identification, if checking is consistent, home equipment D carries out these data of data data(data after the execution that this control command cmd obtains this order and comprises obtaining information after the exectorial state of home equipment or home equipment fill order, as the humiture value information of Intelligent electric lamp switch state, intelligent temperature and humidity equipment); If verify inconsistently, home equipment D does not do any operation.If legal intelligent home device D receives after TV broadcast message in subscriber household, will, based on Zigbee protocol as routing node, forward this information of broadcast; If illegal intelligent home device D in subscriber household
*receive after TV broadcast message, cannot obtain the particular content of encrypted instruction and initiate man-in-the-middle attack to D;
(4) intelligent home device D obtains data Data and intelligent home device D sign ID by instruction successful execution
d, with the secret key of intelligent home device D communication encryption
encrypt, form enciphered data
d is by subsidiary its sign of enciphered data ID
das return data
zigBee communication module by D is broadcasted;
(5) intelligent cloud TV gateway TV receives the return data of D broadcast
after, utilize equipment sign ID
dsearch Traffic encryption key(TEK) corresponding to home equipment D in secure storage areas
and use
decrypt encrypted data
obtain the device identification ID encrypting
dwith executing data data, the sign ID that checking directly obtains
dobtain sign ID with deciphering
dwhether consistent, if checking is consistent, use UKey sign ID in (1) step
uKeythe corresponding secret key K of outer Network Communication
outNetto sign ID
dencrypt with data data, form outer net and encrypt execution result
and outer net is encrypted to the subsidiary UKey sign of execution result ID
uKeyas partial data record
send to remote control terminal; If verify inconsistently, intelligent cloud TV gateway repeats (2) step, if carry out M(M>=1) inferior, the sign ID of acquisition
dobtain sign ID with deciphering
dstill consistent, return to execution unsuccessfully to remote control terminal.If other legal intelligent home device D in subscriber household
.receive after intelligent home device D broadcast message, by the wireless network protocol based on ZigBee(low speed short-distance transmission, the low-power consumption of an IEEE802.15.4 standard territory fidonetFido) agreement is as routing node, and this information is broadcasted in forwarding; If illegal intelligent home device D in subscriber household
*receive after intelligent home device D broadcast message, cannot obtain the particular content of encrypted data, to TV, initiate man-in-the-middle attack.
The successful execution of this process, realizes the secure communication of Smart Home Intranet, prevents that go-between from illegally obtaining family's private data and launching a offensive, and guarantees confidentiality, the integrality of family data information, further promotes the fail safe of the total system of Smart Home.
Non-elaborated part of the present invention belongs to techniques well known.
The above; be only part embodiment of the present invention, but protection scope of the present invention is not limited to this, in the technical scope that any those skilled in the art disclose in the present invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.