Yes, it should work with OpenSSL 1.1.1 up to at least 3.5. The formatting got munged in your description, so it's hard to tell what happened. Did it abort with an error, lock-up, never connect, etc?