CPC G06F 3/1222 (2013.01) [G06F 3/1238 (2013.01); G06F 3/1292 (2013.01); G06F 21/608 (2013.01); H04L 9/0894 (2013.01); H04L 9/14 (2013.01); H04L 9/30 (2013.01); H04W 12/0431 (2021.01); H04W 12/0433 (2021.01); H04W 12/06 (2013.01)] | 22 Claims |
1. A communication device comprising:
a first wireless interface;
a processor;
a memory storing computer-readable instructions therein and configured to store a first public key; and
an output unit configured to output first information obtained by using the first public key in the memory in a case where a predetermined instruction is inputted to the communication device after the first public key has been stored in the memory,
wherein the computer-readable instructions, when executed by the processor, cause the communication device to:
after the first information has been outputted, receive, via the first wireless interface, an authentication request in which the first public key is used from a terminal device that obtained the first public key;
in a case where the authentication request is received from the terminal device, send an authentication response, as a response for the authentication request, to the terminal device via the first wireless interface;
after the authentication response has been sent to the terminal device, receive connection information from the terminal device via the first wireless interface, the connection information being for establishing a wireless connection via the first wireless interface between the communication device and an external device;
in a case where the connection information is received from the terminal device, establish the wireless connection via the first wireless interface between the communication device and the external device by using the connection information; and
wherein in a case where the predetermined instruction is inputted again to the communication device after the first information has been outputted, the output unit is further configured to output second information obtained by using a second public key which is already stored in the memory before the predetermined instruction is inputted again to the communication device, the second public key being different from the first public key.
|