Hardening/Notarize question about entitlements (Indy and OpenSSL/LibreSSL) lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- MISV · 2019-12-04 08:44 From my research I am unsure if my Lazarus app need any entitlements file for hardening/notarization when signing... Except I do I think I may need these   Key: com.apple.security.cs.allow-dyld-environment-variables   Key: com.apple.security.cs.disable-library-validation That is because I use Indy which loads OpenSSL/LibreSSL I guess if just loading the ones provided by system... They should be signed/notarized by Apple, but I am unsure. But I also allow people to manually point my software to use OpenSSL libs compiled/downloaded by themselves. Some links i have found   - https://stackoverflow.com/questions/55660597/why-does-a-free- pascal-dylib-need-dyld-environment-variables   - https://theevilbit.github.io/posts/dyld_insert_libraries_dylib_inj ection_in_macos_osx_deep_dive/   - https://github.com/rstudio/rstudio/issues/4597 Any experience with the above? ---------------------------------------------------------------------- Hansaplast · 2019-12-04 10:13 As far as I remember, using OpenSSL/LibreSSL (that came with Mojave - not sure if Catalina updated them) seems no longer an option under macOS. It produces an error: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI. See my post in this thread. ---------------------------------------------------------------------- MISV · 2019-12-05 20:53 It seems Remy posted a workaround here: https://community.idera.com/developer-tools/platforms/f/macos- platform/70310/issue-with-using-indy-on-catalina (A recent version of Indy seems to include a function call that configured Indy to load specific version first) I have not tried the Indy fix though. I will need to update Indy first ---------------------------------------------------------------------- MISV · 2019-12-06 10:45 However, to generalize my question If I allow a user to download any dylib (e.g. OpenSSL) and load that will I need both these: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   com.apple.security.cs.allow-dyld-environment-variables  com.apple.security.cs.disable-library-validation Or just Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   com.apple.security.cs.disable-library-validation