| CPC H04W 12/069 (2021.01) [H04L 9/3066 (2013.01); H04W 12/041 (2021.01); H04W 12/0471 (2021.01)] | 7 Claims | 

| 
               1. An electronic device comprising: 
            a communication circuit; 
                a security circuit; 
                at least one processor operatively connected to the communication circuit and the security circuit; and 
                memory operatively connected to the at least one processor, 
                wherein the memory stores instructions that, when executed by the at least one processor, cause the electronic device to: 
                receive, from an external electronic device, a public key as a peer to peer (P2P) service is requested, 
                  transmit, to the external electronic device, an authentication certificate chain generated based on the received public key, 
                  verify an authentication certificate chain received from the external electronic device by using a root authentication certificate stored in the security circuit, 
                  based on verifying that the authentication certificate chain received from the external electronic device is valid, generate a shared key, 
                  receive, from the external electronic device, encrypted information on the external electronic device, 
                  decrypt the encrypted information on the external electronic device by using the shared key, and 
                  perform the P2P service with the external electronic device through the communication circuit based on the decrypted information on the external electronic device, and 
                wherein the encrypted information on the external electronic device is generated in the external electronic device based on a verification of the authentication certificate chain received from the electronic device. 
               |