Alternatively to recover, perform one of the three solutions:
Upload your configuration to a TFTP server. This is needed because once the configuration is sent to the TFTP server, the pre-shared key and other passwords appear as clear text (instead of ******** , as in the show run command).
To upload your configuration to a TFTP server, issue this command:
ASA#write net [[server_ip]:[filename]]):
Once the file is saved on the TFTP server, you can open it with a text editor and view the passwords in clear text.
The configuration can also be uploaded to an FTP server. This is the command: