Imperva Cyber Community

 View Only
  • 1.  gpg: decryption failed: Bad session key

    Posted 14 days ago
    Dear Friends,

    I am getting following error message during full import. 

    [root@impmx-kn-p7 bin]# gpg --cipher-algo=3DES --no-mdc-warning -q -o decrypted-file-name /backup/mxbackup/impmx-kn-p8/Maycrash/SecureSphereFullExport_20220513-234500_6974056972616081540.tgz
    can't connect to `/root/.gnupg/S.gpg-agent': No such file or directory
    gpg: DBG: cleared passphrase cached with ID: S79FC2BEC69BB5629
    gpg: decryption failed: Bad session key

    If I forgot the key then how I can recover it?

    Kind Regards,

    Ghulam
    #AllImperva

    ------------------------------
    Ghulam Mallah
    Security Database Consultant
    Hook
    ------------------------------


  • 2.  RE: gpg: decryption failed: Bad session key

    Posted 13 days ago

    Hi Ghulam,

    Thanks for posting. Could you tell me which product you are referring to? This will allow me to add a tag that will attract other users of that product.

    Thanks,

    Sarah



    ------------------------------
    Sarah Lamont(csp)
    Digital Community Manager
    ------------------------------



  • 3.  RE: gpg: decryption failed: Bad session key

    Posted 12 days ago
    Hi Ghulam,

    Can you try the solution provided at following link (if it is production environment, you should take backup/snapshot etc. before applying the solution):

    https://forums.centos.org/viewtopic.php?t=44661

    ------------------------------
    Cezmi Cal
    technical support engineer
    Barikat Cyber Security
    Ankara
    ------------------------------