Fixes issue/TLS-init-failing (#3468) #3470
Merged
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Category
Bug
Feature/Issue Description
Q: Please give a brief summary of your feature/fix
A: This PR fixes a TLS initialisation failure in the Docker-based setup, where BeEF crashes with an EventMachine “Encryption not available” error.
Q: Give a technical rundown of what you have changed (if applicable)
A:
The root cause was that EventMachine was being built without SSL/TLS support inside the Docker image because OpenSSL development headers were missing at build time. Since bundle install is executed in the Docker builder stage, EventMachine’s native extension was compiled without TLS support.
This PR adds libssl-dev to the Docker builder stage so EventMachine is built with SSL/TLS support.
In addition, libssl-dev has been removed from the final runtime stage, as it is only required at build time and not needed once the native extension is compiled.
After these changes, BeEF starts correctly with HTTPS enabled and no longer raises the TLS-related runtime error.