Skip to content

openssl support #381

@Schira4396

Description

@Schira4396

If the target is an older version of sql server, it is possible that it only supports tls 1.0. Although it is not secure, can the openssl feature be added to enable tiberius to connect to it, thereby increasing compatibility?

For example, the target is Windows Server 2008 and mandatory encryption is enabled.

If the rust-openssl library is used, then it is possible to:

`let mut ctx: openssl::ssl::SslConnectorBuilder = SslConnector::builder(SslMethod::tls())?;
ctx.set_security_level(0);
ctx.set_options(SslOptions::ALLOW_UNSAFE_LEGACY_RENEGOTIATION);
ctx.set_verify(openssl::ssl::SslVerifyMode::NONE);
ctx.set_options(SslOptions::DONT_INSERT_EMPTY_FRAGMENTS);`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions