title: Ruby On Rails - "OpenSSL::Cipher::CipherError at ..." when connecting to imported database
body: <p>I am running my Ruby On Rails 5 app on localhost and now, I imported the production database. It's a PostgreSQL database, exported via the <code>pg_dump</code> tool.</p>
  
  <p>When I modified the <code>database.yml</code> file the Rails app and set there the newly created database, I got this error when running the Rails app (tried also to change the port on which the app is running, but it didn't help):</p>
  
  <pre><code>OpenSSL::Cipher::CipherError at /
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/gM9fd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gM9fd.png" alt="enter image description here"></a></p>
  
  <p>In the Rails console is not any information about the error.</p>
  
  <p>What is the reason of such an error? I tried to export the database from the staging server and use it on localhost and everything worked fine.</p>