Idira Conjur throws OpenSSL cipher error when trying to create the first user

Idira Conjur throws OpenSSL cipher error when trying to create the first user

85
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 13:00 PM


Symptom


When attempting to run the command:
docker-compose exec conjur conjurctl account create quick-start

The process fails with a cipher error:

rake aborted!
OpenSSL::Cipher::CipherError: 
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/symmetric.rb:37:in `final'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/symmetric.rb:37:in `decrypt'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/attr_encrypted.rb:60:in `decrypt'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/attr_encrypted.rb:40:in `block (3 levels) in attr_encrypted'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/adapters/sequel_adapter.rb:32:in `get_key'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/keystore.rb:18:in `get'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/keystore.rb:47:in `[]'
/opt/conjur-server/app/models/account.rb:4:in `find_or_create_accounts_resource'
/opt/conjur-server/lib/tasks/account.rake:13:in `block (2 levels) in <top (required)>'
/var/lib/gems/2.2.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => account:create
(See full trace by running task with --trace)


Environment


Conjur Conjur

Cause


The CONJUR_DATA_KEY in your environment doesn’t match the one used to initialize your database. 

Resolution


Confirm the value for the CONJUR_DATA_KEY variable is the correct one for your environment.

Additional Information


Details

SYMPTOM: 

When attempting to run the command:
docker-compose exec conjur conjurctl account create quick-start

The process fails with a cipher error:

rake aborted!
OpenSSL::Cipher::CipherError: 
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/symmetric.rb:37:in `final'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/symmetric.rb:37:in `decrypt'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/attr_encrypted.rb:60:in `decrypt'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/attr_encrypted.rb:40:in `block (3 levels) in attr_encrypted'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/adapters/sequel_adapter.rb:32:in `get_key'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/keystore.rb:18:in `get'
/var/lib/gems/2.2.0/gems/slosilo-2.1.1/lib/slosilo/keystore.rb:47:in `[]'
/opt/conjur-server/app/models/account.rb:4:in `find_or_create_accounts_resource'
/opt/conjur-server/lib/tasks/account.rake:13:in `block (2 levels) in <top (required)>'
/var/lib/gems/2.2.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => account:create
(See full trace by running task with --trace)

PROBLEM: 

The  CONJUR_DATA_KEY in your environment doesn’t match the one used to initialize your database. 

SOLUTION: 

Confirm the value for the CONJUR_DATA_KEY variable is the correct one for your environment.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000010NmCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail