Hi Stefan,
Your example code works on a client connection, and the catch block traps the error when run in AppServer,too.
However, in AppServer, the agent.log still displays the openssl error.
If you can run your code in AppServer, check the agent.log, I strongly expect to see the message...