Hi!
So I was trying to finishing this lab but I’m having issue while encrypting the file in this lab, this is the following error:
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: error retrieving '[email protected]' via WKD: No data
gpg: [email protected]: skipped: No data
gpg: encrypt_me.txt: encryption failed: No data
This was made with login through ssh into the server and went into the /home/ path, where I made the following commands:
gpg --import key public_key.asc
sudo gpg -r "[email protected]" -o encrypted_me.asc -e encrypt_me.txt
I tried to fix the WKD issue in the logs by editing the key with gpg --edit-key “the key number id” and then using adduid and after all the questions and putting [email protected] as email, then finally exit with using save from the gpg cli interface. I also tried with importing the private key, since it’s also going to be needed for the decrypting, but the problem persists.
I’m not sure if in this lab is needed to made some configuration to the gpg more deeply, as far as I know this are the common ways to fix it to insert the email address, and if I’m not remembering wrong the keys have also the email inside. I could generate the keys with gpg --full-gen-key and probably would work, but the lab is demanding to use already made keys. What I’m not seeing right ?