No, it won't be just as complex. Keyfile creation is dead simple anyway, just use the ssh-keygen command to generate a key and copy it to the remote host's
file. Obviously running this as root is ill advised. If it's necessary for root to implement the file on the remote, you can do something like run a pickup script from cron on the remote that checks for a new file periodically.