Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password encryption: switch from des3->aes-256-cbc #221

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

bastelfreak
Copy link
Member

This updates the algorithm for password encryption in certificates from the outdated des3 to aes-256-cbc.

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak self-assigned this Jul 18, 2024
@bastelfreak bastelfreak changed the title password encryption: switch from des3-> aes-256-cbc password encryption: switch from des3->aes-256-cbc Jul 18, 2024
This updates the algorithm for password encryption in certificates from
the outdated des3 to aes-256-cbc.
@@ -42,7 +42,7 @@
it 'creates with given password' do
resource[:password] = '2x$5{'
allow(OpenSSL::PKey::RSA).to receive(:new).with(2048).and_return(key)
allow(OpenSSL::Cipher).to receive(:new).with('des3')
allow(OpenSSL::Cipher).to receive(:new).with('aes-256-cbc')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change this to expect? Right now I think the test would also pass if OpenSSL::Cipher.new wasn't called at all.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it. But I'm an rspec noob. Let me know if this is what you had in mind.

@ekohl ekohl merged commit c06b14a into voxpupuli:master Jul 18, 2024
16 checks passed
@bastelfreak bastelfreak deleted the des branch July 18, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants