Working STARTTLS implementation