improve cipher selector to only use openssl
extract information from server certificate