MacOS Monterey error loading openSSL libraries

After upgrading to MacOS Monterey, you may experience an error trying to load the openSSL libraries.

Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.

This error appears when trying to load an unversioned dylib instead of a library with a revision number.

To avoid this error, there is a new property in OpenSSL_Options.UnixSymLinks where this can be configured.



Configuration 

Use the property OpenSSL_Options.UnixSymLinks to enable or disable the loading of SymLinks under Unix systems (by default is enabled, except under OSX64):

  • oslsSymLinksDefault: by default are enabled except under OSX64 (after MacOS Monterey fails trying to load the library without version.).
  • oslsSymLinksLoadFirst: Load SymLinks and do before trying to load the version libraries.
  • oslsSymLinksLoad: Load SymLinks after trying to load the version libraries.
  • oslsSymLinksDontLoad: don't load the SymLinks. 
procedure ConnectToServer;
var
  oClient: TsgcWebSocketClient;
begin
  oClient := TsgcWebSocketClient.Create(nil);
  oClient.Host := 'wss://www.esegece.com';
  oClient.TLSOptions.OpenSSL_Options.UnixSymLinks := oslsSymLinksDontLoad;
  oClient.Active := True;
end; 
×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

Twilio Delphi Send a SMS Message
sgcWebSockets 4.5.3

Related Posts