SSL connection, cert verify function added

Previous did not verify certs
I haven’t figured out how to sign certs but the code works since it
denies unsigned certs