I use neither ODBC or SQL Anywhere, but my initial wild guess would be that it's failing to verify the server certificate. Some quick googling suggests the trusted_certificate option might help.
Something else to try, though I don't think it'd make a difference, would be to set openssl.cafile to a custom CA bundle that includes your server's certificate.