Skip to content

OpenSSL.SSL.Error: [('SSL routines', '', 'wrong version number')] #1

@yxizzy

Description

@yxizzy

Hello, please do you know why I might be getting this while attempting do_handshake() with sql-server

I'm using Mac, My Openssl is version 3.3.2, pyOpenSSL == 24.0.0, cryptography==42.0.8; Python3.11

PS: I updated

if self.tls_enabled:
            if not self.tls_finished:
                LOG.warning(f"server side: TLS handshake receive")
                self.tls.bio_write(data) #here, I removed data[8:] because it was throwing asn1 header errors
                try:
                    self.tls.do_handshake() #here is failing with wrong version number
                    LOG.warning(f"handshake complete") 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions