I currently use this guide (which I created) to create and manage my own keys using gpg --expert --full-generate-key, gpg --expert --edit-key and gpg --card-edit (among other commands).
How can one automate process at enterprise scale?
Are there better approaches than using expect?