Improve sslcheck function