Communication device, communication system, communication method and program
By using shared keys for token generation and verification, communication devices within a network can authenticate each other securely and efficiently, eliminating the need for user intervention and improving operability.
Patent Information
- Application Number
- JP2023578212
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-02-01
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-02-01
AI Technical Summary
Existing communication systems require frequent user intervention for authentication, leading to poor operability and security risks when multiple devices need to communicate without a user terminal, as tokens issued by user terminals cannot be identified by other devices.
Communication devices within a network share a common key to generate and verify authentication tokens using digital signatures, enabling device-to-device authentication without user intervention.
Facilitates easy and secure authentication between communication devices, preventing unauthorized access and reducing the need for frequent user input.
Smart Images

Figure 0007546796000003 
Figure 0007546796000006 
Figure 0007546796000005
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a communication device, a communication system, a communication method, and a program. [Background technology]
[0002] There are cases where a user wants to monitor and operate a communication device from a web browser on a user terminal via a network such as the Internet or a LAN (Local Area Network). In this case, in order to prevent unauthorized access, the user first inputs an ID and password into a login screen from the user terminal and sends it to the communication device, and the communication device performs user authentication using the ID and password. After successful user authentication, the user terminal communicates with the communication device using a mechanism such as Web API or WebSocket, making it possible to operate the communication device from the user terminal. When performing this communication, a new authentication separate from the user authentication must be performed. In principle, this authentication must be performed every time a communication device is operated from the user terminal. Therefore, the user must input an authentication password every time the communication device is operated, which reduces operability.
[0003] To prevent this deterioration in operability, a method is known in which the password entered by the user on the login screen is stored in the web browser, cookies, etc., and the password is automatically sent to the communication device for authentication each time communication is performed via Web API, WebSocket, etc. However, there are security issues with frequently sending confidential information such as a password.
[0004] In order to avoid the above problem, a technology has been disclosed in which, when user authentication is successful, the communication device issues an authentication token to the user terminal, and the user terminal uses the token to automatically perform authentication. For example, in Patent Document 1, when a user terminal monitors and operates multiple equipment management devices, a representative equipment management device first performs user authentication. If user authentication is successful, the representative equipment management device generates an authentication code for each equipment management device by encrypting authentication data to which a digital signature is added using the private key of the device itself with the public key of each equipment management device, and transmits the generated authentication code to the user terminal. The user terminal adds the received authentication code and connects to the equipment management device using the WebSocket method. The equipment management device performs authentication by decrypting the authentication code received from the user terminal with the private key of the device itself and verifying the digital signature with the public key of the representative equipment management device. If authentication is successful, the user terminal becomes able to monitor and operate the equipment management device. Note that the "authentication code" described in Patent Document 1 is authentication information similar to the "token", and there is no substantial difference between the two. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] International Publication No. 2014 / 068632 Summary of the Invention [Problem to be solved by the invention]
[0006] There may be a case where there are multiple communication devices to be operated, and the communication devices wish to operate each other independently without the intervention of a user terminal. In such a case, authentication is also required when communicating between the communication devices using Web API, WebSocket, etc., and the above-mentioned token may be used. Here, when operating a communication device from a user terminal, the user terminal accesses a communication device having a token issuing function, and the communication device issues a token for authentication when user authentication is successful, allowing the user terminal to communicate with the communication device to be operated using the issued token. In contrast, in communication between communication devices not involving a user terminal, it is difficult to identify a communication device that can issue a token, making authentication difficult.
[0007] The present disclosure has been made in consideration of the above-mentioned situation, and aims to provide a communication device, a communication system, a communication method, and a program that can easily perform authentication when operating one communication device from another communication device without the intervention of a user terminal. [Means for solving the problem]
[0008] In order to achieve the above object, the communication device according to the present disclosure comprises: A communication device among a plurality of communication devices that can communicate with each other via a network and each of which holds the same shared key, The device itself operates a target device which is one of the plurality of communication devices. The operating device a token generation processing unit that generates a token by adding a digital signature to authentication data using the shared key when the authentication data is not received, and transmits the token to the operation target device; Your ship The device to be operated a token authentication processing unit that performs authentication by verifying a digital signature of a token received from the operating side device by using the shared key when the token authentication processing unit detects a token being used by the operating side device; a web server unit that enables the operating device to operate itself when authentication by the token authentication processing unit is successful, 、 The token generation processing unit transmits a request to obtain an IP address of its own device to the target device, thereby obtaining an IP address of its own device as seen by the target device, and includes the obtained IP address of its own device in the authentication data. Effect of the Invention
[0009] According to the present disclosure, authentication can be easily performed when one communication device is operated from another communication device without the intervention of a user terminal. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram illustrating a configuration of a communication system according to an embodiment of the present disclosure. [Diagram 2] FIG. 1 is a block diagram showing a configuration of a communication device according to an embodiment of the present disclosure. [Diagram 3] FIG. 1 is a block diagram showing a configuration of a user terminal according to an embodiment of the present disclosure. [Figure 4] 1 is a flowchart showing a process for operating a communication device from a user terminal according to an embodiment of the present disclosure. [Diagram 5] FIG. 1 is a schematic diagram illustrating a structure of a token according to an embodiment of the present disclosure. [Figure 6] 1 is a flowchart of a process for operating another communication device from a communication device according to an embodiment of the present disclosure. [Figure 7] Flowchart of token update process according to an embodiment of the present disclosure DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals.
[0012] A communication system according to an embodiment of the present disclosure will be described. As shown in FIG. 1, the communication system 100 includes a plurality of communication devices 2A, 2B, 2C, etc. connected to a network 1, such as the Internet or a LAN, and a user terminal 3. In the following description, when the communication devices 2A, 2B, 2C, etc. are not distinguished from each other, they are also referred to as communication devices 2. The communication system 100 has a function in which the user terminal 3 connects to the communication device 2 and operates the communication device 2. Furthermore, the communication system 100 also has a function in which one communication device 2 spontaneously connects to the other communication device 2 and operates the other communication device 2 without the user terminal 3. In addition, this "operation" means making the communication device 2 execute some processing. This allows the operating user terminal 3 and communication device 2 to control and monitor the communication device 2 to be operated, and to obtain information from the communication device 2 to be operated. In the following description, communication between the communication devices 2 without the user terminal 3 is also referred to as inter-device communication.
[0013] The communication device 2 is a device, such as an air conditioning controller, that is capable of communicating with the user terminal 3 and other communication devices 2 via the network 1. The communication device 2 is not intended to be operated directly by a user, but is indirectly operated by the user terminal 3 and other communication devices 2 via the network 1. As shown in FIG. 2, the communication device 2 includes a communication unit 21, a storage unit 22, and a control unit 23.
[0014] The communication unit 21 is an interface for connecting the communication device 2 to the network 1. The communication unit 21 has a reverse proxy function that restricts connections from communication devices other than the communication device 2 constituting the communication system 100. This makes it possible to prevent unauthorized access from a third party.
[0015] The storage unit 22 is a non-volatile storage device such as a hard disk drive, a flash memory, etc., and stores various information. For example, the storage unit 22 stores system configuration data 221, user registration information 222, and a shared key 223.
[0016] The system configuration data 221 is data for identifying all communication devices 2 in the communication system 100, including the communication device itself, from the network 1. For example, the system configuration data 221 is data including the IP address, domain name, host name, etc. of each communication device.
[0017] The user registration information 222 is data used when performing user authentication, which will be described later. The user registration information 222 includes a list of pairs of user IDs and passwords of users who are permitted to connect to the communication device 2. Note that the user registration information 222 is not limited to user IDs and passwords, and may be data for using other means for uniquely identifying a user, such as data for fingerprint authentication or a digital certificate.
[0018] The shared key 223 is used to generate a token with a digital signature added to authentication data in a token generation process described later. The shared key 223 is also used to verify a digital signature added to a token received from the user terminal 3 or the communication device 2 in a token authentication process described later. The same shared key 223 is held in all communication devices 2 included in the communication system 100. In an initial setting process when the communication system 100 is configured, settings are manually made so that the same shared key 223 is held in the memory unit 22 of all communication devices 2. Note that if the same shared key 223 is held in advance in the firmware of each communication device 2, such an initial setting process can be omitted; however, in this case, there is a risk that the shared key 223 may be leaked to the outside.
[0019] Furthermore, when the communication device 2 is operated from the user terminal 3 or another communication device 2, an authentication token is stored in the storage unit 22. The token is information in which a digital signature is added to authentication data using the shared key 223, and is used to authenticate the operating communication device 2.
[0020] The control unit 23 includes a CPU (Central Processing Unit), a RAM (Random Access Memory), a ROM (Read Only Memory), etc., and the CPU executes a program stored in the ROM using the RAM as a workspace, thereby controlling the entire communication device 2. The control unit 23 includes, as functional components, a user authentication unit 231, a token generation processing unit 232, a token authentication processing unit 233, a web server unit 234, and a token update unit 235.
[0021] The user authentication unit 231 performs user authentication when receiving an operation request from the user terminal 3. Specifically, the user authentication unit 231 performs user authentication by comparing the user ID, password, etc. included in the user authentication request from the user terminal 3 with the user registration information 222.
[0022] When the user authentication unit 231 succeeds in user authentication, or when another communication device 2 is operated from the own device through device-to-device communication, the token generation processing unit 232 generates a token by adding a digital signature to the authentication data using the shared key 223, and transmits the generated token to the user terminal 3 or the communication device 2 to be operated (the device to be operated).
[0023] When the device is operated from a user terminal 3 or another communication device 2 (operating device), the token authentication processing unit 233 performs authentication by verifying the digital signature of the received token using the shared key 223 stored in the memory unit 22.
[0024] The web server unit 234 functions as a web server for the communication device 2. When authentication is successful in the token authentication processing unit 233, the web server unit 234 performs processing to enable the user terminal 3 or the communication device 2 to operate the device itself. Specifically, the web server unit 234 connects to the operating user terminal 3 or the communication device 2 using a Web API, WebSocket, or the like, and receives an operation command. Then, the web server unit 234 executes the received operation command and responds with the execution result.
[0025] The token update unit 235 performs processing for updating the expiration date when the expiration date of the token stored in the storage unit 22 is short.
[0026] 1, the user terminal 3 is a console terminal that operates each communication device 2 from a web browser. As shown in FIG. 3, the user terminal 3 includes a communication unit 31, a storage unit 32, a control unit 33, a display unit 34, and an input unit 35.
[0027] The communication unit 31 is an interface for connecting the user terminal 3 to the network 1 .
[0028] The storage unit 32 is a non-volatile storage device such as a hard disk drive, a flash memory, etc., and stores various information. For example, the storage unit 32 stores an authentication token obtained from a communication device.
[0029] The control unit 33 includes a CPU, a RAM, a ROM, etc., and controls the entire user terminal 3 by the CPU executing a program stored in the ROM using the RAM as a workspace.
[0030] The display unit 34 is, for example, an LCD (Liquid Crystal Display), and displays various screens under the control of the control unit 33. For example, the display unit 34 displays a login screen for user authentication.
[0031] The input unit 35 is, for example, a keyboard, a mouse, etc., which accepts input from a user and outputs a signal corresponding to the input to the control unit 33. For example, the input unit 35 accepts input of a user's ID and password from a login screen.
[0032] Next, a description will be given of the operation of the communication system 100. First, a description will be given of the process performed when the communication device 2 is operated from the user terminal 3, with reference to the flowchart of FIG.
[0033] First, the user operates the input unit 35 of the user terminal 3 to input a URL for connecting to the communication device 2 to be operated into the browser. As a result, the control unit 33 obtains Web content for displaying a login screen from the communication device 2, and displays the login screen on the display unit 34 (step S101).
[0034] Next, the user operates the input unit 35 of the user terminal 3 to input his / her ID and password on the login screen, and performs an operation to confirm the input. This causes the control unit 33 to transmit a user authentication request including the input ID and password to the communication device (step S102).
[0035] When the user authentication request is received, the user authentication unit 231 of the communication device 2 performs user authentication (step S103). Specifically, the user authentication unit 231 verifies that the pair of ID and password included in the received user authentication request is registered in the user registration information 222. Although not shown in the flowchart of Fig. 4, if the user authentication fails, an error occurs and the process ends.
[0036] After the user authentication is successful, the token generation processing unit 232 performs a process of generating a token for authentication. That is, first, the token generation processing unit 232 acquires authentication data indicating that the user authentication is successful (step S104). The authentication data is any data, and may be a random number that is meaningless information, but in this embodiment, at least the current date and time information and the IP address of the user terminal 3 that is the operation source are included in the authentication data. The IP address of the user terminal 3 may be acquired from the IP address of the sender of the received user authentication request. Also, instead of the IP address of the user terminal 3, other address information that can identify the user terminal 3 may be included in the authentication data.
[0037] Then, the token generation processor 232 generates a token by adding a digital signature to the acquired authentication data using the shared key 223 (step S105). Specifically, the token generation processor 232 adds a MAC value calculated based on the shared key 223 and the authentication data using a hash-based message authentication code (HMAC) algorithm as a digital signature. This generates a token with the structure shown in Fig. 5. Note that the hash function used to calculate the MAC value is SHA-2, SHA-3, etc., but it is necessary for all communication devices 2 included in the communication system 100 to use the same hash function.
[0038] Returning to FIG. 4, the token generation processing unit 232 transmits the generated token to the user terminal 3 (step S106).
[0039] Next, the control unit 33 of the user terminal 3 adds the received token and attempts to connect to the communication device 2 operated in the WebSocket method (step S107). Here, the WebSocket method is a technical standard for two-way communication between a web server and a web client. Unlike the HTTP protocol, the WebSocket method makes it possible to maintain a constant connection.
[0040] Specifically, the control unit 33 of the user terminal 3 adds the token as a parameter to a URL for connecting to the communication device 2 being operated by the user terminal 3 using the WebSocket method, and attempts to connect to the communication device 2 using the URL. Therefore, the token needs to be data in a format that can be used as a URL. If the token is data in binary format, it needs to be converted into a format that can be used as a URL using a method such as Base64. Note that, when connecting using the WebSocket method, it is possible to include the token in the message that is initially sent from the user terminal 3 to the communication device 2, but this would require modifying the communication specifications that the vendor of the communication system 100 has independently determined, which would have a significant impact on the entire communication system 100, so the method of including the token in the URL parameter is preferable.
[0041] When the user terminal 3 connects to the communication device 2 using the WebSocket method, the token authentication processing unit 233 verifies the digital signature of the token included as a parameter in the URL of the connection by using the held shared key 223 (step S108). Specifically, the token authentication processing unit 233 calculates a MAC value based on the authentication data included in the token and the shared key 223 held in the storage unit 22 using the HMAC algorithm. Then, the token authentication processing unit 233 verifies that the calculated MAC value matches the MAC value included in the token.
[0042] If the verification in step S108 shows that the MAC values do not match and that the digital signature is determined to be invalid (step S109; No), the token authentication processing unit 233 returns an authentication error to the user terminal 3 and disconnects the connection (step S111). The user terminal 3 that has been notified of the authentication error terminates with an error.
[0043] On the other hand, if it is determined that the digital signature is normal as a result of the verification in step S108 (step S109; Yes), the token authentication processing unit 233 determines whether the date and time information and the IP address of the connection source included in the authentication data in the token are normal (step S110). Specifically, the token authentication processing unit 233 determines whether the period from the date and time indicated by the date and time information to the present is within a predetermined validity period of the token. This determination makes it possible to prevent old authentication data used in the past from being illegally reused, and it becomes possible to prevent replay attacks. In addition, the token authentication processing unit 233 determines whether the IP address of the currently connected user terminal 3 is the same as the IP address of the connection source included in the authentication data. This determination makes it possible to prevent eavesdropped authentication data from being illegally used by other terminals, and it becomes possible to prevent spoofing attacks.
[0044] If it is determined that the date and time information or the IP address of the connection source is not normal (step S110; No), the token authentication processing unit 233 returns an authentication error to the user terminal 3 and disconnects the connection (step S111). The user terminal 3 that has been notified of the authentication error ends with an error.
[0045] On the other hand, if it is determined that the date and time information and the IP address of the connection source are normal (step S110; Yes), the token authentication processing unit 233 returns a normal response to the user terminal 3, assuming that the token is valid (step S112). When the user terminal 3 receives the normal response, a constant connection using the WebSocket method is established between the user terminal 3 and the web server unit 234 of the communication device 2 (step S113), and thereafter, it becomes possible to operate the communication device 2 from the user terminal 3 without requiring authentication. Thereafter, when the connection using the WebSocket method ends, the token used for authentication is deleted from the user terminal 3.
[0046] Next, a process for operating communication device 2B from communication device 2A through device-to-device communication will be described with reference to the flowchart of Fig. 6. For example, this process is started when a previously scheduled date and time arrives.
[0047] First, the token generation processing unit 232 of the communication device 2A, which is the operating side, transmits an IP address acquisition request of its own device to the communication device 2B, which is the operated side (step S201). The authentication data of the token generated in a step described later needs to include the IP address of the communication device 2A, which is the connection source, and this IP address must be the IP address of the communication device 2A as seen from the communication device 2B, which is the connection destination. For example, if a NAT router is installed between the communication devices 2A and 2B, when the communication device 2A connects to the communication device 2B, the IP address of the communication device 2A, which is the connection source, is rewritten by the NAT router and reaches the communication device 2B. Since the communication device 2A cannot acquire this rewritten IP address by itself, it transmits an IP address acquisition request to the communication device 2B.
[0048] When control unit 23 of communication device 2B, which is the operated side, receives the IP address acquisition request, it returns the IP address of the sender of the request, that is, the IP address of communication device 2A as seen from communication device 2B, to communication device 2A (step S202).
[0049] When the token generation processing unit 232 of the communication device 2A receives the IP address from the communication device 2B, it performs processing to generate a token for authentication. That is, first, the token generation processing unit 232 acquires authentication data (step S203). The authentication data is any data, and may be a random number which is meaningless information, but in this embodiment, at least the current date and time information and the IP address of the communication device 2A which is the operating source are included in the authentication data. This IP address is the IP address returned from the communication device 2B in step 202, that is, the IP address of the communication device 2A as seen from the communication device 2B. Note that instead of the IP address of the communication device 2A, other address information capable of identifying the communication device 2A may be included in the authentication data.
[0050] Then, the token generation processing unit 232 of the communications device 2A generates a token by adding a digital signature to the acquired authentication data using the shared key 223 (step S204). This token is the same as the token generated when the communications device 2 is operated from the user terminal 3, and is affixed with a digital signature using HMAC.
[0051] Next, the web server unit 234 of the communication device 2A adds the generated token and attempts to connect to the communication device 2B operated by the WebSocket method (step S205). Here, similar to the case where the communication device 2 is operated from the user terminal 3, it is sufficient to attempt to connect to the communication device 2B by a URL including the token as a parameter.
[0052] When there is a WebSocket connection from communications device 2A, token authentication processing unit 233 of communications device 2B uses held shared key 223 to verify the digital signature of the token included in the URL of the connection (step S206).
[0053] If it is determined that the digital signature is not normal as a result of the verification in step S206 (step S207; No), the token authentication processing unit 233 of the communication device 2B returns an authentication error to the communication device 2A and disconnects the connection (step S209). The communication device 2A, which has been notified of the authentication error, ends the process with an error.
[0054] On the other hand, if it is determined that the digital signature is normal as a result of the verification in step S206 (step S207; Yes), the token authentication processing unit 233 of the communication device 2B determines whether the date and time information and the IP address of the connection source included in the authentication data in the token are normal (step S208). Specifically, the token authentication processing unit 233 determines whether the period from the date and time indicated by the date and time information to the present is within a predetermined validity period of the token. This determination makes it possible to prevent old authentication data used in the past from being illegally reused, and it becomes possible to prevent replay attacks. In addition, the token authentication processing unit 233 determines whether the IP address of the currently connected facility device 2A is the same as the IP address of the connection source included in the authentication data. This determination makes it possible to prevent eavesdropped authentication data from being illegally used by other terminals, and it becomes possible to prevent spoofing attacks.
[0055] If it is determined that the date and time information or the IP address of the connection source is not normal (step S208; No), the token authentication processing unit 233 returns an authentication error to the communication device 2A and disconnects the connection (step S209). The user terminal that is notified of the authentication error ends with an error.
[0056] On the other hand, if it is determined that the date and time information and the IP address of the connection source are normal (step S208; Yes), the token authentication processing unit 233 returns a normal response to the communications device 2A, assuming that the token is valid (step S210). When the communications device 2A receives the normal response, a constant connection using the WebSocket method is established between the communications device 2A and the communications device 2B (step S211). From then on, it becomes possible to operate the communications device 2B from the communications device 2A without requiring authentication. Thereafter, when the connection using the WebSocket method ends, the token used for authentication is deleted from the communications device 2B.
[0057] Next, the token update process will be described. By the above-mentioned process, the token received from the operating communication device 2A is stored in the storage unit 22 of the communication device 2B on the operated side. Here, since a constant connection by WebSocket is established between the communication devices 2A and 2B, even if the connection is within the validity period, if the constant connection is maintained for a long time, the validity period of the token stored in the communication device 2B may be exceeded and the constant connection may be disconnected. Therefore, in order to prevent such a situation, the communication device 2B on the operated side executes a token update process for updating the token by itself. The token update process is executed at a predetermined time interval while the constant connection by WebSocket is maintained. The token update process will be described with reference to the flowchart of FIG. 7.
[0058] First, the token update unit 235 of the communication device 2B determines whether the period from the date and time indicated by the date and time information included in the authentication data of the token stored in the storage unit 22 to the present has passed the validity period of the token (step S301). If the validity period has not passed (step S301; No), there is no need to update the token, and the token update process ends.
[0059] On the other hand, if the validity period has expired (step S301; Yes), the token update unit 235 of the communication device 2B corrects the date and time information included in the authentication data of the held token to the current date and time information (step S302). Then, the token update unit 235 calculates a MAC value by HMAC based on the authentication data with the corrected date and time information and the shared key, and updates the digital signature of the token with the calculated MAC value (step S303). This ends the token update process. Thereafter, the token updated in the token update process is deleted from the storage unit 22 of the communication device 2B when the constant connection by WebSocket is disconnected.
[0060] In this manner, in this embodiment, the token update process is periodically executed during constant connection to update the digital signature of the expired token, and the token is reused as a valid token. This allows the constant connection to be maintained. In the above-described token update process, when the expiration date has expired (step S301; Yes), the token update process (steps S302, S303) is executed. However, when the period until the expiration date becomes shorter than a predetermined period, steps S302 and S303 may be executed. Alternatively, the token may be updated by uniformly executing steps S302 and S303 without checking the expiration date. In this manner, the token is updated to the latest date and time every time the token update process is executed, but the load on the communication device 2B increases because the token is updated every time.
[0061] In this way, according to the communication system 100 of the present embodiment, the same shared key 223 is held in all the communication devices 2 constituting the communication system 100. Each communication device 2 has a function of generating a token for authentication by itself using the shared key 223 when operating another communication device 2. Furthermore, each communication device 2 has a function of performing authentication by verifying the digital signature of the received token using the shared key 223 when operated by another communication device 2. That is, all communication devices 2 have a token issuing function and an authentication function. Therefore, it is possible to solve the conventional problem that it is difficult to identify a communication device 2 capable of issuing a token when a token is used for authentication when a communication device 2 operates another communication device 2 in device-to-device authentication. Therefore, it becomes easy to use a token for authentication when operating one communication device 2 from another communication device 2 without the intervention of a user terminal 3, and the authentication can be easily performed.
[0062] (Modification) The present disclosure is not limited to the above-described embodiment, and various modifications are possible without departing from the gist of the present disclosure.
[0063] In the above embodiment, the process has been described in which the operating user terminal 3 or communication device 2 constantly connects to the operated communication device 2 using WebSocket to perform operations, but the connection method is not limited to WebSocket. For example, the operating user terminal 3 or communication device 2 may connect to the operated communication device 2 using Web API to perform operations. Note that, unlike WebSocket, the Web API does not provide a constant connection, and therefore authentication using a token is required each time a command is transmitted or received via the Web API.
[0064] In the above embodiment, the HMAC algorithm is used as the digital signature using the shared key 223, but the method of the digital signature is not limited to this. For example, a digital signature may be added to the authentication data using the shared key 223 by a message code authentication algorithm other than HMAC.
[0065] In the above embodiment, the authentication data of the token includes the date and time information and the IP address of the connection source, but it is not necessary to include these. For example, the authentication data may be a random number.
[0066] The "token" described in this embodiment may be described as a "ticket" or an "authentication code" in other documents, but these are essentially the same information. This disclosure does not interpret the "token" narrowly.
[0067] In the above embodiment, the program executed by the control unit 23 of the communication device 2 can be applied to an existing computer, so that the computer can function as the control unit 23 according to the present disclosure.
[0068] Such a program may be distributed in any manner, for example, by storing it on a computer-readable recording medium such as a CD-ROM (Compact Disk Read-Only Memory), a DVD (Digital Versatile Disk), an MO (Magneto Optical Disk), or a memory card, or by distributing it via a communications network such as the Internet.
[0069] Various embodiments and modifications of the present disclosure are possible without departing from the broad spirit and scope of the present disclosure. The above-described embodiments are for explaining the present disclosure and do not limit the scope of the present disclosure. In other words, the scope of the present disclosure is indicated by the claims, not the embodiments. Various modifications made within the scope of the claims and the scope of the disclosure equivalent thereto are considered to be within the scope of the present disclosure. [Explanation of symbols]
[0070] 100 communication system, 1 network, 2 (2A, 2B, 2C) communication device, 21 communication unit, 22 memory unit, 221 system configuration data, 222 user registration information, 223 shared key, 23 control unit, 231 user authentication unit, 232 token generation processing unit, 233 token authentication processing unit, 234 web server unit, 235 token update unit, 3 user terminal, 31 communication unit, 32 memory unit, 33 control unit, 34 display unit, 35 input unit
Claims
1. A communication device among a plurality of communication devices that can communicate with each other via a network and each of which holds the same shared key, a token generation processing unit that generates a token by adding a digital signature using the shared key to authentication data and transmits the token to the operation target device when the device itself is an operating device that operates an operation target device that is one of the plurality of communication devices; a token authentication processing unit that performs authentication by verifying a digital signature of a token received from the operating device by using the shared key when the device itself is the operation target device; a web server unit that enables the operating device to operate itself when authentication by the token authentication processing unit is successful, the token generation processing unit transmits a request for obtaining an IP address of the own device to the operation target device, thereby obtaining an IP address of the own device as seen from the operation target device, and includes the obtained IP address of the own device in the authentication data; Communication equipment.
2. the token generation processing unit generates the token by adding a MAC value calculated based on the authentication data and the shared key by a hash-based message authentication code algorithm as a digital signature; 2. The communication device according to claim 1.
3. the token generation processing unit adds the token to a parameter of a URL for connecting to the operation target device, and transmits the token to the operation target device.
3. A communication device according to claim 1 or 2.
4. the token generation processing unit converts the token into data in a format that can be added as a parameter of the URL; 4. The communication device according to claim 3.
5. The token generation processing unit includes date and time information in the authentication data, The token authentication processing unit performs authentication based on the date and time information. A communication device according to any one of claims 1 to 4.
6. The token authentication processing unit performs authentication based on an IP address included in the authentication data. A communication device according to any one of claims 1 to 5.
7. a token updating unit that corrects date and time information included in the authentication data of the token and updates a digital signature attached to the corrected authentication data based on the shared key; A communication device according to any one of claims 1 to 6.
8. A communication system comprising a plurality of communication devices according to any one of claims 1 to 7.
9. A communication method for one of a plurality of communication devices capable of communicating with each other via a network, each of which holds an identical shared key, comprising the steps of: when the one communication device is an operating side device that operates an operation target device that is one of the plurality of communication devices, the one communication device transmits an IP address obtainment request to the operation target device to obtain an IP address of the own device as seen from the operation target device, generates a token by adding a digital signature with the shared key to authentication data including the obtained IP address of the own device, and transmits the token to the operation target device; When the one communication device is the operation target device, authentication is performed by verifying a digital signature of a token received from the operating device using the shared key; If the authentication is successful, the operating device is allowed to operate the device itself. Communication methods.
10. One of a plurality of communication devices that can communicate with each other via a network and each of which holds the same shared key is a token generation processing unit that generates a token by adding a digital signature using the shared key to authentication data and transmits the token to the operation target device when the device itself is an operating device that operates an operation target device that is any one of the plurality of communication devices; a token authentication processing unit that performs authentication by verifying a digital signature of a token received from the operating device by using the shared key when the device itself is the device to be operated; a web server section that enables the operating device to operate itself when authentication by the token authentication processing section is successful; Functioning as a the token generation processing unit transmits a request for obtaining an IP address of the own device to the operation target device, thereby obtaining an IP address of the own device as seen from the operation target device, and includes the obtained IP address of the own device in the authentication data; program.
Citation Information
Patent Citations
Multicast service authentication method and device, system
CN101114900A
Equipment authentication system, server, method and program, terminal and storage medium
JP2005102163A
Facility management device, facility management system and program
WO2014068632A1
Information communication apparatus, authentication program for information communication apparatus, and authentication method
WO2020071164A1
