MacOS Monterey에서 openSSL 라이브러리 로딩 오류

· 기능

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.



설정 

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

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;