A registration server, comprising: a storage unit configured to: store access information and an identifier for a gateway apparatus, and store a first secret value for the gateway apparatus; a gateway determination unit configured to: determine the gateway apparatus based on a request signal from a device via the gateway apparatus, and based on a determination that the storage unit stores the identifier and the access information associated with the gateway apparatus, read out the identifier and the access information associated with the gateway apparatus from the storage unit; a token generating unit configured to generate a token; and a processing unit configured to: generate the first secret value based on a first random value and a key shared with the gateway apparatus during authentication between the gateway apparatus and the registration server, transmit a first signal including the token and the access information of the gateway apparatus to the device, the access information being used by the device to send the token to the gateway apparatus; and in response to obtaining the token and the identifier based on a third signal received in response to the first signal and based on a verification of the obtained token and the identifier, transmit a second signal indicating a positive response to the gateway apparatus, which causes the gateway apparatus to provision the device with authentication data based on the first secret value. a storage unit configured to: store access information and an identifier for a gateway apparatus, and store a first secret value for the gateway apparatus; store access information and an identifier for a gateway apparatus, and store a first secret value for the gateway apparatus; a gateway determination unit configured to: determine the gateway apparatus based on a request signal from a device via the gateway apparatus, and based on a determination that the storage unit stores the identifier and the access information associated with the gateway apparatus, read out the identifier and the access information associated with the gateway apparatus from the storage unit; determine the gateway apparatus based on a request signal from a device via the gateway apparatus, and based on a determination that the storage unit stores the identifier and the access information associated with the gateway apparatus, read out the identifier and the access information associated with the gateway apparatus from the storage unit; a token generating unit configured to generate a token; and a processing unit configured to: generate the first secret value based on a first random value and a key shared with the gateway apparatus during authentication between the gateway apparatus and the registration server, transmit a first signal including the token and the access information of the gateway apparatus to the device, the access information being used by the device to send the token to the gateway apparatus; and in response to obtaining the token and the identifier based on a third signal received in response to the first signal and based on a verification of the obtained token and the identifier, transmit a second signal indicating a positive response to the gateway apparatus, which causes the gateway apparatus to provision the device with authentication data based on the first secret value. generate the first secret value based on a first random value and a key shared with the gateway apparatus during authentication between the gateway apparatus and the registration server, transmit a first signal including the token and the access information of the gateway apparatus to the device, the access information being used by the device to send the token to the gateway apparatus; and in response to obtaining the token and the identifier based on a third signal received in response to the first signal and based on a verification of the obtained token and the identifier, transmit a second signal indicating a positive response to the gateway apparatus, which causes the gateway apparatus to provision the device with authentication data based on the first secret value.