From 9a61eea1cbae2c69d37a20ea93c452fb2523dcd7 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 23 Jul 2024 18:28:32 +0300 Subject: unlocked _ak_gpg_create_key --- lib/_ak_gpg | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/_ak_gpg') 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(){ -- cgit v1.2.3