diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-23 18:28:32 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-23 18:28:32 +0300 |
commit | 9a61eea1cbae2c69d37a20ea93c452fb2523dcd7 (patch) | |
tree | 39214c4436977cc9a7dbf9455d0026809f90dc38 | |
parent | 5de8e5b98a88825ed75aab7f9031b94b8b9c5731 (diff) | |
download | arching-kaos-tools-9a61eea1cbae2c69d37a20ea93c452fb2523dcd7.tar.gz arching-kaos-tools-9a61eea1cbae2c69d37a20ea93c452fb2523dcd7.tar.bz2 arching-kaos-tools-9a61eea1cbae2c69d37a20ea93c452fb2523dcd7.zip |
unlocked _ak_gpg_create_key
-rwxr-xr-x | lib/_ak_gpg | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/_ak_gpg b/lib/_ak_gpg index 04d218f..d478531 100755 --- a/lib/_ak_gpg +++ b/lib/_ak_gpg @@ -31,10 +31,9 @@ _ak_gpg_create_key(){ _ak_log_error "Key exists with the same email label" exit 1 fi - exit 3 - _ak_gpg --batch --passphrase '' --quick-gen-key $1 rsa3072 sign 0 - AK_FINGERPRINT="$(_ak_gpg --list-keys | grep $1 -B 1 | head -n 1 | awk '{print $1}')" - _ak_gpg --batch --passphrase '' --quick-add-key $AK_FINGERPRINT rsa3072 encrypt 0 + _ak_gpg --batch --passphrase '' --quick-gen-key $1 rsa4096 sign 0 + FINGERPRINT="$(_ak_gpg --list-keys | grep $1 -B 1 | head -n 1 | awk '{print $1}')" + _ak_gpg --batch --passphrase '' --quick-add-key $FINGERPRINT rsa4096 encrypt 0 } _ak_gpg_key_import_from_file(){ |