refine OpenSSL Connection