I am currently busy with a project for standardizing the processes surrounding an embedded device we export as a product. On this device we wish to use Ubuntu Core (UC). However, part of this standardization is automating processes such as installing UC.
From the tutorials (https://ubuntu.com/tutorials/how-to-install-ubuntu-core-on-raspberry-pi#4-boot-ubuntu-core) and experience we gather that there is a considerable degree of manual labour that is necessary for installing UC. For example, we would need to "enter the email address that is connected to your SSO account" for every single device that we send to our clients (this would also require to establish a serial connection and user i/o devices). You can probably see how installing a large number of these IoT devices would be a costly process we would like to avoid.
An idea we thought of was flashing the needed ssh key / certificate onto the ROM of our device in order to avoid this manual process of validating our device and establishing a connection with Canonical. Is there a way to pre-install valid ssh public keys to avoid manual installing? Or could we write a script that handles this process automatically?
Any input is very much appreciated, thanks in advance!