Bug 1357521
| Summary: | EWS 2.1.1 DR4: openssl hardcoded engine search path to /opt/rh/jbcs-httpd24/root/usr/lib64/openssl/engines/ | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Web Server 2 | Reporter: | Michal Karm Babacek <mbabacek> |
| Component: | openssl | Assignee: | Jean-frederic Clere <jclere> |
| Status: | CLOSED WONTFIX | QA Contact: | Michal Karm Babacek <mbabacek> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 2.1.1 | CC: | gzaronik, jclere, jonderka |
| Target Milestone: | CR01 | ||
| Target Release: | 2.1.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: |
Using custom engine is feasible per the official upstream documentation noted here: https://www.openssl.org/docs/manmaster/apps/config.html
Note that, in order to get your custom engine working you have to set it in the upper section of the openssl.cnf file before any other section. Nothing else needed then besides exporting the OPENSSL_CONF variable in order to make openssl use this configuration.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-13 12:20:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Michal Karm Babacek
2016-07-18 12:33:17 UTC
Blocker? requires_doc_text? Basically it should be possible to use openssl.cnf see https://www.openssl.org/docs/manmaster/apps/config.html to configure openssl to get a custom engine to work as excepted. Using custom engine by setting the openssl.cnf is feasible. Tried it in my local box and it works. openssl.cnf configuration: openssl_conf = openssl_def [openssl_def] engines = engine_section [engine_section] dummy = dummy_section [dummy_section] engine_id = dummy dynamic_path = /home/gzaronikas/Documents/github_gzaronikas/DummyCryptoDevice/lib/libdummy.so Exporting OPENSSL_CONF and running openssl then gives me: [gzaronikas@dhcp-10-40-5-148 httpd]$ OPENSSL_CONF=conf/openssl/pki/tls/openssl.cnf sbin/openssl engine dummy dummy_init: Refcount now 1 (dummy) Dummy hardware engine support dummy_finish: Refcount now 0 Note down that in order to get it working, I had to add the configuration on the upper side of openssl.cnf before any other section > Note down that in order to get it working, I had to add the
> configuration on the upper side of openssl.cnf before any other section
OMG :-) O.K.
Could it be figured out from the upstream documentation or we should add a note about it in the Release Notes?
Michal, to me is not clear at all from the upstream documentation. Definitely needs to be relnoted. |