Closed rifel123 closed 2 years ago
Corner case here is that if the file contains an unchanged key (as in: it was already present in the keychain), we should obviously not remove it from the keychain.
Interesting case is: what, if we change e.g. expiration date using the file and then have to revert it. We should explore verifying all of the keys before taking any action on them (and possibly allowing the user to choose which keys they want to import and which to ignore).
closed with #41
When we fail to import any key from a file, we should remove all keys from this file, as they are corrupted.