A first electronic device comprising: a first short-range communication module configured to execute short-range communication with a second electronic device; a security module configured to store security information; and a processor configured to: control the first short-range communication module to transmit, to the second electronic device, when a first pairing request message is received from the second electronic device, a first pairing response message together with unique information of the first electronic device, obtain, from a server device via the second electronic device, a pairing key, that registers the first electronic device as being linked to the second electronic device in the server device, when the pairing key is received, store the pairing key to be linked to the unique information of the first electronic device, when authentication with the second electronic device is completed based on the pairing key and receiving a second pairing request message for security pairing from the second electronic device, control the first short-range communication module to transmit session key generation information to the server device via the second electronic device, generate a session key based on the session key generation information, encrypt the security information based on the generated session key, and control the first short-range communication module to transmit the encrypted security information to the second electronic device, wherein the pairing key is generated, by the server device, based on the unique information, wherein the unique information of the first electronic device comprises unique information of the security module. a first short-range communication module configured to execute short-range communication with a second electronic device; a security module configured to store security information; and a processor configured to: control the first short-range communication module to transmit, to the second electronic device, when a first pairing request message is received from the second electronic device, a first pairing response message together with unique information of the first electronic device, obtain, from a server device via the second electronic device, a pairing key, that registers the first electronic device as being linked to the second electronic device in the server device, when the pairing key is received, store the pairing key to be linked to the unique information of the first electronic device, when authentication with the second electronic device is completed based on the pairing key and receiving a second pairing request message for security pairing from the second electronic device, control the first short-range communication module to transmit session key generation information to the server device via the second electronic device, generate a session key based on the session key generation information, encrypt the security information based on the generated session key, and control the first short-range communication module to transmit the encrypted security information to the second electronic device, wherein the pairing key is generated, by the server device, based on the unique information, wherein the unique information of the first electronic device comprises unique information of the security module. control the first short-range communication module to transmit, to the second electronic device, when a first pairing request message is received from the second electronic device, a first pairing response message together with unique information of the first electronic device, obtain, from a server device via the second electronic device, a pairing key, that registers the first electronic device as being linked to the second electronic device in the server device, when the pairing key is received, store the pairing key to be linked to the unique information of the first electronic device, when authentication with the second electronic device is completed based on the pairing key and receiving a second pairing request message for security pairing from the second electronic device, control the first short-range communication module to transmit session key generation information to the server device via the second electronic device, generate a session key based on the session key generation information, encrypt the security information based on the generated session key, and control the first short-range communication module to transmit the encrypted security information to the second electronic device, wherein the pairing key is generated, by the server device, based on the unique information, wherein the unique information of the first electronic device comprises unique information of the security module.