Method by which device shares digital key
Provided is a method of sharing a digital key between devices, and a method, performed by an owner device in a wireless communication system, including transmitting, to a friend device, key configuration data, receiving, from the friend device, certification information signed by a private key of the friend device, the certification information including a public key of the friend device, generating a key attestation based on the certification information and the key configuration data, and transmitting, to the friend device, information including the key attestation.
1 . A method, performed by an owner device in a wireless communication system, the method comprising:
transmitting, to a friend device, key configuration data;
receiving, from the friend device, certification information signed by a private key of the friend device, the certification information including a public key of the friend device;
generating a key attestation based on the certification information and the key configuration data; and
transmitting, to the friend device, information including the key attestation.
2 . The method of claim 1 ,
wherein the key configuration data comprises at least one of a validity period of a digital key or a range of access right assigned to the friend device.
3 . The method of claim 1 ,
wherein the key configuration data comprises information about at least one of whether the friend device is able to open or close a door of a vehicle, whether the friend device is able to open or close a door of a trunk, or whether the friend device is able to start an engine.
4 . The method of claim 1 ,
wherein generating the key attestation includes signing the public key of the friend device included in the certificate information by using a private key of the owner device.
5 . The method of claim 1 ,
wherein the key attestation includes a signature with the private key of the owner device.
6 . A method, performed by a friend device in a wireless communication system, the method comprising:
receiving, from an owner device, key configuration data;
generating, based on the key configuration data, certification information signed by a private key of the friend device, the certification information including a public key of the friend device;
transmitting, to the owner device, the certification information; and
receiving, from the owner device, information including a key attestation.
7 . The method of claim 6 ,
wherein the key configuration data comprises at least one of a validity period of a digital key or a range of access right assigned to the friend device.
8 . The method of claim 6 ,
wherein the key configuration data comprises information about at least one of whether the friend device is able to open or close a door of a vehicle, whether the friend device is able to open or close a door of a trunk, or whether the friend device is able to start an engine.
9 . The method of claim 6 ,
wherein the key attestation is signed using a private key of the owner device based on the public key of the friend device included in the certificate information.
10 . The method of claim 6 ,
wherein the key attestation includes a signature with the private key of the owner device.
11 . An owner device in a wireless communication system, the owner device comprising:
memory storing one or more instructions; and
at least one processor configured to execute the one or more instructions to:
transmit, to a friend device, key configuration data;
receive, from the friend device, certification information signed by a private key of the friend device, the certification information including a public key of the friend device;
generate a key attestation based on the certification information and the key configuration data; and
transmit, to the friend device, information including the key attestation.
12 . The owner device of claim 11 ,
wherein the key configuration data comprises at least one of a validity period of a digital key or a range of access right assigned to the friend device.
13 . The owner device of claim 11 ,
wherein the key configuration data comprises information about at least one of whether the friend device is able to open or close a door of a vehicle, whether the friend device is able to open or close a door of a trunk, or whether the friend device is able to start an engine.
14 . The owner device of claim 11 ,
wherein the at least one processor is further configured to execute the one or more instructions to sign the public key of the friend device included in the certificate information by using a private key of the owner device.
15 . The owner device of claim 11 ,
wherein the key attestation includes a signature with the private key of the owner device.
16 . A friend device in a wireless communication system, the friend device comprising:
memory storing one or more instructions; and
at least one processor configured to execute the one or more instructions to:
receive, from an owner device, key configuration data;
generate, based on the key configuration data, certification information signed by a private key of the friend device, the certification information including a public key of the friend device;
transmit, to the owner device, the certification information; and
receive, from the owner device, information including a key attestation.
17 . The friend device of claim 16 ,
wherein the key configuration data comprises at least one of a validity period of a digital key or a range of access right assigned to the friend device.
18 . The friend device of claim 16 ,
wherein the key configuration data comprises information about at least one of whether the friend device is able to open or close a door of a vehicle, whether the friend device is able to open or close a door of a trunk, or whether the friend device is able to start an engine.
19 . The friend device of claim 16 ,
wherein the key attestation is signed using a private key of the owner device based on the public key of the friend device included in the certificate information.
20 . The friend device of claim 16 ,
wherein the key attestation includes a signature with the private key of the owner device.