Lost Crypt key of magento 2 - configuration

I lost crypt key from my magento2 setup and now I am having issues with the PayPal and other configurations. Can somebody help me how I can recover crypt key via server?

On your server navigate to app/etc and open env.php file.
in env.php file you can find crypt key.
'crypt' =>
array (
'key' => '5b581cc9b27c0c114ed642a27d50c18c',
)

Related

Laravel Encription

Laravel provides standard data encryption/decryption methods, see Encrypt/Decrypt DB fields in laravel. However, the APP_KEY attribute stored in the .env file is used as the shared key for encryption, see https://simonkollross.de/posts/encrypting-laravel-eloquent-attributes-using-a-custom-cast. Thus, any administrator of the hosting can easily access this key and decrypt the secret data. In my existing project, the data of each user is encrypted at the mySQL level under by his own key, that is the user's password for the application.
Is it possible to implement in Laravel Eloquent the ability to encrypt user data under his own password (key), which will be unknown for the server administrator?

AWS S3 error with MySQL dump importation in Drupal 7

I'm getting this error:
Aws\Common\Exception\InstanceProfileCredentialsException: Error retrieving credentials from the instance profile metadata server. When you are not running inside of Amazon EC2, you must provide your AWS access key ID and secret access key in the "key" and "secret" options when creating a client or provide an instantiated Aws\Common\Credentials\CredentialsInterface object. ([curl] 28: Connection timed out after 5010 milliseconds [url] http://169.254.169.254/latest/meta-data/iam/security-credentials/) in Aws\Common\InstanceMetadata\InstanceMetadataClient->getInstanceProfileCredentials() (line 85 of /var/www/public/sites/all/libraries/awssdk2/Aws/Common/InstanceMetadata/InstanceMetadataClient.php).
In this scenario:
I'm using the AWS S3 module in Drupal 7. One bucket from S3 works for development, and the other one works for staging.
After the client add some content in staging, I try to import the new DB dump from staging to develop and the error appers, maybe is something with the image path in the new dump, the AWS credentials work for development fine, the problem is with the new DB dump.
Con someone help me please?
Looks like your instance is not able to authenticate to S3 bucket specified.
1) Set AWS Credentials in your Environment Path ( Not Recommended ). Instead you shoud assign AWS IAM Role to the Instance to give access to S3 resource.
2) You need to change S3 bucket permission such that it allows the present server to access the bucket.
Iam not sure if this is your real case. Please elaborate your question so that we can give a precise solution.
I'm not allowed to comment. so, had to post an answer.

Not able to create folders in integration services catalog SQL Server 2012

Not able to create folders in integration services catalog SSIS 2012
Error:
Yes, the restore is the issue.
When you create your SSISDB, you specify a password which is used to create your database master key. You have restored the database to a different server and you need to get the keys in alignment on the restored machine
BOL covers this in detail: Backup, Restore, and Move the SSIS Catalog
-- If you know what the password that was used when the catalog was created
open master key
decryption by password = 'LS1Setup!' --'Password used when creating SSISDB'
Alter Master Key
Add encryption by Service Master Key
Otherwise, you're going to need to use a hammer.
Restore master key from file = 'c:\temp\RCTestInstKey'
Decryption by password = 'LS2Setup!' -- 'Password used to encrypt the master key during SSISDB backup'
Encryption by password = 'LS3Setup!' -- 'New Password'
Force
Now i can create folder in Catalogs
Resolve:
Check the login :##MS_SSISServerCleanupJobLogin##
that needs to be enabled Database RoleMembership for: SSISDB as public

Openshift authenticity of host cant be established, when creating app

I try to create an app in Openshift but alwas get the following error during the process:
**Cloning into 'firstapp'...
The authenticity of host 'firstapp-**.rhcloud.com (***)' can't b
e established.
RSA key fingerprint is **********************.**
I used rhc setup to create the ssh keys and they were succesfully transfered into my Openshift account. Did I miss something or did something wrong?
When I create an app, this is the relevant snippet I get:
Cloning into 'tsunade23'...
The authenticity of host 'tsunade23-*.rhcloud.com (a.b.c.d)' can't be established.
RSA key fingerprint is *:*:::::*:*.
No matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)?
So, are you seeing the last 2 lines from my snippet when you create the app? If yes, just type 'yes' and you should be good to go.
Let me know if this isn't the case.

how to Sort out Mysql odbc connection strings stored in registry as plain text

Mysql odbc connection string is stored in the windows registry as plain text. So someone can find it and view my database.
How can I sort out this security problem.
thanks
UPDATE:
Thanks for your response. The server is set-up in a very secure way e.g SSL for FTP and two factor authentication for Remote desktop. But the problem is if somebody does get onto the server, they can see the password for the database login.
I was thinking about encrypting the password within the DNSless string and having a key in a external file to unecrypt it. But the problem still remains if someone finds the key they can get the password.
Do you have any other suggestions?
you can set permissions on Windows Registry key folders (XP) to deny access to users and groups. Right-click the item in the folder panel and select "Permissions..."
good luck MikeD