I got some errors that my stored credentials couldn’t be decrypted and so I followed the description in the INSTALLATION file in the gvm-7.0.3/ directory to delete the old key and create a new one.
When I come to the command openvasmd --create-credentials-encryption-key, I always get an error message:
The option --create-credentials-encryption-key just don’t exist. Where have you seen that ?
That’s why you get an error.
If you need to delete your old keyring, then you just need to remove (backup it first, just in case !) the directory /var/lib/openvas/openvasmd/gnupg directory and restart openvasmd.
Openvas will automatically recreate your keyring if this directory doesn’t exist.
Right, I actually did not see it. I think this option perhaps works with gvmd, not openvasmd. Perhaps it was only listed as “reserved for future use”, as this option is not even documented in the man pages.
It seems this command line parameter was dropped a few years ago but wasn’t removed from the INSTALL file.
If you’re stumbling over such inconsistencies you can always create a new issue at the github issue tracker of the affected component (here gvmd). For this specific command line parameter i have already raised: