Title: Loading OpenSSL config files twice · Issue #29702 · nodejs/node · GitHub
Open Graph Title: Loading OpenSSL config files twice · Issue #29702 · nodejs/node
X Title: Loading OpenSSL config files twice · Issue #29702 · nodejs/node
Description: Problem When OPENSSL_CONF environment variable is set, config files are loaded twice. Reason InitCryptoOnce function in node_crypto.cc first calls SSL_load_error_strings() which is a macro for OPENSSL_init_ssl() which in turn will at som...
Open Graph Description: Problem When OPENSSL_CONF environment variable is set, config files are loaded twice. Reason InitCryptoOnce function in node_crypto.cc first calls SSL_load_error_strings() which is a macro for OPEN...
X Description: Problem When OPENSSL_CONF environment variable is set, config files are loaded twice. Reason InitCryptoOnce function in node_crypto.cc first calls SSL_load_error_strings() which is a macro for OPEN...
Opengraph URL: https://github.com/nodejs/node/issues/29702
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Loading OpenSSL config files twice","articleBody":"### Problem\r\nWhen `OPENSSL_CONF` environment variable is set, config files are loaded twice.\r\n\r\n### Reason\r\n\r\n`InitCryptoOnce` function in [node_crypto.cc](https://github.com/nodejs/node/blob/master/src/node_crypto.cc#L6917) first calls `SSL_load_error_strings()` which is a macro for `OPENSSL_init_ssl()` which in turn will at some point will call `CONF_modules_load_file()` for the file pointed to by `OPENSSL_CONF` environment variable. Then in the same function (`InitCryptoOnce()`) `CONF_modules_load_file()` will be called again for the file pointed to by `openssl_config` command line option.\r\n\r\nBut upon nodejs initialization, if `openssl_config` is not given, and if `OPENSSL_CONF` is set, `openssl_config` is set to the value in `OPENSSL_CONF`. As a result `CONF_modules_load_file()` will be called twice.\r\n\r\n### Impact\r\nNormally none, except for cases when the config is not idempotent, as is the case e.g. when dynamic engines need to be loaded. In which case it is also not a huge deal, but the user will see a scary error message:\r\n\r\n```\r\nopenssl config failed: error:26078067:engine routines:engine_list_add:conflicting engine id\r\n```\r\n\r\nNot sure what would be the best fix, probably it's also not too urgent. ","author":{"url":"https://github.com/OYTIS","@type":"Person","name":"OYTIS"},"datePublished":"2019-09-25T14:30:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/29702/node/issues/29702"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4f47a9bb-a006-7566-6549-3e0b76e46c55 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E428:B6221:A3C02E:EAD8EB:6A4E43B5 |
| html-safe-nonce | 56b29cb261f30ad7bd527ff2c77dc7ad5838dd01c95e6a0982d834e08a2cc67e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDI4OkI2MjIxOkEzQzAyRTpFQUQ4RUI6NkE0RTQzQjUiLCJ2aXNpdG9yX2lkIjoiOTIxMzMyNjgyNzM5MjQ4NDI3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 49be74ca4f948902381ba2177e65edfb778bfb3614a37852923472bb6cfd7473 |
| hovercard-subject-tag | issue:498325459 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/29702/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77b459c7e248f6dd5db0281f69dbb74e18655f953c4695506d462b60ff0f3275/nodejs/node/issues/29702 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77b459c7e248f6dd5db0281f69dbb74e18655f953c4695506d462b60ff0f3275/nodejs/node/issues/29702 |
| og:image:alt | Problem When OPENSSL_CONF environment variable is set, config files are loaded twice. Reason InitCryptoOnce function in node_crypto.cc first calls SSL_load_error_strings() which is a macro for OPEN... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | OYTIS |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9fabff9b8b127e686a3ec86f91422e818056ca2c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width