Allow for the keybase to be configured to override the implementation of the key that is saved to the keybase. Closes: #4941