KR20240060128A - A device that enhances the communication security of the home network - Google Patents

A device that enhances the communication security of the home network Download PDF

Info

Publication number
KR20240060128A
KR20240060128A KR1020220141398A KR20220141398A KR20240060128A KR 20240060128 A KR20240060128 A KR 20240060128A KR 1020220141398 A KR1020220141398 A KR 1020220141398A KR 20220141398 A KR20220141398 A KR 20220141398A KR 20240060128 A KR20240060128 A KR 20240060128A
Authority
KR
South Korea
Prior art keywords
controlled device
pin
control device
tls
controlled
Prior art date
Application number
KR1020220141398A
Other languages
Korean (ko)
Inventor
남태양
Original Assignee
주식회사 맥시오
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 맥시오 filed Critical 주식회사 맥시오
Priority to KR1020220141398A priority Critical patent/KR20240060128A/en
Publication of KR20240060128A publication Critical patent/KR20240060128A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0891Revocation or update of secret information, e.g. encryption key update or rekeying
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)

Abstract

본 발명은 더욱 상세하게는 홈 네트워크에서 제어 장치와 피제어 장치 간의 통신에 있어서 보안성을 보장하기 위한 방법에 관한 것으로, 본 발명에 의하면, 홈 네트워크에서 제어 장치는 사용자로부터 입력받은 피제어 장치의 PIN을 이용하여 피제어 장치와 TLS-PSK 프로토콜을 통해 안전한 인증 채널을 생성하고, 이러한 채널을 통해 비밀 키를 공유하며, 공유된 비밀 키를 이용하여 TLS-PSK 프로토콜을 통해 생성된 안전한 인증 채널을 통해 피제어 장치의 서비스를 이용함으로써 홈 네트워크에서 통신 보안성이 보장되는 프레임 워크를 쉽게 구현할 수 있다.The present invention more specifically relates to a method for ensuring security in communication between a control device and a controlled device in a home network. According to the present invention, in a home network, a control device receives input from a user. Using the PIN, a secure authentication channel is created with the controlled device through the TLS-PSK protocol, a secret key is shared through this channel, and the shared secret key is used to create a secure authentication channel created through the TLS-PSK protocol. By using the services of the controlled device, it is possible to easily implement a framework that guarantees communication security in a home network.

Description

홈 네트워크의 통신보안성을 강화하는 장치{A device that enhances the communication security of the home network}A device that enhances the communication security of the home network}

본 발명은 홈 네트워크에 관한 것으로, 더욱 상세하게는 홈 네트워크에서 제어 장치와 피제어 장치 간의 통신에 있어서 보안성을 보장하기 위한 방법에 관한 것이다.The present invention relates to home networks, and more specifically, to a method for ensuring security in communication between a control device and a controlled device in a home network.

홈 네트워크 기술이 발달함에 따라 다양한 종류의 홈 디바이스들이 디지털 정보에 액세스할 수 있게 되었고, 사용자는 다양한 디바이스들을 이용하여 홈 네트워크에서 제공되는 서비스를 이용할 수 있게 되었다.As home network technology develops, various types of home devices can access digital information, and users can use services provided by home networks using various devices.

그러나, 보안성 있는 프레임 워크가 없다면, 사용자의 개인 데이터를 포함한 디지털 정보가 악의의 공격자에게 노출될 수 있다. 공개 키 암호화 시스템은 일반적으로 기밀성(confidentiality) 및 완전성(integrity)를 제공하지만, 키들의 분배는 신뢰성 있는 제3자(trusted third party) 없이는 중간자 공격(man-in-the-middle attack)에 의해 깨지기 쉽다.However, without a secure framework, digital information, including users' personal data, may be exposed to malicious attackers. Public key cryptography systems generally provide confidentiality and integrity, but the distribution of keys is susceptible to man-in-the-middle attacks without a trusted third party. easy.

일반적으로 홈 네트워크는 중앙 통제(central administration)에 의한 인프라스트럭쳐에 의존하지 않고 동적으로 셋업되므로, 신뢰성 있는 제3자에 대한 가정 없이 키 분배 스킴을 구현할 필요가 있다.In general, home networks are set up dynamically without relying on infrastructure by central administration, so it is necessary to implement a key distribution scheme without assuming a trusted third party.

예를 들면, UPnP(Universal Plug and Play)를 기반으로 하는 홈 네트워크에서, 홈 네트워크 외부로부터 진입한 CP(Control Point)가 모든 홈 디바이스들이 제공하는 서비스를 아무런 제약 없이 이용할 수 있게 해서는 안된다.For example, in a home network based on UPnP (Universal Plug and Play), a CP (Control Point) entering from outside the home network should not be able to use the services provided by all home devices without any restrictions.

대한민국 공개특허공보 10-2016-0138761 (2016.12.06 공개)Republic of Korea Patent Publication No. 10-2016-0138761 (published on December 6, 2016)

본 발명은 홈 네트워크에서 제어 장치와 피제어 장치 간의 통신 보안성을 보장하는 장치 및 방법을 제공한다.The present invention provides an apparatus and method for ensuring communication security between a control device and a controlled device in a home network.

이러한 목적을 달성하기 위한 본 발명은, 홈 네트워크에서 제어 장치가 피제어 장치와 안전하게 통신하는 방법에 있어서, 상기 피제어 장치에 제조시부터 부여된 식별자인 PIN을 이용하여 TLS-PSK 프로토콜을 통해 상기 피제어 장치와 안전한 인증 채널(SAC, Secure Authenticated Channel)을 생성하는 단계; 비밀 키를 생성하는 단계; 및 상기 생성된 SAC을 통해 상기 생성된 비밀 키를 상기 피제어 장치와 공유함으로써 상기 제어 장치를 상기 피제어 장치에 등록하는 단계를 포함하는 것을 특징으로 한다.The present invention to achieve this purpose is a method for a control device to safely communicate with a controlled device in a home network, using the PIN, an identifier assigned to the controlled device from the time of manufacture, through the TLS-PSK protocol. Creating a secure authentication channel (SAC) with a controlled device; generating a secret key; and registering the control device with the controlled device by sharing the generated secret key with the controlled device through the generated SAC.

상기 통신 방법은, 상기 등록 단계가 수행된 이후 상기 피제어 장치가 다시 발견되면, 상기 공유된 비밀 키를 이용하여 TLS-PSK 프로토콜을 통해 상기 피제어 장치와 안전한 인증 채널(SAC, Secure Authenticated Channel)을 생성하는 단계를 더 포함하는 것이 바람직하다.The communication method is, when the controlled device is discovered again after the registration step is performed, a secure authentication channel (SAC, Secure Authenticated Channel) is established with the controlled device through the TLS-PSK protocol using the shared secret key. It is desirable to further include the step of generating.

상기 SAC를 생성하는 단계는, 상기 제어 장치가 임의로 생성한 값을 세션 ID로 사용하는 TLS 세션 재개(session resumption) 프로토콜을 이용하여 상기 TLS-PSK 프로토콜을 구현하며, 상기 TLS 세션 재개(session resumption) 프로토콜의 ClientHello 메시지는 TLS 세션 재개 프로토콜을 이용한 TLS-PSK 프로토콜임을 나타내는 정보를 포함하는 것이 바람직하다.The step of generating the SAC implements the TLS-PSK protocol using a TLS session resumption protocol that uses a value randomly generated by the control device as a session ID, and the TLS session resumption It is desirable that the ClientHello message of the protocol includes information indicating that it is a TLS-PSK protocol using the TLS session resumption protocol.

상기 통신 방법은, 상기 비밀 키를 이용하여 생성된 SAC을 통해, 상기 제어 장치를 등록한 피제어 장치들의 PIN들을 상기 피제어 장치에게 송신하고, 상기 피제어 장치에 저장된 PIN들을 상기 피제어 장치로부터 수신함으로써 상기 피제어 장치와 PIN 목록을 동기화하는 단계를 더 포함하며, 상기 PIN을 이용하여 SAC을 생성하는 단계는, 상기 피제어 장치가 발견되면, 상기 피제어 장치의 PIN이 상기 PIN 목록에 존재하는지 판단하는 단계; 및 상기 판단 결과 상기 피제어 장치의 PIN이 상기 PIN 목록에 존재하지 않는 경우 사용자 인터페이스를 통해 상기 피제어 장치의 PIN을 요청하는 단계를 포함하는 것이 바람직하다.The communication method transmits PINs of controlled devices that have registered the control device to the controlled device through a SAC generated using the secret key, and receives PINs stored in the controlled device from the controlled device. It further includes the step of synchronizing the controlled device and the PIN list, and the step of generating a SAC using the PIN includes determining whether the PIN of the controlled device exists in the PIN list when the controlled device is found. judging step; and requesting the PIN of the controlled device through a user interface if the PIN of the controlled device does not exist in the PIN list as a result of the determination.

상기 통신 방법은, 사용자 인터페이스를 통해 입력된 명령에 따라 상기 제어 장치에서 상기 비밀 키를 삭제하는 단계를 더 포함하는 것이 바람직하다.The communication method preferably further includes deleting the secret key from the control device according to a command input through a user interface.

상기 통신 방법은, 사용자 인터페이스를 통해 입력된 명령에 따라, 상기 피제어 장치에 저장된 비밀 키들 중 적어도 하나를 상기 비밀 키를 이용하여 생성된 SAC을 통해 삭제하는 단계를 더 포함하는 것이 바람직하다.The communication method preferably further includes the step of deleting at least one of the secret keys stored in the controlled device through a SAC generated using the secret key, according to a command input through a user interface.

또한, 본 발명은 상기 통신 방법을 실행하는 컴퓨터 프로그램을 기록한 기록 매체를 제공한다.Additionally, the present invention provides a recording medium on which a computer program executing the above communication method is recorded.

또한, 본 발명은 홈 네트워크에서 제어 장치가 피제어 장치와 안전하게 통신하도록 하는 장치에 있어서, 상기 피제어 장치에 제조시부터 부여된 식별자인 PIN을 이용하여 TLS-PSK 프로토콜을 통해 상기 피제어 장치와 안전한 인증 채널(SAC, Secure Authenticated Channel)을 생성하는 등록채널생성부; 및 비밀 키를 생성하고, 상기 생성된 비밀 키를 상기 생성된 SAC을 통해 상기 피제어 장치와 공유함으로써 상기 제어 장치를 상기 피제어 장치에 등록하는 등록수행부를 포함하는 것을 특징으로 한다In addition, the present invention relates to a device that allows a control device to safely communicate with a controlled device in a home network, by using a PIN, an identifier assigned to the controlled device from the time of manufacture, to communicate with the controlled device through the TLS-PSK protocol. A registration channel generator that creates a secure authentication channel (SAC); and a registration performing unit that generates a secret key and registers the control device with the controlled device by sharing the generated secret key with the controlled device through the generated SAC.

본 발명에 따르면, 홈 네트워크에서 통신 보안성이 보장되는 프레임 워크를 쉽게 구현할 수 있다.According to the present invention, it is possible to easily implement a framework that guarantees communication security in a home network.

도 1은 본 발명의 일 실시예에 따라 제어 장치가 피제어 장치를 제어하는 과정을 나타낸 순서도,
도 2는 본 발명의 일 실시예에 따라 제어 장치를 피제어 장치에 등록하는 방법을 설명하기 위한 흐름도,
도 3은 본 발명의 일 실시예에 따라 피제어 장치에 등록된 제어 장치가 피제어 장치를 제어하는 방법을 설명하기 위한 흐름도,
도 4는 본 발명의 일 실시예에 따라 TLS 세션 재개 프로토콜을 이용하여 TLS-PKS 프로토콜을 구현하는 방법을 설명하기 위한 흐름도,
도 5는 본 발명의 일 실시예에 따라 PIN을 관리하는 방법을 설명하기 위한 도면,
도 6은 본 발명의 일 실시예에 따라 PIN을 관리하는 제어 장치의 동작 과정을 나타낸 순서도,
도 7은 본 발명의 일 실시예에 따른 제어 장치의 구조를 나타낸 도면이다.
1 is a flowchart showing a process by which a control device controls a controlled device according to an embodiment of the present invention;
2 is a flowchart illustrating a method of registering a control device with a controlled device according to an embodiment of the present invention;
3 is a flowchart illustrating a method by which a control device registered with a controlled device controls a controlled device according to an embodiment of the present invention;
Figure 4 is a flowchart illustrating a method of implementing the TLS-PKS protocol using the TLS session resumption protocol according to an embodiment of the present invention;
5 is a diagram for explaining a method of managing a PIN according to an embodiment of the present invention;
6 is a flowchart showing the operation process of a control device for managing a PIN according to an embodiment of the present invention;
Figure 7 is a diagram showing the structure of a control device according to an embodiment of the present invention.

이하에서 첨부된 도면을 참조하여, 본 발명의 바람직한 실시예를 상세히 설명한다.Hereinafter, with reference to the attached drawings, preferred embodiments of the present invention will be described in detail.

도 1은 본 발명의 일 실시예에 따라 제어 장치가 피제어 장치를 제어하는 과정을 나타낸 순서도이다.Figure 1 is a flowchart showing a process by which a control device controls a controlled device according to an embodiment of the present invention.

본 발명의 일 실시예에 따르면, 피제어 장치는 자신에게 등록된 제어 장치에게만 안전한 인증 채널(SAC, Secure Authenticated Channel), 즉 안전한 서비스 채널을 통해 서비스를 제공한다. 따라서, 피제어 장치는 인증된 제어 장치만을 등록해야 하며, 이러한 등록 역시 SAC, 즉 안전한 등록 채널을 통해 수행되어야 한다.According to one embodiment of the present invention, the controlled device provides services through a secure authentication channel (SAC, Secure Authenticated Channel), that is, a secure service channel, only to the control devices registered to the controlled device. Therefore, the controlled device must register only authenticated control devices, and this registration must also be performed through SAC, that is, a secure registration channel.

예를 들면, 제어 장치는 UPnP 네트워크에서의 CP(Control Point)이고, 피제어 장치는 UPnP 디바이스가 될 수 있으며, UPnP 디바이스는 미리 정해진 특정 서비스들에 대하여는 등록된 CP에게만 SAC를 통해 제공하도록 설계될 수 있다. 또한, 본 발명의 구현을 위해 UPnP 디바이스에 새로운 액션들이 정의될 수 있을 것이다.For example, the control device may be a CP (Control Point) in a UPnP network, the controlled device may be a UPnP device, and the UPnP device may be designed to provide certain predetermined services through SAC only to registered CPs. You can. Additionally, new actions may be defined in UPnP devices to implement the present invention.

단계 110에서, 제어 장치는 PIN(Product Identification Number)을 이용하여 TLS-PSK(Transport Layer Security based on Pre-Shared Key, PSK ciphersuites for TLS) 프로토콜을 통해 SAC를 생성한다. 여기서, PIN은 상기 피제어 장치에 제조시부터 부여된 식별자를 의미한다. 이러한 PIN은 피제어 장치의 내부 또는 외부에 기록된 형태로, 또는 피제어 장치와는 별도로 피제어 장치를 구매한 사용자에게 제공될 수 있다.In step 110, the control device generates a SAC through the Transport Layer Security based on Pre-Shared Key (TLS-PSK, PSK ciphersuites for TLS) protocol using a Product Identification Number (PIN). Here, PIN refers to an identifier assigned to the controlled device from the time of manufacture. This PIN may be recorded inside or outside the controlled device, or may be provided to a user who purchases the controlled device separately from the controlled device.

TLS(Transport Layer Security)는 인터넷에서의 통신 보안을 위해 사용되는 프로토콜인데, TLS-PSK 은 공개 키 인증서 대신 미리 공유된 대칭 키(symmetric key)를 이용하여 TLS를 구현함으로써 공개 키를 이용한 인증 과정에 요구되는 복잡한 연산을 회피하도록 설계된 프로토콜이며, TLS-PSK 프로토콜에 의해 제어 장치와 피제어 장치 간에 SAC이 생성될 수 있다. TLS는 RFC 4346, TLS-PSK는 RFC 4279에 정의되어 있으므로, 이에 대한 자세한 설명은 여기서는 생략한다.TLS (Transport Layer Security) is a protocol used for communication security on the Internet. TLS-PSK implements TLS using a pre-shared symmetric key instead of a public key certificate, enabling the authentication process using a public key. It is a protocol designed to avoid the complex calculations required, and SAC can be created between the control device and the controlled device by the TLS-PSK protocol. TLS is defined in RFC 4346 and TLS-PSK is defined in RFC 4279, so detailed descriptions thereof are omitted here.

단계 120에서, 제어 장치는 생성된 SAC, 즉 안전한 등록 채널을 통해 피제어 장치에 자신을 등록한다. 피제어 장치에 제어 장치가 등록된다는 것은 제어 장치가 자신이 생성한 비밀 키를 SAC를 통해 피제어 장치에게 송신함을 의미한다. 즉, 등록 과정이 완료되면, 제어 장치와 피제어 장치는 동일한 비밀 키를 공유한다.In step 120, the control device registers itself with the controlled device through the created SAC, that is, a secure registration channel. Registering a control device with a controlled device means that the control device transmits the secret key it created to the controlled device through SAC. That is, when the registration process is completed, the control device and the controlled device share the same secret key.

단계 130에서, 제어 장치와 피제어 장치는 공유된 비밀 키를 이용하여 TLS-PSK 프로토콜을 통해 SAC를 생성한다. 단계 110에서 생성된 SAC는 제어 장치를 피제어 장치에 등록하기 위해 사용되는 등록 채널이며, 단계 130에서 생성된 SAC는 피제어 장치에 등록된 제어 장치가 피제어 장치를 제어함으로써 피제어 장치의 서비스를 제어 장치에게 제공하기 위해 사용되는 서비스 채널이다.In step 130, the control device and the controlled device generate a SAC through the TLS-PSK protocol using a shared secret key. The SAC created in step 110 is a registration channel used to register the control device to the controlled device, and the SAC created in step 130 is a service of the controlled device by controlling the controlled device registered in the controlled device. It is a service channel used to provide to the control device.

단계 140에서, 제어 장치는 단계 130에서 생성된 SAC를 통해 피제어 장치를 제어한다.In step 140, the control device controls the controlled device through the SAC generated in step 130.

도 2는 본 발명의 일 실시예에 따라 제어 장치를 피제어 장치에 등록하는 방법을 설명하기 위한 흐름도이다. 즉, 본 실시예에서는 제어 장치가 피제어 장치에 등록되어 있지 않은 것으로 가정한다.Figure 2 is a flowchart illustrating a method of registering a control device with a controlled device according to an embodiment of the present invention. That is, in this embodiment, it is assumed that the control device is not registered with the controlled device.

단계 201에서, 제어 장치는 피제어 장치를 발견(discover)한다. 예를 들면, 이러한 과정은 UPnP 네트워크에서 SSDP(Simple Service Discovery Protocol)을 통한 디스커버리에 해당한다.In step 201, the control device discovers the controlled device. For example, this process corresponds to discovery through SSDP (Simple Service Discovery Protocol) in a UPnP network.

단계 202에서, 제어 장치는 피제어 장치에게 등록된 제어 장치의 목록을 요청한다. 이러한 요청을 위해 UPnP 디바이스에 새로운 액션이 정의될 수 있다.In step 202, the control device requests a list of registered control devices from the controlled device. A new action can be defined in the UPnP device for these requests.

단계 203에서, 피제어 장치는 제어 장치에게 등록된 제어 장치의 목록을 송신한다. 본 실시예에서는 제어 장치가 피제어 장치에 등록되어 있지 않은 것으로 가정하였으므로, 제어 장치는 사용자 인터페이스를 통해 사용자에게 피제어 장치의 PIN을 요청한다.In step 203, the controlled device transmits a list of registered control devices to the control device. In this embodiment, since it is assumed that the control device is not registered with the controlled device, the control device requests the PIN of the controlled device from the user through the user interface.

단계 204에서, 제어 장치는 사용자 인터페이스를 통해 사용자로부터 피제어 장치의 PIN을 입력받는다. 따라서, PIN은 제어 장치와 피제어 장치에 의해 공유된다.In step 204, the control device receives the PIN of the controlled device from the user through the user interface. Therefore, the PIN is shared by the controlling device and the controlled device.

단계 205에서, 제어 장치와 피제어 장치는 공유된 PIN을 이용하여 TLS-PSK 프로토콜을 통해 SAC를 생성한다. 이 때 생성된 SAC는 제어 장치를 피제어 장치에 등록하기 위한 등록 채널이다.In step 205, the control device and the controlled device generate a SAC through the TLS-PSK protocol using the shared PIN. The SAC created at this time is a registration channel for registering the control device with the controlled device.

단계 206에서, 제어 장치는 임의로 비밀 키를 생성한다.At step 206, the control device randomly generates a secret key.

단계 207에서, 제어 장치는 생성된 비밀 키를 SAC를 통해 피제어 장치에게 송신한다.In step 207, the control device transmits the generated secret key to the controlled device through SAC.

단계 208에서, 피제어 장치는 수신된 비밀 키를 저장한다. 이와 같은 과정을 통해 비밀 키는 제어 장치와 피제어 장치 간에 공유되며, 공유된 비밀 키는 추후 서비스 채널을 TLS-PSK 프로토콜을 통해 생성하는 데 사용된다.At step 208, the controlled device stores the received secret key. Through this process, the secret key is shared between the control device and the controlled device, and the shared secret key is later used to create a service channel through the TLS-PSK protocol.

한편, 사용자는 제어 장치에서 더 이상 특정 피제어 장치를 제어하지 못하도록 하려는 경우가 생길 수 있다. 단계 209 내지 단계 210에서 피제어 장치를 취소(revoke)하는 절차를 설명한다.Meanwhile, a user may wish to prevent the control device from controlling a specific controlled device any longer. The procedure for revoking the controlled device in steps 209 to 210 will be described.

단계 209에서, 사용자는 제어 장치의 사용자 인터페이스를 통해 특정 피제어장치에 대한 취소 명령을 입력한다. 사용자가 피제어 장치를 식별할 수 있도록 사용자 인터페이스에는 피제어 장치의 friendly name이나 모델명 등이 표시될 수 있다.In step 209, the user inputs a cancel command for a specific controlled device through the user interface of the control device. The user interface may display a friendly name or model name of the controlled device so that the user can identify the controlled device.

단계 210에서, 제어 장치는 사용자가 지정한 피제어 장치에 대한 디바이스 ID, 비밀 키 등의 정보를 삭제한다.In step 210, the control device deletes information such as device ID and secret key for the controlled device designated by the user.

도 3은 본 발명의 일 실시예에 따라 피제어 장치에 등록된 제어 장치가 피제어 장치를 제어하는 방법을 설명하기 위한 흐름도이다. 본 실시예에서는 제어 장치가 이미 피제어 장치에 등록되어 있는 것으로 가정한다.Figure 3 is a flowchart illustrating a method by which a control device registered with a controlled device controls a controlled device according to an embodiment of the present invention. In this embodiment, it is assumed that the control device is already registered with the controlled device.

단계 301에서, 제어 장치는 피제어 장치를 발견한다.In step 301, the controlling device discovers the controlled device.

단계 302에서, 제어 장치는 피제어 장치에게 등록된 제어 장치의 목록을 요청한다.In step 302, the control device requests a list of registered control devices from the controlled device.

단계 304에서, 제어 장치는 수신된 목록을 참조하여 피제어 장치에 자신이 등록되어 있음을 확인한다. 등록된 제어 장치를 나타내기 위해 등록된 제어 장치의 목록에는 제어 장치의 디바이스 ID가 사용될 수 있으며, 디바이스 ID로는 디바이스를 특정할 수 있는 것이면 어떠한 정보도 사용 가능하다. 예를 들면, 제어 장치의 MAC 어드레스를 사용할 수 있다.In step 304, the control device verifies that it is registered in the controlled device by referring to the received list. The device ID of the control device can be used in the list of registered control devices to indicate the registered control device, and any information that can specify the device can be used as the device ID. For example, the MAC address of the control device can be used.

단계 305에서, 제어 장치는 저장된 비밀 키를 이용하여 TLS-PSK 프로토콜을 통해 피제어 장치와 SAC를 생성한다. 제어 장치가 피제어 장치에 등록이 되어 있다는 것은 제어 장치와 피제어 장치가 이미 비밀 키를 공유하고 있음을 의미한다.In step 305, the control device creates a SAC with the controlled device through the TLS-PSK protocol using the stored secret key. The fact that the control device is registered with the controlled device means that the control device and the controlled device already share a secret key.

단계 306에서, 제어 장치는 단계 305에서 생성한 SAC를 통해 피제어 장치의 서비스를 이용한다.In step 306, the control device uses the service of the controlled device through the SAC created in step 305.

한편, 사용자는 피제어 장치에 등록된 제어 장치들 중 특정 제어 장치들을 취소(revoke)하려는 경우가 있을 수 있다. 이러한 과정은 단계 307 내지 단계 309에 도시하였다.Meanwhile, the user may wish to revoke specific control devices among the control devices registered with the controlled device. This process is shown in steps 307 to 309.

단계 307에서, 사용자는 제어 장치의 사용자 인터페이스를 통해 피제어 장치에 등록된 제어 장치들 중 특정 제어 장치에 대한 취소 명령을 입력한다. 사용자가 등록된 제어 장치들을 식별할 수 있도록 사용자 인터페이스에는 제어 장치들의 friendly name이나 모델명 등이 표시될 수 있다.In step 307, the user inputs a cancellation command for a specific control device among the control devices registered with the controlled device through the user interface of the control device. The user interface may display the friendly names or model names of the control devices so that the user can identify the registered control devices.

단계 308에서, 제어 장치는 단계 305에서 생성된 SAC를 통해 피제어 장치에게 사용자가 지정한 제어 장치를 취소(revoke)하도록 요청한다. 이러한 취소는 피제어 장치가 제공하는 서비스에 포함될 수 있으며, UPnP에서는 새로운 액션으로 정의될 수 있다. 따라서, 제어 장치의 취소 요청은 서비스 채널을 통해서만 이루어질 수 있다.In step 308, the control device requests the controlled device to revoke the user-designated control device through the SAC generated in step 305. This cancellation can be included in the service provided by the controlled device, and can be defined as a new action in UPnP. Therefore, the control device's cancellation request can only be made through the service channel.

단계 309에서, 피제어 장치는 해당 제어 장치에 대한 정보, 예를 들면 제어 장치 ID, 피제어 장치가 해당 제어 장치와 공유하는 비밀 키 등을 삭제한다. 따라서, 해당 제어 장치는 피제어 장치와 더 이상 비밀 키를 공유하지 못하므로, 피제어 장치와 서비스 채널을 생성할 수 없으며, 결국 피제어 장치의 서비스를 이용할 수 없다.In step 309, the controlled device deletes information about the controlling device, such as the controlling device ID and the secret key shared by the controlled device with the controlling device. Therefore, the control device can no longer share the secret key with the controlled device, so it cannot create a service channel with the controlled device, and ultimately cannot use the service of the controlled device.

도 4는 본 발명의 일 실시예에 따라 TLS 세션 재개 프로토콜을 이용하여 TLS-PKS 프로토콜을 구현하는 방법을 설명하기 위한 흐름도이다.Figure 4 is a flowchart illustrating a method of implementing the TLS-PKS protocol using the TLS session resumption protocol according to an embodiment of the present invention.

TLS-PKS는 RFC 4279에 기반하여 구현할 수 있다. 그러나, 현재 TLS 1.1을 구현한 대부분의 디바이스들이 RFC 4279를 지원하지 않는다. 따라서, TLS 프로토콜을 사용하는 기존 디바이스들의 프로토콜 스택의 변화를 최소화하기 위해 RFC 4279를 지원하지 않는 디바이스에서 TLS-PKS를 구현할 필요가 있다. 본 실시예에서는 TLS 세션 재개(session resumption) 프로토콜을 이용하여 TLS-PKS를 구현하는 방법을 설명한다.TLS-PKS can be implemented based on RFC 4279. However, most devices that currently implement TLS 1.1 do not support RFC 4279. Therefore, it is necessary to implement TLS-PKS in devices that do not support RFC 4279 in order to minimize changes to the protocol stack of existing devices that use the TLS protocol. This embodiment describes a method of implementing TLS-PKS using the TLS session resumption protocol.

세션 재개(session resumption) 프로토콜은 TLS를 통해 서버와 클라이언트가인증을 완료한 후, 세션이 종료되었다가 다시 세션을 재개할 때 공개 키 연산들(예를 들면 RSA)를 중복 수행하지 않도록 세션 ID를 이용하여 인증 과정을 생략하는 것이다.The session resumption protocol uses a session ID to avoid performing duplicate public key operations (e.g. RSA) when resuming a session after the server and client complete authentication through TLS. This is used to skip the authentication process.

단계 401에서, 제어 장치는 세션 ID, ciphers, 난수 R1을 피제어 장치에게 송신한다. 이 때, 세션 ID는 제어 장치가 임의로 선택한다. 예를 들면, 제어 장치 ID 및/또는 피제어 장치 ID가 세션 ID로 사용될 수 있다.In step 401, the control device transmits the session ID, ciphers, and random number R1 to the controlled device. At this time, the session ID is randomly selected by the control device. For example, the control device ID and/or the controlled device ID may be used as the session ID.

이러한 정보들은 세션 재개 프로토콜의 ClientHello 메시지에 포함되어 피제어 장치에게 전달된다. 따라서, TLS 세션 재개 프로토콜을 이용한 TLS-PSK 프로토콜임을 나타내는 정보가 ClientHello 메시지에 포함되는 것이 바람직하다. 예를 들면, ciphers(cipher suites) 또는 세션 ID에 포함될 수 있다.This information is included in the ClientHello message of the session resumption protocol and delivered to the controlled device. Therefore, it is desirable that information indicating that it is a TLS-PSK protocol using the TLS session resumption protocol is included in the ClientHello message. For example, it may be included in ciphers (cipher suites) or session IDs.

단계 402에서, 피제어 장치는 ClientHello 메시지에 포함된 정보를 통해 제어 장치가 TLS 세션 재개 프로토콜을 이용한 TLS-PSK 프로토콜을 요청하였음을 인지한다. 따라서, 세션 ID의 유효성을 판단하지 않고 수신된 세션 ID와 동일한 세션 ID, cipher, 난수 R2 및 Hash(S, 제어장치ID, 피제어장치ID, R1, R2)를 제어 장치에게 송신한다. 여기서, S는 TLS 세션 재개 프로토콜에서 PreMasterSecret으로 사용되는 값이며, 본 실시예에서는 사용자가 입력한 피제어 장치의 PIN이 S로 할당된다. 단계 402에서 수신된 해쉬 값을 통해 제어 장치는 피제어 장치가 PreMasterSecret S를 가지고 있음을 확인할 수 있다.In step 402, the controlled device recognizes that the controlling device has requested the TLS-PSK protocol using the TLS session resumption protocol through information included in the ClientHello message. Therefore, without determining the validity of the session ID, the same session ID, cipher, random number R2, and Hash (S, control device ID, controlled device ID, R1, R2) as the received session ID are transmitted to the control device. Here, S is a value used as PreMasterSecret in the TLS session resumption protocol, and in this embodiment, the PIN of the controlled device entered by the user is assigned to S. Through the hash value received in step 402, the control device can confirm that the controlled device has PreMasterSecret S.

단계 403에서, 제어 장치는 자신도 PreMasterSecret S를 가지고 있음을 피제어 장치에게 알리기 위해 Hash(S, R1, R2)를 계산하고, 그 결과를 피제어 장치에게 송신한다.In step 403, the control device calculates Hash(S, R1, R2) to inform the controlled device that it also has PreMasterSecret S, and transmits the result to the controlled device.

단계 404에서, 피제어 장치는 제어 장치에게 프로토콜이 성공적으로 종료되었음을 알리는 Finished 메시지를 송신한다.In step 404, the controlled device transmits a Finished message notifying the control device that the protocol has been successfully terminated.

도 5는 본 발명의 일 실시예에 따라 PIN을 관리하는 방법을 설명하기 위한 도면이다.Figure 5 is a diagram for explaining a method of managing a PIN according to an embodiment of the present invention.

지금까지의 실시예에 따르면, 홈 네트워크에서 사용자는 제어 장치 또는 피제어 장치가 바뀔 때마다 등록 절차를 수행하기 위해 피제어 장치의 PIN을 알아내고, 제어 장치의 사용자 인터페이스를 통해 PIN을 입력해야 한다. 본 실시예에서는 이러한 번거로움을 줄이기 위한 방법을 제시한다.According to the embodiment so far, in a home network, the user must find out the PIN of the controlled device and enter the PIN through the user interface of the controlling device to perform a registration procedure every time the control device or controlled device changes. . This embodiment presents a method to reduce this inconvenience.

본 실시예에서, 제어 장치와 피제어 장치는 모두 PIN 리스트를 관리하며, 제어 장치는 피제어 장치에 등록할 때마다 PIN 리스트를 동기화한다. PIN 리스트에는 피제어 장치 ID와 PIN이 매핑된 테이블 형태의 정보가 기록될 수 있다. 도 5를 참조하여 더욱 구체적으로 살펴보도록 한다.In this embodiment, both the control device and the controlled device manage the PIN list, and the control device synchronizes the PIN list each time it registers with the controlled device. In the PIN list, information in the form of a table in which the controlled device ID and PIN are mapped may be recorded. Let's look at it in more detail with reference to Figure 5.

사용자는 처음으로 제어 장치1(510)을 피제어 장치1(535)에 등록한다. 즉, 제어 장치1(510)의 PIN 목록(520)에 피제어 장치1(530)의 PIN이 기록된다. 이 때, 피제어 장치1(530)도 PIN 목록(535)에 자신의 PIN을 기록한다.The user registers control device 1 (510) with controlled device 1 (535) for the first time. That is, the PIN of controlled device 1 (530) is recorded in the PIN list 520 of control device 1 (510). At this time, controlled device 1 (530) also records its PIN in the PIN list (535).

다음으로, 사용자는 제어 장치1(510)을 피제어 장치2(540)에 등록한다. 따라서, 제어 장치1(510)의 PIN 목록(520)에 피제어 장치2(540)의 PIN이 추가된다. 이 때, 제어 장치1(510)은 자신의 PIN 목록(520)을 피제어 장치2(540)의 PIN 목록(545)과 동기화한다. 따라서, 피제어 장치2(545)의 PIN 목록(545)에는 피제어 장치1(530) 및 피제어 장치2(540)의 PIN이 기록된다.Next, the user registers control device 1 (510) with controlled device 2 (540). Accordingly, the PIN of controlled device 2 (540) is added to the PIN list 520 of control device 1 (510). At this time, control device 1 (510) synchronizes its PIN list (520) with the PIN list (545) of controlled device 2 (540). Accordingly, the PINs of controlled device 1 (530) and controlled device 2 (540) are recorded in the PIN list 545 of controlled device 2 (545).

이와 같은 방식으로 제어 장치1(510)이 피제어 장치1(530), 피제어 장치2(540), ..., ,피제어 장치N(550)에 등록 절차를 완료하게 되면, 도 5에 도시된 바와 같이 제어 장치1(510)의 PIN 목록(520)과 피제어 장치N(550)의 PIN 목록(555)에는 N개의 피제어 장치들의 PIN이 모두 기록된다.In this way, when control device 1 (510) completes the registration process with controlled device 1 (530), controlled device 2 (540), ..., , controlled device N (550), as shown in Figure 5 As shown, the PINs of all N controlled devices are recorded in the PIN list 520 of control device 1 (510) and the PIN list 555 of controlled device N (550).

이후, 사용자는 새로운 제어 장치인 제어 장치2(570)를 이용하여 홈 네트워크에 접속한다. 사용자는 제어 장치2(570)를 피제어 장치N(550)에 등록하기 위해 제어 장치2(570)의 사용자 인터페이스를 통해 피제어 장치N(550)의 PIN을 입력한다.Afterwards, the user connects to the home network using the new control device, Control Device 2 (570). In order to register control device 2 (570) with controlled device N (550), the user enters the PIN of controlled device N (550) through the user interface of control device 2 (570).

제어 장치2(570)가 피제어 장치N(550)에 등록되면, 둘은 PIN 목록을 동기화하는데, 피제어 장치N(550)의 PIN 목록(555)에는 이미 모든 피제어 장치들의 PIN들이 기록되어 있으므로, 제어 장치2(575)에도 역시 모든 피제어 장치들의 PIN들이 기록된다.When control device 2 (570) is registered with controlled device N (550), the two synchronize the PIN list, and the PIN list (555) of controlled device N (550) already records the PINs of all controlled devices. Therefore, the PINs of all controlled devices are also recorded in control device 2 (575).

이후, 사용자가 제어 장치2(570)를 다른 피제어 장치, 예를 들면 피제어 장치1(530)에 등록하려고 할 때, 사용자는 피제어 장치1(530)의 PIN을 제어 장치2(570)에 입력하지 않아도 된다. 피제어 장치1(530)의 PIN은 이미 제어 장치2(570)의 PIN 목록(575)에 기록되어 있기 때문이다.Afterwards, when the user tries to register control device 2 (570) with another controlled device, for example, controlled device 1 (530), the user enters the PIN of controlled device 1 (530) into control device 2 (570). You do not need to enter it. This is because the PIN of controlled device 1 (530) is already recorded in the PIN list (575) of controlled device 2 (570).

도 6은 본 발명의 일 실시예에 따라 PIN을 관리하는 제어 장치의 동작 과정을 나타낸 순서도이다.Figure 6 is a flowchart showing the operation process of a control device that manages a PIN according to an embodiment of the present invention.

단계 610에서, 제어 장치는 등록된 제어 장치의 목록을 피제어 장치로부터 수신한다.In step 610, the control device receives a list of registered control devices from the controlled device.

단계 620에서, 제어 장치는 목록에 기록된 디바이스 ID들 중 자신의 디바이스 ID가 포함되어 있는지를 검사하여 자신이 피제어 장치에 등록되어 있는지를 판단한다. 만약 등록되어 있다면, 단계 680으로 진행하고, 등록되어 있지 않다면 단계 630으로 진행한다.In step 620, the control device determines whether it is registered in the controlled device by checking whether its own device ID is included among the device IDs recorded in the list. If registered, proceed to step 680; if not, proceed to step 630.

단계 680에서, 제어 장치는 저장된 비밀 키를 추출한다. 제어 장치가 피제어 장치에 등록되어 있다는 것은 이미 비밀 키를 공유하고 있음을 의미하기 때문이다.At step 680, the control device extracts the stored secret key. This is because the fact that the control device is registered with the controlled device means that the secret key is already shared.

단계 690에서, 제어 장치와 피제어 장치는 비밀 키를 이용하여 TLS-PSK를 통해 SAC를 생성한다. 이 때 생성된 SAC는 피제어 장치의 서비스를 이용하기 위해 사용되는 채널이다.In step 690, the control device and the controlled device generate a SAC through TLS-PSK using a secret key. The SAC created at this time is a channel used to use the service of the controlled device.

단계 630 및 단계 640에서, 제어 장치는 PIN 목록을 검색하여 피제어 장치의 PIN을 찾는다. 만약 제어 장치의 PIN 목록에 피제어 장치의 PIN이 존재하면 단계 660으로, 그렇지 않으면 단계 650으로 진행한다.In steps 630 and 640, the control device searches the PIN list to find the PIN of the controlled device. If the PIN of the controlled device exists in the PIN list of the controlling device, the process proceeds to step 660. Otherwise, the process proceeds to step 650.

단계 650에서, 제어 장치는 사용자 인터페이스를 통해 사용자로부터 피제어 장치의 PIN을 입력받는다.In step 650, the control device receives the PIN of the controlled device from the user through the user interface.

단계 660에서, 제어 장치와 피제어 장치는 공유된 PIN을 이용하여 TLS-PSK 프로토콜을 통해 SAC을 생성한다. 이 때 생성된 SAC은 제어 장치를 제어 장치에 등록하기 위해 사용된다.In step 660, the control device and the controlled device generate a SAC through the TLS-PSK protocol using the shared PIN. The SAC created at this time is used to register the control device with the control device.

단계 670에서, 제어 장치는 단계 660에서 생성된 SAC을 통해 피제어 장치에게 비밀 키를 송신함으로써 등록 절차를 수행한다. 전술한 바와 같이, 비밀 키는 제어 장치가 임의로 생성할 수 있다.In step 670, the control device performs a registration procedure by transmitting a secret key to the controlled device through the SAC generated in step 660. As described above, the secret key can be randomly generated by the control device.

단계 675에서, 제어 장치와 피제어 장치는 단계 660에서 생성된 SAC을 통해 PIN 목록을 동기화한다. 따라서, 제어 장치와 피제어 장치는 동일한 PIN 목록을 가지게 된다. 단계 690은 전술한 바와 같다.In step 675, the control device and the controlled device synchronize the PIN list through the SAC created in step 660. Therefore, the control device and the controlled device have the same PIN list. Step 690 is as described above.

도 7은 본 발명의 일 실시예에 따른 제어 장치의 구조를 나타낸 도면이다.Figure 7 is a diagram showing the structure of a control device according to an embodiment of the present invention.

도 7에 도시된 바와 같이, 본 발명의 일 실시예에 따른 제어 장치(700)는 사용자 인터페이스(710), 제어장치 취소부(720), 피제어장치 취소부(730), 등록채널 생성부(740), 저장부(750), 등록 수행부(760), 서비스채널 생성부(770) 및 PIN 목록 동기화부(780)를 포함하며, 등록채널 생성부(740)는 PIN 검색부(741) 및 PIN 입력부(742)를 포함한다.As shown in FIG. 7, the control device 700 according to an embodiment of the present invention includes a user interface 710, a control device cancellation unit 720, a controlled device cancellation unit 730, and a registration channel creation unit ( 740), a storage unit 750, a registration performance unit 760, a service channel creation unit 770, and a PIN list synchronization unit 780. The registration channel creation unit 740 includes a PIN search unit 741 and Includes a PIN input unit 742.

사용자 인터페이스(710)는 사용자로부터 제어 장치 취소 명령, 피제어 장치취소 명령, 제어 장치의 PIN 등을 입력받고, 사용자에게 알리기 위한 다양한 정보를 표시한다.The user interface 710 receives a control device cancellation command, a controlled device cancellation command, and a PIN of the control device from the user, and displays various information to inform the user.

등록 채널 생성부(740)는 사용자가 입력한 피제어 장치(도시하지 않음)의 PIN을 이용하여 TLS-PSK 프로토콜을 통해 피제어 장치와 SAC를 생성한다. 등록 채널 생성부(740)는 TLS 세션 재개 프로토콜을 이용하여 TLS-PSK 프로토콜을 구현하기 위해 임의로 선택된 값을 TLS 세션 재개 프로토콜에서의 세션 ID로 사용하며, 이 때 ClientHello 메시지는 TLS 세션 재개 프로토콜을 이용한 TLS-PSK 프로토콜임을 나타내는 정보를 포함하는 것이 바람직하다.The registration channel creation unit 740 uses the PIN of the controlled device (not shown) entered by the user to create a controlled device and a SAC through the TLS-PSK protocol. The registration channel creation unit 740 uses a randomly selected value as a session ID in the TLS session resumption protocol to implement the TLS-PSK protocol using the TLS session resumption protocol. At this time, the ClientHello message is generated using the TLS session resumption protocol. It is desirable to include information indicating that it is a TLS-PSK protocol.

피제어 장치가 발견되면, PIN 검색부(741)는 저장부(750)에 저장된 PIN 목록에서 제어 장치(700)의 PIN이 있는지 검색한다. PIN 입력부(742)는 만약 PIN 목록에 제어 장치(700)의 PIN이 없으면, 사용자 인터페이스(710)를 통해 사용자로부터 PIN을 입력받는다.When the controlled device is found, the PIN search unit 741 searches for the PIN of the control device 700 in the PIN list stored in the storage unit 750. If there is no PIN of the control device 700 in the PIN list, the PIN input unit 742 receives the PIN from the user through the user interface 710.

등록 수행부(760)는 비밀 키를 생성하여 저장부(750)에 저장하고, 생성된 비밀 키를 등록 채널 생성부(740)가 생성한 SAC를 통해 피제어 장치에게 안전하게 송신함으로써 제어 장치(700)를 피제어 장치에 등록한다.The registration performing unit 760 generates a secret key, stores it in the storage unit 750, and safely transmits the generated secret key to the controlled device through the SAC generated by the registration channel generating unit 740, thereby controlling the control device 700. ) is registered in the controlled device.

서비스채널 생성부(770)는 제어 장치(700)와 피제어 장치가 공유하는 비밀 키를 이용하여 TLS-PSK 프로토콜을 통해 피제어 장치와 SAC를 생성한다.The service channel generator 770 creates a SAC with the controlled device through the TLS-PSK protocol using a secret key shared by the control device 700 and the controlled device.

PIN 목록 동기화부(780)는 등록이 완료되면 PIN 목록을 피제어 장치와 동기화하여 저장부(750)에 저장한다.When registration is completed, the PIN list synchronization unit 780 synchronizes the PIN list with the controlled device and stores it in the storage unit 750.

제어장치 취소부(720)는 사용자 인터페이스(710)를 통해 사용자가 특정 피제어 장치에 대한 취소 명령을 입력하면, 저장부(750)에서 해당 피제어 장치에 관한 정보, 예를 들면 디바이스 ID, 공유된 비밀 키 등을 삭제한다.When a user inputs a cancellation command for a specific controlled device through the user interface 710, the control device cancellation unit 720 stores information about the controlled device in the storage unit 750, such as device ID, sharing information, etc. Delete the secret key, etc.

피제어장치 취소부(730)는 사용자 인터페이스(710)를 통해 사용자가 피제어장치에 등록된 특정 제어 장치에 대한 취소 명령을 입력하면, 서비스채널 생성부(770)에 의해 생성된 SAC를 통해 피제어 장치에게 해당 제어 장치에 관한 취소를 요청한다. 이러한 요청을 받은 피제어 장치는 해당 제어 장치에 관한 정보, 예를 들면 디바이스 ID, 피제어 장치가 해당 제어 장치와 공유하는 비밀 키 등을 삭제한다.When a user inputs a cancellation command for a specific control device registered to the controlled device through the user interface 710, the controlled device cancellation unit 730 receives the canceled device through the SAC generated by the service channel creation unit 770. Request cancellation for the control device. The controlled device that receives this request deletes information about the corresponding controlling device, such as device ID and secret key shared by the controlled device with the corresponding controlling device.

한편, 상술한 본 발명의 실시예들은 컴퓨터에서 실행될 수 있는 프로그램으로 작성가능하고, 컴퓨터로 읽을 수 있는 기록매체를 이용하여 상기 프로그램을 동작시키는 범용 디지털 컴퓨터에서 구현될 수 있다.Meanwhile, the above-described embodiments of the present invention can be written as a program that can be executed on a computer, and can be implemented in a general-purpose digital computer that operates the program using a computer-readable recording medium.

상기 컴퓨터로 읽을 수 있는 기록매체는 마그네틱 저장매체(예를 들면, 롬, 플로피 디스크, 하드디스크 등), 광학적 판독 매체(예를 들면, 시디롬, 디브이디 등) 및 캐리어 웨이브(예를 들면, 인터넷을 통한 전송)와 같은 저장매체를 포함한다.The computer-readable recording media include magnetic storage media (e.g., ROM, floppy disk, hard disk, etc.), optical read media (e.g., CD-ROM, DVD, etc.), and carrier wave (e.g., Internet including storage media such as transmission through

이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far, the present invention has been examined focusing on its preferred embodiments. A person skilled in the art to which the present invention pertains will understand that the present invention may be implemented in a modified form without departing from the essential characteristics of the present invention. Therefore, the disclosed embodiments should be considered from an illustrative rather than a restrictive perspective. The scope of the present invention is indicated in the claims rather than the foregoing description, and all differences within the equivalent scope should be construed as being included in the present invention.

Claims (11)

홈 네트워크에서 제어 장치가 피제어 장치와 안전하게 통신하는 방법에 있어서,
상기 제어 장치의 사용자 인터페이스를 통해 상기 피제어 장치에 제조시부터 부여된 식별자인 PIN을 수신하는 단계;
상기 피제어 장치에 제조시부터 부여된 식별자인 PIN을 이용하여 TLS-PSK 프로토콜을 통해 상기 피제어 장치와 안전한 인증 채널(SAC, Secure Authenticated Channel)을 생성함으로써, 상기 피제어 장치와의 인증을 수행하는 단계;
비밀 키를 생성하는 단계; 및
상기 생성된 SAC을 통해 상기 생성된 비밀 키를 상기 피제어 장치와 공유함으로써 상기 제어 장치를 상기 피제어 장치에 등록하는 단계;
상기 제어 장치의 PIN 목록에 상기 피제어 장치의 PIN을 기록하는 단계; 및
상기 피제어 장치와 상기 제어 장치의 PIN 목록을 동기화하는 단계를 포함하는 것을 특징으로 하는 방법.
In a method for a control device to safely communicate with a controlled device in a home network,
Receiving a PIN, which is an identifier assigned to the controlled device from the time of manufacture, through the user interface of the control device;
Authentication with the controlled device is performed by creating a secure authentication channel (SAC, Secure Authenticated Channel) with the controlled device through the TLS-PSK protocol using the PIN, which is an identifier assigned to the controlled device from the time of manufacture. steps;
generating a secret key; and
registering the control device with the controlled device by sharing the generated secret key with the controlled device through the generated SAC;
recording the PIN of the controlled device in the PIN list of the control device; and
A method comprising synchronizing PIN lists of the controlled device and the control device.
제 1항에 있어서,
상기 등록 단계가 수행된 이후 상기 피제어 장치가 다시 발견되면, 상기 공유된 비밀 키를 이용하여 TLS-PSK 프로토콜을 통해 상기 피제어 장치와 안전한 인증 채널(SAC, Secure Authenticated Channel)을 생성하는 단계를 더 포함하는 것을 특징으로 하는 방법.
According to clause 1,
If the controlled device is discovered again after the registration step is performed, a step of creating a secure authentication channel (SAC, Secure Authenticated Channel) with the controlled device through the TLS-PSK protocol using the shared secret key. A method characterized by further comprising:
제 1항에 있어서,
상기 SAC를 생성하는 단계는,
상기 제어 장치가 임의로 생성한 값을 세션 ID로 사용하는 TLS 세션 재개(session resumption) 프로토콜을 이용하여 상기 TLS-PSK 프로토콜을 구현하며, 상기 TLS 세션 재개(session resumption) 프로토콜의 ClientHello 메시지는 TLS 세션 재개 프로토콜을 이용한 TLS-PSK 프로토콜임을 나타내는 정보를 포함하는 것을 특징으로 하는 방법.
According to clause 1,
The step of generating the SAC is,
The TLS-PSK protocol is implemented using a TLS session resumption protocol that uses a value randomly generated by the control device as a session ID, and the ClientHello message of the TLS session resumption protocol resumes the TLS session. A method characterized in that it includes information indicating that it is a TLS-PSK protocol using the protocol.
제 2항에 있어서,
상기 비밀 키를 이용하여 생성된 SAC을 통해, 상기 제어 장치를 등록한 피제어 장치들의 PIN들을 상기 피제어 장치에게 송신하고, 상기 피제어 장치에 저장된 PIN들을 상기 피제어 장치로부터 수신함으로써 상기 피제어 장치와 PIN 목록을 동기화하는 단계를 더 포함하며,
상기 PIN을 이용하여 SAC을 생성하는 단계는,
상기 피제어 장치가 발견되면, 상기 피제어 장치의 PIN이 상기 PIN 목록에 존재하는지 판단하는 단계; 및
상기 판단 결과 상기 피제어 장치의 PIN이 상기 PIN 목록에 존재하지 않는 경우 사용자 인터페이스를 통해 상기 피제어 장치의 PIN을 요청하는 단계를 포함하는 것을 특징으로 하는 방법.
According to clause 2,
Through the SAC generated using the secret key, the PINs of the controlled devices that have registered the control device are transmitted to the controlled device, and the PINs stored in the controlled device are received from the controlled device, thereby controlling the controlled device. and synchronizing the PIN list with
The step of creating a SAC using the PIN is:
When the controlled device is found, determining whether the PIN of the controlled device exists in the PIN list; and
As a result of the determination, if the PIN of the controlled device does not exist in the PIN list, requesting the PIN of the controlled device through a user interface.
제 1항에 있어서,
사용자 인터페이스를 통해 입력된 명령에 따라 상기 제어 장치에서 상기 비밀 키를 삭제하는 단계를 더 포함하는 것을 특징으로 하는 방법.
According to clause 1,
The method further comprising deleting the secret key from the control device according to a command input through a user interface.
제 2항에 있어서,
사용자 인터페이스를 통해 입력된 명령에 따라, 상기 피제어 장치에 저장된 비밀 키들 중 적어도 하나를 상기 비밀 키를 이용하여 생성된 SAC을 통해 삭제하는 단계를 더 포함하는 것을 특징으로 하는 방법.
According to clause 2,
The method further comprising deleting at least one of the secret keys stored in the controlled device through a SAC generated using the secret key, according to a command input through a user interface.
홈 네트워크에서 제어 장치가 피제어 장치와 안전하게 통신하도록 하는 장치에 있어서,
상기 피제어 장치에 제조시부터 부여된 식별자인 PIN을 수신하는 사용자 인터페이스부;
상기 피제어 장치에 제조시부터 부여된 식별자인 PIN을 이용하여 TLS-PSK 프로토콜을 통해 상기 피제어 장치와 안전한 인증 채널(SAC, Secure Authenticated Channel)을 생성함으로써, 상기 피제어 장치와의 인증을 수행하는 등록채널생성부; 및
비밀 키를 생성하고, 상기 생성된 비밀 키를 상기 생성된 SAC을 통해 상기 피제어 장치와 공유함으로써 상기 제어 장치를 상기 피제어 장치에 등록하는 등록수행부;
상기 제어 장치의 PIN 목록에 상기 피제어 장치의 PIN을 기록함으로써 상기 피제어 장치와 상기 제어 장치의 PIN 목록을 동기화하는 PIN 목록 동기화부를 포함하는 것을 특징으로 하는 장치.
In a device that allows a control device to safely communicate with a controlled device in a home network,
a user interface unit that receives a PIN, which is an identifier assigned to the controlled device from the time of manufacture;
Authentication with the controlled device is performed by creating a secure authentication channel (SAC, Secure Authenticated Channel) with the controlled device through the TLS-PSK protocol using the PIN, which is an identifier assigned to the controlled device from the time of manufacture. a registration channel creation unit; and
a registration performing unit that generates a secret key and registers the control device with the controlled device by sharing the generated secret key with the controlled device through the generated SAC;
A device comprising a PIN list synchronization unit that synchronizes the PIN list of the controlled device and the control device by recording the PIN of the controlled device in the PIN list of the control device.
제 7항에 있어서,
상기 등록 단계가 수행된 이후 상기 피제어 장치가 다시 발견되면, 상기 공유된 비밀 키를 이용하여 TLS-PSK 프로토콜을 통해 상기 피제어 장치와 안전한 인증 채널(SAC, Secure Authenticated Channel)을 생성하는 서비스채널생성부를 더 포함하는 것을 특징으로 하는 장치.
According to clause 7,
If the controlled device is discovered again after the registration step is performed, a service channel that creates a secure authentication channel (SAC, Secure Authenticated Channel) with the controlled device through the TLS-PSK protocol using the shared secret key. A device characterized in that it further includes a generating unit.
제 8항에 있어서,
상기 등록채널생성부는,
상기 제어 장치가 임의로 생성한 값을 세션 ID로 사용하는 TLS 세션 재개(session resumption) 프로토콜을 이용하여 상기 TLS-PSK 프로토콜을 구현하며, 상기 TLS 세션 재개(session resumption) 프로토콜의 ClientHello 메시지는 TLS 세션 재개 프로토콜을 이용한 TLS-PSK 프로토콜임을 나타내는 정보를 포함하는 것을 특징으로 하는 장치.
According to clause 8,
The registration channel creation unit,
The TLS-PSK protocol is implemented using a TLS session resumption protocol that uses a value randomly generated by the control device as a session ID, and the ClientHello message of the TLS session resumption protocol resumes the TLS session. A device characterized in that it includes information indicating that it is a TLS-PSK protocol using the protocol.
제 9항에 있어서,
상기 비밀 키를 이용하여 생성된 SAC을 통해, 상기 제어 장치를 등록한 피제어 장치들의 PIN들을 상기 피제어 장치에게 송신하고, 상기 피제어 장치에 저장된 PIN들을 상기 피제어 장치로부터 수신함으로써 상기 피제어 장치와 PIN 목록을 동기화하는 PIN목록동기화부를 더 포함하며,
상기 등록채널생성부는,
상기 피제어 장치가 발견되면, 상기 피제어 장치의 PIN이 상기 PIN 목록에 존재하는지 판단하는 PIN검색부; 및
상기 판단 결과 상기 피제어 장치의 PIN이 상기 PIN 목록에 존재하지 않는 경우 사용자 인터페이스를 통해 상기 피제어 장치의 PIN을 요청하는 PIN입력부를 포함하는 것을 특징으로 하는 장치.
According to clause 9,
Through the SAC generated using the secret key, the PINs of the controlled devices that have registered the control device are transmitted to the controlled device, and the PINs stored in the controlled device are received from the controlled device, thereby controlling the controlled device. It further includes a PIN list synchronization unit that synchronizes the PIN list,
The registration channel creation unit,
a PIN search unit that, when the controlled device is discovered, determines whether the PIN of the controlled device exists in the PIN list; and
If the PIN of the controlled device does not exist in the PIN list as a result of the determination, the device comprising a PIN input unit for requesting the PIN of the controlled device through a user interface.
제 7항에 있어서,
사용자 인터페이스를 통해 입력된 명령에 따라 상기 제어 장치에서 상기 비밀 키를 삭제하는 피제어장치취소부를 더 포함하는 것을 특징으로 하는 장치.

According to clause 7,
The device further comprising a controlled device cancellation unit that deletes the secret key from the control device according to a command input through a user interface.

KR1020220141398A 2022-10-28 2022-10-28 A device that enhances the communication security of the home network KR20240060128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020220141398A KR20240060128A (en) 2022-10-28 2022-10-28 A device that enhances the communication security of the home network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220141398A KR20240060128A (en) 2022-10-28 2022-10-28 A device that enhances the communication security of the home network

Publications (1)

Publication Number Publication Date
KR20240060128A true KR20240060128A (en) 2024-05-08

Family

ID=91073972

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220141398A KR20240060128A (en) 2022-10-28 2022-10-28 A device that enhances the communication security of the home network

Country Status (1)

Country Link
KR (1) KR20240060128A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160138761A (en) 2015-05-26 2016-12-06 주식회사 안랩 Security management apparatus and method in a home network system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160138761A (en) 2015-05-26 2016-12-06 주식회사 안랩 Security management apparatus and method in a home network system

Similar Documents

Publication Publication Date Title
US6920559B1 (en) Using a key lease in a secondary authentication protocol after a primary authentication protocol has been performed
US7904720B2 (en) System and method for providing secure resource management
RU2417422C2 (en) Single network login distributed service
EP2264940B1 (en) Authentication information management method in home network and an apparatus therefor
US7234058B1 (en) Method and apparatus for generating pairwise cryptographic transforms based on group keys
US8107630B2 (en) Apparatus and method for managing stations associated with WPA-PSK wireless network
Housley et al. Guidance for authentication, authorization, and accounting (AAA) key management
US20060126848A1 (en) Key authentication/service system and method using one-time authentication code
CA2407482A1 (en) Security link management in dynamic networks
WO2006018994A1 (en) Group management device, information processing device, and method
KR101495722B1 (en) Method and apparatus for guaranteeing communication security in home network
US11722303B2 (en) Secure enclave implementation of proxied cryptographic keys
JP2016021765A (en) Method and apparatus for authenticated user-access to kerberos-enabled application based on authentication and key agreement (aka) mechanism
EP4096160A1 (en) Shared secret implementation of proxied cryptographic keys
WO2022143935A1 (en) Blockchain-based method and system for sdp access control
JP3908982B2 (en) CUG (Closed User Group) management method, CUG providing system, CUG providing program, and storage medium storing CUG providing program
US20240056439A1 (en) Blockchain-based sdp access control method and apparatus
KR20240060128A (en) A device that enhances the communication security of the home network
Kim Greenpass RADIUS Tools for Delegated Authorization in Wireless Networks
Housley et al. RFC 4962: Guidance for Authentication, Authorization, and Accounting (AAA) Key Management
Primc Naslavljanje overovljenih identitet
KR20120119490A (en) System and method for authentication interworking