Created
December 12, 2019 21:56
-
-
Save sjb9774/2a4406fc3066dcea09eaa94b166d794a to your computer and use it in GitHub Desktop.
Decrypt config value from stage/prod server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get crypt key from remote server | |
ssh <user>@<server> -C 'grep "'\''key'\''" ~/app/etc/env.php' | awk '{ print $3 }' | |
# substitute local env.php crypt key with remote crypt key | |
# on vagrant | |
mr dev:console | |
$encryptor = $di->get(\Magento\Framework\Encryption\EncryptorInterface::class); | |
$encryptor->decrypt('value from remote database core_config_data table goes here'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment