If you configured Blesta with a Private Key Passphrase, and you've forgotten it, you'll be unable to process Credit Card and ACH payments. You will also be unable to recover any Credit Card or ACH payment details. However, this guide will walk you through the steps for regenerating an encryption key set that will allow you to again begin accepting and processing new Credit Card and ACH payments.
Regenerating a new encryption key pair
- Backup your database.
- Determine which company_id you need to generate a new encryption key pair for. You can find this under System > Companies. Click edit and look for the number at the end in the URL bar.
Remove the existing private_key, public_key, and private_key_passphrase values stored for your company_id from the company_setting table. The following is a query that will do just that (replace COMPANYID with your actual company ID).
- Find your API key. If you don't already have an API user, create one.
- SSH into your server and navigate to the directory where Blesta is installed.
Execute the following command, replacing USER with your API username, KEY with your API user key, and COMPANYID with your company ID.
Generating encryption keys is hard work. This may take a minute or so to complete. When finished you should receive output similar to
- You're done! You can now go back into Blesta and set a new Private Key Passphrase if you want.