You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a subkey for one of our servers which has gpg2, and when I get to the point of trying to decrypt the files, I get stuck with a failing prepare_keyring. Looks like the command gpg2 --keyring /home/user/project/keyrings/live/pubring.kbx --export returns an error even though the output looks good. I'm not sure if the problem is with my keys or with blackbox.
user@host:~/project$ GPG=gpg2 bash -x `which blackbox_postdeploy`
+ export PATH=/usr/bin:/bin:/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ PATH=/usr/bin:/bin:/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ set -e
+ source /usr/local/bin/_blackbox_common.sh
++ source /usr/local/bin/_stack_lib.sh
+++ cd /usr/local/bin
+++ pwd
++ : /usr/local/bin
++ declare -a BLACKBOXDATA_CANDIDATES
++ BLACKBOXDATA_CANDIDATES=('.blackbox' 'keyrings/live')
++ : vi
++ : gpg2
++ which git
++ git rev-parse --show-toplevel
++ VCS_TYPE=git
+++ git rev-parse --show-toplevel
++ REPOBASE=/home/user/project
++ export VCS_TYPE
+++ physical_directory_of /home/user/project
++++ dirname /home/user/project
+++ local d=/home/user
++++ basename /home/user/project
+++ local f=project
+++ cd /home/user
++++ pwd -P
++++ sed 's/\/$//'
+++ echo /home/user/project
++ export REPOBASE=/home/user/project
++ REPOBASE=/home/user/project
++ [[ -n '' ]]
++ '[' -z '' ']'
++ BLACKBOXDATA=.blackbox
++ for candidate in '${BLACKBOXDATA_CANDIDATES[@]}'
++ '[' -d /home/user/project/.blackbox ']'
++ for candidate in '${BLACKBOXDATA_CANDIDATES[@]}'
++ '[' -d /home/user/project/keyrings/live ']'
++ BLACKBOXDATA=keyrings/live
++ break
++ KEYRINGDIR=/home/user/project/keyrings/live
++ BB_ADMINS_FILE=blackbox-admins.txt
++ BB_ADMINS=/home/user/project/keyrings/live/blackbox-admins.txt
++ BB_FILES_FILE=blackbox-files.txt
++ BB_FILES=/home/user/project/keyrings/live/blackbox-files.txt
++ SECRING=/home/user/project/keyrings/live/secring.gpg
++ : 0022
+ [[ '' == '' ]]
+ FILE_GROUP=
+ change_to_vcs_root
+ local rbase=/home/user/project
+ cd /home/user/project
+ prepare_keychain
+ local keyringasc
+ echo '========== Importing keychain: START'
========== Importing keychain: START
+ make_self_deleting_tempfile keyringasc
+ local __resultvar=keyringasc
+ local name
+ case $(uname -s) in
++ uname -s
++ mktemp
+ name=/tmp/tmp.daEPkMZLbX
+ add_on_exit rm -f /tmp/tmp.daEPkMZLbX
+ local n=0
+ on_exit_items[$n]='rm -f /tmp/tmp.daEPkMZLbX'
+ [[ 0 -eq 0 ]]
+ trap on_exit EXIT
+ eval keyringasc=/tmp/tmp.daEPkMZLbX
++ keyringasc=/tmp/tmp.daEPkMZLbX
+ export LANG=C.UTF-8
+ LANG=C.UTF-8
+ [[ gpg2 != \g\p\g\2 ]]
+ gpg2 --import
++ get_pubring_path
++ [[ -f /home/user/project/keyrings/live/pubring.gpg ]]
++ echo /home/user/project/keyrings/live/pubring.kbx
+ gpg2 --keyring /home/user/project/keyrings/live/pubring.kbx --export
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: key 0FABA1E6: "[email protected] <[email protected]>" not changed
gpg: key 79C263EC: "user2 <[email protected]>" not changed
gpg: key E5CA7402: "user3 <[email protected]>" not changed
gpg: key D7D027C4: "[email protected] <[email protected]>" not changed
gpg: key 79C263EC: "user2 <[email protected]>" not changed
gpg: key E5CA7402: "user3 <[email protected]>" not changed
gpg: key D7D027C4: "[email protected] <[email protected]>" not changed
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: key 0FABA1E6: "[email protected] <[email protected]>" not changed
gpg: Total number processed: 8
gpg: unchanged: 8
+ on_exit
+ for i in '"${on_exit_items[@]}"'
+ eval rm -f /tmp/tmp.daEPkMZLbX
++ rm -f /tmp/tmp.daEPkMZLbX
The text was updated successfully, but these errors were encountered:
I'm trying to create a subkey for one of our servers which has gpg2, and when I get to the point of trying to decrypt the files, I get stuck with a failing prepare_keyring. Looks like the command
gpg2 --keyring /home/user/project/keyrings/live/pubring.kbx --export
returns an error even though the output looks good. I'm not sure if the problem is with my keys or with blackbox.The text was updated successfully, but these errors were encountered: